WXL (wul)
2 天以前 d3c60e18b95b50751f8088fa2d23cd8ff7f173bc
src/views/followvisit/tasklist/index.vue
@@ -685,6 +685,7 @@
        this.tasktopic == 7 ||
        this.tasktopic == 5 ||
        this.tasktopic == 18 ||
        this.tasktopic == 19 ||
        this.tasktopic == 6
      ) {
        if (!this.topqueryParams.type) this.topqueryParams.type = "2";
@@ -1002,17 +1003,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(() => {});
    },
    /** 提交按钮 */