| | |
| | | this.tasktopic == 7 || |
| | | this.tasktopic == 5 || |
| | | this.tasktopic == 18 || |
| | | this.tasktopic == 19 || |
| | | this.tasktopic == 6 |
| | | ) { |
| | | if (!this.topqueryParams.type) this.topqueryParams.type = "2"; |
| | |
| | | |
| | | // 暂停 |
| | | 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(() => {}); |
| | | }, |
| | | |
| | | /** 提交按钮 */ |