From 15a15ded10ce55b327d8930b5145df0f4cf2e4f8 Mon Sep 17 00:00:00 2001 From: sd <shidong@jhsoft.cc> Date: 星期一, 11 八月 2025 17:25:23 +0800 Subject: [PATCH] 问搜万物-卡片布局优化;模型优化数据添加按钮调整触发方式;历史会话样式调整。 --- src/pages/analysisPower/index/App.vue | 93 +++++++++++++++++++++++++++++++++++----------- 1 files changed, 71 insertions(+), 22 deletions(-) diff --git a/src/pages/analysisPower/index/App.vue b/src/pages/analysisPower/index/App.vue index bbaf21f..ba361b6 100644 --- a/src/pages/analysisPower/index/App.vue +++ b/src/pages/analysisPower/index/App.vue @@ -116,14 +116,42 @@ </template> </el-table-column> <el-table-column - label="鎵ц绠楁硶" + 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.tasks != null">{{ - scope.row.tasks | taskList + <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> @@ -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,26 +484,26 @@ _this.statistic(); }, 10 * 1000); }, - pollSwitch(row) { - changeRunType({ camera_ids: [row.id], run_type: row.run_type ^ 1 }).then( - (rsp) => { - if (rsp && rsp.success) { - this.$notify({ - type: "success", - message: "閰嶇疆鎴愬姛", - }); + pollSwitch(row) {//杞鍔熻兘 鏆傛湭瀹炵幇 + // changeRunType({ camera_ids: [row.id], run_type: row.run_type ^ 1 }).then( + // (rsp) => { + // if (rsp && rsp.success) { + // this.$notify({ + // type: "success", + // message: "閰嶇疆鎴愬姛", + // }); - row.run_type = row.run_type ^ 1; - } else { - this.$notify({ - type: "error", - message: "閰嶇疆澶辫触", - }); - } + // row.run_type = row.run_type ^ 1; + // } else { + // this.$notify({ + // type: "error", + // message: "閰嶇疆澶辫触", + // }); + // } - // this.PollData.fetchPollList(); - } - ); + // // this.PollData.fetchPollList(); + // } + // ); }, initLineChart() { // console.log(this.barChart,'initLineChart') -- Gitblit v1.8.0