| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="执行算法" |
| | | label="督查任务" |
| | | align="center" |
| | | show-overflow-tooltip |
| | | > |
| | |
| | | cameraType(type) { |
| | | return type === -1 ? "监控摄像机" : "AI摄像机"; |
| | | }, |
| | | taskList(tasks) { |
| | | taskList(tasks) {//执行算法 |
| | | return tasks |
| | | .filter((task) => { |
| | | return task.hasRule; |
| | |
| | | _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') |