sd
2025-08-05 72b025d6b43271ae88541ea23c92070b3b2acc96
src/pages/analysisPower/index/App.vue
@@ -116,7 +116,7 @@
            </template>
          </el-table-column>
          <el-table-column
            label="督查任务"
            label="AI任务"
            align="center"
            show-overflow-tooltip
          >
@@ -124,6 +124,34 @@
              <span v-if="scope.row.run_type === -1">-</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>
@@ -293,6 +321,20 @@
        })
        .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 ? "已开启" : "未开启";
    },