Browse Source

feat: MASC测试搞定

WANGKANG 6 months ago
parent
commit
b05187de50

+ 6 - 0
src/api/interface/demo/AlgorithmConfigTrack.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import { PageQuery, BaseEntity } from '@/api/interface/index'
 export interface AlgorithmConfigTrackVO extends BaseEntity {
   /**

+ 6 - 0
src/api/interface/demo/AlgorithmModelTrack.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import { PageQuery, BaseEntity } from '@/api/interface/index'
 export interface AlgorithmModelTrackVO extends BaseEntity {
   /**

+ 7 - 0
src/api/interface/demo/DataSeq.ts

@@ -1,3 +1,10 @@
+/**
+
+* @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import { PageQuery, BaseEntity } from '@/api/interface/index'
 export interface DataSeqVO extends BaseEntity {
   /**

+ 6 - 0
src/api/interface/demo/TargetDetection.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import { PageQuery, BaseEntity } from '@/api/interface/index'
 
 export interface TargetDetectionVO extends BaseEntity {

+ 6 - 0
src/api/interface/demo/toInfrared.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import { PageQuery, BaseEntity } from '@/api/interface/index'
 export interface ToInfraredVO extends BaseEntity {
   /**

+ 6 - 0
src/api/interface/demo/trackSequence.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import { PageQuery, BaseEntity } from '@/api/interface/index'
 export interface TrackSequenceVO extends BaseEntity {
   /**

+ 6 - 0
src/api/interface/demo/video2image.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import { PageQuery, BaseEntity } from '@/api/interface/index'
 export interface Video2imageVO extends BaseEntity {
   /**

+ 6 - 0
src/api/interface/demo/videoStable.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import { PageQuery, BaseEntity } from '@/api/interface/index'
 export interface VideoStableVO extends BaseEntity {
   /**

+ 6 - 0
src/api/modules/demo/AlgorithmConfigTrack.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import http from '@/api'
 import { AlgorithmConfigTrackVO, AlgorithmConfigTrackForm, AlgorithmConfigTrackQuery } from '@/api/interface/demo/AlgorithmConfigTrack'
 /**

+ 6 - 0
src/api/modules/demo/AlgorithmModelTrack.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import http from '@/api'
 import { AlgorithmModelTrackVO, AlgorithmModelTrackForm, AlgorithmModelTrackQuery } from '@/api/interface/demo/AlgorithmModelTrack'
 /**

+ 6 - 0
src/api/modules/demo/DataSeq.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import http from '@/api'
 import { DataSeqVO, DataSeqForm, DataSeqQuery } from '@/api/interface/demo/DataSeq'
 /**

+ 6 - 0
src/api/modules/demo/TargetDetection.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import http from '@/api'
 import { TargetDetectionVO, TargetDetectionForm, TargetDetectionQuery } from '@/api/interface/demo/TargetDetection'
 

+ 6 - 0
src/api/modules/demo/toInfrared.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import http from '@/api'
 import { ToInfraredVO, ToInfraredForm, ToInfraredQuery } from '@/api/interface/demo/toInfrared'
 /**

+ 10 - 0
src/api/modules/demo/trackSequence.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import http from '@/api'
 import { TrackSequenceVO, TrackSequenceForm, TrackSequenceQuery } from '@/api/interface/demo/trackSequence'
 /**
@@ -92,3 +98,7 @@ export const getLogTrackSequenceApi = (id: string | number) => {
 export const getLDetailTrackSequenceApi = (id: string | number) => {
   return http.get('/demo/trackSequence/detail/' + id, {}, { loading: false })
 }
+
+export const addEvaluateTrackSequenceApi = (data: any) => {
+  return http.post('/demo/trackSequence/add_evaluate', data, { loading: true })
+}

+ 6 - 0
src/api/modules/demo/video2image.ts

@@ -1,3 +1,9 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
+
 import http from '@/api'
 import { Video2imageVO, Video2imageForm, Video2imageQuery } from '@/api/interface/demo/video2image'
 /**

+ 5 - 0
src/api/modules/demo/videoStable.ts

@@ -1,3 +1,8 @@
+/**
+ * @Date: 2024-10-29
+ * @Author: ©WANGKANG
+ * @Email: 1686617586@qq.com
+ */
 import http from '@/api'
 import { VideoStableVO, VideoStableForm, VideoStableQuery } from '@/api/interface/demo/videoStable'
 

+ 6 - 0
src/views/demo/AlgorithmConfigTrack/index.vue

@@ -1,3 +1,9 @@
+<!-- 
+  @Date: 2024-10-29
+  @Author: ©WANGKANG
+  @Email: 1686617586@qq.com
+-->
+
 <template>
   <div class="table-box">
     <ProTable ref="proTable" :columns="columns" row-key="id" :request-api="listAlgorithmConfigTrackApi">

+ 6 - 0
src/views/demo/AlgorithmModelTrack/index.vue

@@ -1,3 +1,9 @@
+<!-- 
+  @Date: 2024-10-29
+  @Author: ©WANGKANG
+  @Email: 1686617586@qq.com
+-->
+
 <template>
   <div class="table-box">
     <ProTable ref="proTable" :columns="columns" row-key="id" :request-api="listAlgorithmModelTrackApi">

+ 6 - 0
src/views/demo/DataSeq/index.vue

@@ -1,3 +1,9 @@
+<!-- 
+  @Date: 2024-10-29
+  @Author: ©WANGKANG
+  @Email: 1686617586@qq.com
+-->
+
 <template>
   <div class="table-box">
     <ProTable ref="proTable" :columns="columns" row-key="id" :request-api="listDataSeqApi">

+ 5 - 0
src/views/demo/TargetDetection/index.vue

@@ -1,3 +1,8 @@
+<!-- 
+  @Date: 2024-10-29
+  @Author: ©WANGKANG
+  @Email: 1686617586@qq.com
+-->
 <template>
   <div class="table-box">
     <ProTable ref="proTable" :columns="columns" row-key="id" :request-api="listTargetDetectionApi">

+ 5 - 0
src/views/demo/components/PreviewCompareImages.vue

@@ -1,3 +1,8 @@
+<!-- 
+  @Date: 2024-10-29
+  @Author: ©WANGKANG
+  @Email: 1686617586@qq.com
+-->
 <template>
   <el-dialog
     v-model="dialogVisible"

+ 6 - 0
src/views/demo/components/ViewLog.vue

@@ -1,3 +1,9 @@
+<!-- 
+  @Date: 2024-10-29
+  @Author: ©WANGKANG
+  @Email: 1686617586@qq.com
+-->
+
 <template>
   <el-dialog v-model="logVisible" title="日志" width="900" :before-close="handleClose">
     <el-scrollbar ref="scrollbarRef" id="scrollbarRef1" height="500px">

+ 5 - 0
src/views/demo/toInfrared/index.vue

@@ -1,3 +1,8 @@
+<!-- 
+  @Date: 2024-10-29
+  @Author: ©WANGKANG
+  @Email: 1686617586@qq.com
+-->
 <template>
   <div class="table-box">
     <ProTable ref="proTable" :columns="columns" row-key="id" :request-api="listToInfraredApi">

+ 70 - 1
src/views/demo/trackSequence/index.vue

@@ -1,3 +1,9 @@
+<!-- 
+  @Date: 2024-10-29
+  @Author: ©WANGKANG
+  @Email: 1686617586@qq.com
+-->
+
 <template>
   <div class="table-box">
     <ProTable ref="proTable" :columns="columns" row-key="id" :request-api="listTrackSequenceApi">
@@ -58,6 +64,15 @@
         >
           下载
         </el-button>
+        <el-button
+          type="primary"
+          link
+          icon="View"
+          v-if="scope.row.status == '2' && scope.row.type === AlgorithmType2['预测/推理']"
+          @click="showEvaluate(scope.row)"
+        >
+          评估
+        </el-button>
         <!-- <el-button type="primary" link icon="View" v-auth="['demo:toInfrared:query']" @click="openDialog(3, '查看', scope.row)"> 查看 </el-button> -->
         <!-- <el-button type="primary" link icon="EditPen"v-auth="['demo:toInfrared:edit']" @click="openDialog(2, '编辑', scope.row)"> 编辑 </el-button> -->
         <el-button
@@ -100,7 +115,8 @@ import {
   stopTrackSequenceApi,
   dowloadTrackSequenceApi,
   getLogTrackSequenceApi,
-  getLDetailTrackSequenceApi
+  getLDetailTrackSequenceApi,
+  addEvaluateTrackSequenceApi
 } from '@/api/modules/demo/trackSequence'
 import { enumAlgorithmModelTrackApi } from '@/api/modules/demo/AlgorithmModelTrack'
 import { getAlgorithmModelTrackApi } from '@/api/modules/demo/AlgorithmModelTrack'
@@ -111,6 +127,59 @@ import statusEnums from '@/utils/status'
 import { AlgorithmType, SubSystem, SubSystem__, enumsAlgorithmType, enumsSubSystem, AlgorithmType2 } from '@/views/demo/utils'
 import ViewLog from '@/views/demo/components/ViewLog.vue'
 
+const showEvaluate = (row: any) => {
+  const newItem = {
+    id: row.id
+  }
+
+  const enumsAlgorithmConfigTrack__: Array<any> = []
+  for (const item of enumsAlgorithmConfigTrack.value) {
+    if (item.subsystem === SubSystem__['注释轨迹序列'] && item.type === AlgorithmType2['测试']) {
+      enumsAlgorithmConfigTrack__.push(item)
+    }
+  }
+
+  itemsOptions = [
+    {
+      label: '任务名称',
+      prop: 'name',
+      rules: [{ required: true, message: '任务名称不能为空', trigger: 'blur' }],
+      compOptions: {
+        placeholder: '请输入任务名称'
+      }
+    },
+    {
+      label: '选择算法',
+      prop: 'algorithmId',
+      rules: [{ required: true, message: '请选择算法', trigger: 'blur' }],
+      compOptions: {
+        disabled: false,
+        elTagName: 'select',
+        placeholder: '请输入算法',
+        enum: enumsAlgorithmConfigTrack__
+      }
+    },
+    {
+      label: '备注',
+      prop: 'remarks',
+      rules: [],
+      compOptions: {
+        placeholder: '请输入备注'
+      }
+    }
+  ]
+  const params = {
+    title: '新增评估',
+    width: 580,
+    isEdit: true,
+    itemsOptions: itemsOptions,
+    model: newItem,
+    api: addEvaluateTrackSequenceApi,
+    getTableList: proTable.value?.getTableList
+  }
+  formDialogRef.value?.openDialog(params)
+}
+
 const viewLogRef = ref()
 
 const enumsAlgorithmConfigTrack = ref<any>([])

+ 6 - 0
src/views/demo/videoStable/index.vue

@@ -1,3 +1,9 @@
+<!-- 
+  @Date: 2024-10-29
+  @Author: ©WANGKANG
+  @Email: 1686617586@qq.com
+-->
+
 <template>
   <div class="table-box">
     <ProTable ref="proTable" :columns="columns" row-key="id" :request-api="listVideoStableApi">