Parcourir la source

feat: 添加打开文件夹功能

Suuuuuukang il y a 4 mois
Parent
commit
1bddbd0eb4
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      src/views/task/bizProcess/index.vue

+ 8 - 0
src/views/task/bizProcess/index.vue

@@ -60,6 +60,7 @@
           查看日志
         </el-button>
 
+        <el-button type="primary" link icon="Refresh" @click="openDir(scope.row)"> 打开文件夹 </el-button>
         <el-button type="primary" link icon="Refresh" @click="exportData(scope.row)"> 导出结果 </el-button>
       </template>
     </ProTable>
@@ -323,6 +324,13 @@ const exportData = row => {
   })
 }
 
+const openDir = row => {
+  console.log(row)
+  http.get<any>('/identification/identificationSubtaskDetails/openDir', { directory: row.preprocessPath }, { loading: true }).then(res => {
+    console.log(res)
+  })
+}
+
 let imgDataList = ref(reactive([]))
 let titleMsg = ref('')
 let valDialogVisible = ref(false)