From 72b025d6b43271ae88541ea23c92070b3b2acc96 Mon Sep 17 00:00:00 2001 From: sd <shidong@jhsoft.cc> Date: 星期二, 05 八月 2025 16:15:44 +0800 Subject: [PATCH] 模型训练-批量批注、批量删除以及批量导入功能实现 --- src/pages/analysisPower/index/App.vue | 67 +++++++++++++++++++++++++++++---- 1 files changed, 58 insertions(+), 9 deletions(-) diff --git a/src/pages/analysisPower/index/App.vue b/src/pages/analysisPower/index/App.vue index 3eca26a..ba361b6 100644 --- a/src/pages/analysisPower/index/App.vue +++ b/src/pages/analysisPower/index/App.vue @@ -116,13 +116,43 @@ </template> </el-table-column> <el-table-column - label="鐫f煡浠诲姟" + label="AI浠诲姟" align="center" show-overflow-tooltip > <template slot-scope="scope"> <span v-if="scope.row.run_type === -1">-</span> - <span v-else-if="scope.row.TaskNames != null">{{(scope.row.TaskNames || []).map(r => r.taskName).join('/') || ''}}</span> + <span v-else-if="scope.row.allTasks != null">{{ + scope.row.allTasks | allTaskList + }}</span> + <span v-else>-</span> + </template> + </el-table-column> + + <el-table-column + label="浠诲姟鎻忚堪" + align="center" + show-overflow-tooltip + > + <template slot-scope="scope"> + <span v-if="scope.row.run_type === -1">-</span> + <span v-else-if="scope.row.allTasks != null">{{ + scope.row.allTasks | allDescription + }}</span> + <span v-else>-</span> + </template> + </el-table-column> + + <el-table-column + label="浜嬩欢绛夌骇" + align="center" + show-overflow-tooltip + > + <template slot-scope="scope"> + <span v-if="scope.row.run_type === -1">-</span> + <span v-else-if="scope.row.allTasks != null">{{ + scope.row.allTasks | allEventName + }}</span> <span v-else>-</span> </template> </el-table-column> @@ -134,7 +164,7 @@ > <template slot-scope="scope"> <span v-if="scope.row.run_type === -1">-</span> - <span v-else>{{ scope.row.run_server_name }}</span> + <span v-else>{{ scope.row.runServerName }}</span> </template> </el-table-column> <el-table-column @@ -158,9 +188,7 @@ > <template slot-scope="scope"> <span v-if="scope.row.run_type === -1">-</span> - <span v-else-if="scope.row.run_type === 1">{{ "杞" }}</span> - <span v-else>{{ "瀹炴椂" }}</span> - <!-- <toggle-button + <toggle-button v-else :value="scope.row.run_type === 1" :width="60" @@ -172,7 +200,7 @@ }" :sync="true" @change="pollSwitch(scope.row)" - /> --> + /> </template> </el-table-column> </el-table> @@ -276,7 +304,7 @@ cameraType(type) { return type === -1 ? "鐩戞帶鎽勫儚鏈�" : "AI鎽勫儚鏈�"; }, - taskList(tasks) { + taskList(tasks) {//鎵ц绠楁硶 return tasks .filter((task) => { return task.hasRule; @@ -285,6 +313,27 @@ return task.taskname; }) .join(","); + }, + allTaskList(allTasks) { + return allTasks + .map((allTasks) => { + return allTasks.taskName; + }) + .join(" / "); + }, + allEventName(allTasks) { + return allTasks + .map((allTasks) => { + return allTasks.eventName; + }) + .join(" / "); + }, + allDescription(allTasks) { + return allTasks + .map((allTasks) => { + return allTasks.taskDescription; + }) + .join(" / "); }, switchText(type) { return type ? "宸插紑鍚�" : "鏈紑鍚�"; @@ -435,7 +484,7 @@ _this.statistic(); }, 10 * 1000); }, - pollSwitch(row) { + pollSwitch(row) {//杞鍔熻兘 鏆傛湭瀹炵幇 // changeRunType({ camera_ids: [row.id], run_type: row.run_type ^ 1 }).then( // (rsp) => { // if (rsp && rsp.success) { -- Gitblit v1.8.0