WXL (wul)
3 天以前 09abeae851f72a25f105030e37c6a0c9f3189378
src/views/followvisit/tasklist/index.vue
@@ -184,8 +184,26 @@
          key="longTask"
          prop="longTask"
        >
          <template slot-scope="scope">
          <!-- <template slot-scope="scope">
            <span>{{ scope.row.longTask ? "长期任务" : "非长期" }}</span>
          </template> -->
           <template slot-scope="scope">
              <div v-if="scope.row.longTask == 0">
                <el-tag type="primary" :disable-transitions="false"
                  >自定义周期任务</el-tag
                >
              </div>
              <div v-if="scope.row.longTask == 1">
                <el-tag type="success" :disable-transitions="false"
                  >长期任务</el-tag
                >
              </div>
              <div v-if="scope.row.longTask == 2">
                <el-tag type="success" :disable-transitions="false"
                  >固定任务</el-tag
                >
              </div>
          </template>
        </el-table-column>
@@ -1003,17 +1021,22 @@
    // 暂停
    stop(row) {
      console.log(row);
      if (row.sendState == 2) {
        this.TaskOperation.taskId = row.taskid;
        this.TaskOperation.sendState = 3;
        this.TaskOperation.sendType = "";
        this.TaskOperation.taskType = row.type;
        TaskTemplateSendExecution(this.TaskOperation).then((res) => {
          this.$modal.msgSuccess("任务已暂停");
          this.getList();
        });
      }
      this.$modal
        .confirm('是否确认暂停"' + row.taskName + '"?')
        .then(function () {
          if (row.sendState == 2) {
            this.TaskOperation.taskId = row.taskid;
            this.TaskOperation.sendState = 3;
            this.TaskOperation.sendType = "";
            this.TaskOperation.taskType = row.type;
            TaskTemplateSendExecution(this.TaskOperation).then((res) => {
              this.$modal.msgSuccess("任务已暂停");
              this.getList();
            });
          }
        })
        .catch(() => {});
    },
    /** 提交按钮 */