|
@@ -26,7 +26,10 @@
|
|
<!-- 编辑-->
|
|
<!-- 编辑-->
|
|
<!-- </el-button>-->
|
|
<!-- </el-button>-->
|
|
<!-- <el-button type="primary" link icon="Delete" v-auth="['demo:traceMerge:remove']" @click="deleteTraceMerge(scope.row)"> 删除 </el-button>-->
|
|
<!-- <el-button type="primary" link icon="Delete" v-auth="['demo:traceMerge:remove']" @click="deleteTraceMerge(scope.row)"> 删除 </el-button>-->
|
|
- <el-button type="primary" link icon="View" @click="execute(scope.row)"> 执行任务 </el-button>
|
|
|
|
|
|
+ <el-button type="primary" link icon="View" @click="execute(scope.row)"> 开始任务 </el-button>
|
|
|
|
+ <el-button type="primary" link icon="View" @click="hangupTask(scope.row)"> 暂停任务 </el-button>
|
|
|
|
+ <el-button type="primary" link icon="View" @click="execute(scope.row)"> 继续任务 </el-button>
|
|
|
|
+ <el-button type="primary" link icon="View" @click="stopTask(scope.row)"> 停止任务 </el-button>
|
|
<el-button type="primary" link icon="View" @click="display(scope.row)"> 展示结果 </el-button>
|
|
<el-button type="primary" link icon="View" @click="display(scope.row)"> 展示结果 </el-button>
|
|
<el-button type="primary" link icon="View" @click="showLog(scope.row)"> 查看日志 </el-button>
|
|
<el-button type="primary" link icon="View" @click="showLog(scope.row)"> 查看日志 </el-button>
|
|
<el-button type="primary" link icon="View" @click="showResult(scope.row)"> 查看指标 </el-button>
|
|
<el-button type="primary" link icon="View" @click="showResult(scope.row)"> 查看指标 </el-button>
|
|
@@ -43,9 +46,9 @@
|
|
</el-container>
|
|
</el-container>
|
|
<el-container style="margin-top: 20px">
|
|
<el-container style="margin-top: 20px">
|
|
<span style="min-width: 80px">任务文件</span>
|
|
<span style="min-width: 80px">任务文件</span>
|
|
- <file @update:model-value="updateFiles" :file-size="20" :file-type="['mat']"></file>
|
|
|
|
|
|
+ <file @update:model-value="updateFiles" :file-size="20" :file-type="['mat', 'json', 'txt']"></file>
|
|
</el-container>
|
|
</el-container>
|
|
- <el-container v-for="(item, index) in jsonParams" :key="index" style=" align-items: center;margin-top: 5px">
|
|
|
|
|
|
+ <el-container v-for="(item, index) in jsonParams" :key="index" style="align-items: center; margin-top: 5px">
|
|
<span style="min-width: 80px; max-width: 150px">{{ item.name }}</span>
|
|
<span style="min-width: 80px; max-width: 150px">{{ item.name }}</span>
|
|
<el-tooltip :content="item.prompt" placement="top">
|
|
<el-tooltip :content="item.prompt" placement="top">
|
|
<el-icon><InfoFilled /></el-icon>
|
|
<el-icon><InfoFilled /></el-icon>
|
|
@@ -100,9 +103,11 @@ import {
|
|
exportTraceMergeApi,
|
|
exportTraceMergeApi,
|
|
getResApi,
|
|
getResApi,
|
|
getTraceMergeApi,
|
|
getTraceMergeApi,
|
|
|
|
+ hangupApi,
|
|
importTemplateApi,
|
|
importTemplateApi,
|
|
importTraceMergeDataApi,
|
|
importTraceMergeDataApi,
|
|
listTraceMergeApi,
|
|
listTraceMergeApi,
|
|
|
|
+ stopApi,
|
|
updateTraceMergeApi
|
|
updateTraceMergeApi
|
|
} from '@/api/modules/demo/traceMerge'
|
|
} from '@/api/modules/demo/traceMerge'
|
|
import File from '@/components/Upload/File.vue'
|
|
import File from '@/components/Upload/File.vue'
|
|
@@ -184,6 +189,26 @@ const execute = function (row) {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const hangupTask = function (row) {
|
|
|
|
+ hangupApi({ taskId: row.id }).then(res => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ ElMessage.success('暂停成功!')
|
|
|
|
+ } else {
|
|
|
|
+ ElMessage.error('暂停失败: ' + res.msg)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const stopTask = function (row) {
|
|
|
|
+ stopApi({ taskId: row.id }).then(res => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ ElMessage.success('停止成功!')
|
|
|
|
+ } else {
|
|
|
|
+ ElMessage.error('停止失败: ' + res.msg)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+}
|
|
|
|
+
|
|
const jsonParams = ref([])
|
|
const jsonParams = ref([])
|
|
const createTask = async function () {
|
|
const createTask = async function () {
|
|
const res = await getOneAlgorithmConfigApi({ algorithmName: '多源信息融合' })
|
|
const res = await getOneAlgorithmConfigApi({ algorithmName: '多源信息融合' })
|
|
@@ -198,7 +223,7 @@ const createTask = async function () {
|
|
|
|
|
|
const submitCreateTask = function () {
|
|
const submitCreateTask = function () {
|
|
if (params.value.preprocessPath == null || params.value.preprocessPath === '') {
|
|
if (params.value.preprocessPath == null || params.value.preprocessPath === '') {
|
|
- ElMessage.error('请上传mat文件!')
|
|
|
|
|
|
+ ElMessage.error('请上传源数据文件!')
|
|
return
|
|
return
|
|
} else if (params.value.name == null || params.value.name === '') {
|
|
} else if (params.value.name == null || params.value.name === '') {
|
|
ElMessage.error('请输入任务名称!')
|
|
ElMessage.error('请输入任务名称!')
|