上传加token,训练失败加失败提示
This commit is contained in:
parent
26de84817b
commit
75bf0af5cd
@ -634,6 +634,18 @@ function revokeExpression(){
|
|||||||
expressionInfo.value.exprData.pop()
|
expressionInfo.value.exprData.pop()
|
||||||
expressionInfo.value.expr = expressionInfo.value.exprData.join('')
|
expressionInfo.value.expr = expressionInfo.value.exprData.join('')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function open(e:any) {
|
||||||
|
ElMessageBox.alert(e.errorLog, '错误信息', {
|
||||||
|
// if you want to disable its autofocus
|
||||||
|
// autofocus: false,
|
||||||
|
confirmButtonText: 'OK',
|
||||||
|
callback: (action: any) => {
|
||||||
|
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@ -674,7 +686,9 @@ function revokeExpression(){
|
|||||||
<el-table-column prop="status" label="任务状态" width="100" align="center">
|
<el-table-column prop="status" label="任务状态" width="100" align="center">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="scope.row.status == 'Success' " style="color:#00c10b"> {{statusName(scope.row.status)}}</span>
|
<span v-if="scope.row.status == 'Success' " style="color:#00c10b"> {{statusName(scope.row.status)}}</span>
|
||||||
<span v-if="scope.row.status == 'Failed' " style="color: #fd3737"> {{statusName(scope.row.status)}}</span>
|
<span v-if="scope.row.status == 'Failed' " style="color: #fd3737;cursor: pointer;" @click="open(scope.row)">
|
||||||
|
{{statusName(scope.row.status)}}
|
||||||
|
</span>
|
||||||
<span v-if="scope.row.status == 'Training' " style="color: #266fff;display: flex;align-items: center;" >
|
<span v-if="scope.row.status == 'Training' " style="color: #266fff;display: flex;align-items: center;" >
|
||||||
<img src="@/assets/table/loading.gif" alt="" title="训练中" style="margin-right: 10px;width: 20px;height: 20px;"> {{statusName(scope.row.status)}}
|
<img src="@/assets/table/loading.gif" alt="" title="训练中" style="margin-right: 10px;width: 20px;height: 20px;"> {{statusName(scope.row.status)}}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@ -409,6 +409,7 @@ function handleSuccess(file: any) {
|
|||||||
accept=".xlsx"
|
accept=".xlsx"
|
||||||
:action=" url + '/events/upload-excel'"
|
:action=" url + '/events/upload-excel'"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
|
:headers="{ token: getToken() }"
|
||||||
:on-success="handleSuccess">
|
:on-success="handleSuccess">
|
||||||
<el-button type="primary" style="margin: 0 10px;" v-if="isEdit == true">
|
<el-button type="primary" style="margin: 0 10px;" v-if="isEdit == true">
|
||||||
导入数据</el-button>
|
导入数据</el-button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user