sd
2025-07-28 e7d40e5061afb87166c0929050ea721cc2956b76
src/pages/analysisPower/index/App.vue
@@ -116,7 +116,7 @@
            </template>
          </el-table-column>
          <el-table-column
            label="执行算法"
            label="督查任务"
            align="center"
            show-overflow-tooltip
          >
@@ -276,7 +276,7 @@
    cameraType(type) {
      return type === -1 ? "监控摄像机" : "AI摄像机";
    },
    taskList(tasks) {
    taskList(tasks) {//执行算法
      return tasks
        .filter((task) => {
          return task.hasRule;
@@ -442,26 +442,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')