WXL (wul)
8 天以前 ffa22cc18c75c0a73a3fd987e2b62fbf55316db2
src/views/followvisit/tasklist/index.vue
@@ -1003,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(() => {});
    },
    /** 提交按钮 */