|
@@ -29,6 +29,7 @@
|
|
|
<el-button type="primary" link icon="View" @click="execute(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="showResult(scope.row)"> 查看指标 </el-button>
|
|
|
</template>
|
|
|
</ProTable>
|
|
|
<FormDialog ref="formDialogRef" />
|
|
@@ -67,6 +68,7 @@
|
|
|
</el-container>
|
|
|
</el-container>
|
|
|
</el-dialog>
|
|
|
+ <ResultDialog ref="ResultDialogRef" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -94,6 +96,15 @@ import {
|
|
|
import File from '@/components/Upload/File.vue'
|
|
|
import { getDictsApi } from '@/api/modules/system/dictData'
|
|
|
import http from '@/api'
|
|
|
+import ResultDialog from '@/components/ResultDialog/ResultDialog.vue'
|
|
|
+
|
|
|
+const ResultDialogRef = ref<InstanceType<typeof ResultDialog> | null>(null)
|
|
|
+const showResult = async function (row) {
|
|
|
+ let path = row.resultPath.split('ObjectDetection_Web')
|
|
|
+ path = path[path.length - 1]
|
|
|
+ let result = await http.get('/profile' + path + '/result.json')
|
|
|
+ ResultDialogRef.value.openDialog(result)
|
|
|
+}
|
|
|
|
|
|
const logDialogVisible = ref(false)
|
|
|
const logData = ref([])
|