|
@@ -31,14 +31,6 @@
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="输入路径" prop="inputPath">
|
|
|
|
- <el-input
|
|
|
|
- v-model="queryParams.inputPath"
|
|
|
|
- placeholder="请输入输入路径"
|
|
|
|
- clearable
|
|
|
|
- @keyup.enter.native="handleQuery"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
<el-form-item label="状态" prop="status">
|
|
<el-form-item label="状态" prop="status">
|
|
<el-select
|
|
<el-select
|
|
v-model="queryParams.status"
|
|
v-model="queryParams.status"
|
|
@@ -129,7 +121,6 @@
|
|
<el-table-column label="编号" align="center" prop="id" />
|
|
<el-table-column label="编号" align="center" prop="id" />
|
|
<el-table-column label="任务名称" align="center" prop="taskName" />
|
|
<el-table-column label="任务名称" align="center" prop="taskName" />
|
|
<el-table-column label="算法" align="center" prop="algorithmName" />
|
|
<el-table-column label="算法" align="center" prop="algorithmName" />
|
|
- <el-table-column label="输入路径" align="center" prop="inputPath" />
|
|
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<dict-tag :options="dict.type.biz_status" :value="scope.row.status" />
|
|
<dict-tag :options="dict.type.biz_status" :value="scope.row.status" />
|
|
@@ -160,9 +151,9 @@
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
icon="el-icon-info"
|
|
icon="el-icon-info"
|
|
- @click="handleGetResult(scope.row)"
|
|
|
|
|
|
+ @click="openFolder(scope.row)"
|
|
v-hasPermi="['biz:images:add']"
|
|
v-hasPermi="['biz:images:add']"
|
|
- >查看结果</el-button
|
|
|
|
|
|
+ >打开结果</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
@@ -258,6 +249,7 @@ import { getOptionsByType } from "@/api/biz/config";
|
|
import FolderPicker from "@/components/FolderPicker";
|
|
import FolderPicker from "@/components/FolderPicker";
|
|
import DynamicFormDialog from "@/components/DynamicFormDialog";
|
|
import DynamicFormDialog from "@/components/DynamicFormDialog";
|
|
import LogViewer from "@/components/LogViewer";
|
|
import LogViewer from "@/components/LogViewer";
|
|
|
|
+const { shell } = window.require("electron");
|
|
export default {
|
|
export default {
|
|
name: "Images",
|
|
name: "Images",
|
|
dicts: ["biz_status"],
|
|
dicts: ["biz_status"],
|
|
@@ -460,6 +452,17 @@ export default {
|
|
alert("任务开始运行!");
|
|
alert("任务开始运行!");
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ openFolder(row) {
|
|
|
|
+ try {
|
|
|
|
+ shell.openPath(row.outputPath).then((result) => {
|
|
|
|
+ if (result) {
|
|
|
|
+ this.$message.error(`打开文件夹失败: ${result}`);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ } catch (error) {
|
|
|
|
+ this.$message.error(`打开文件夹出错: ${error.message}`);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|