| | |
| | | : this.tasktopic; |
| | | if (this.tasktopic == 1) { |
| | | this.topqueryParams.type = 3; |
| | | this.TaskOperation.taskType = 3; |
| | | } else if (this.tasktopic == 2) { |
| | | this.topqueryParams.type = 1; |
| | | this.TaskOperation.taskType = 1; |
| | | } else if (this.tasktopic == 3) { |
| | | this.topqueryParams.type = 1; |
| | | this.TaskOperation.taskType = 1; |
| | | } else if (this.tasktopic == 4) { |
| | | this.topqueryParams.type = 1; |
| | | this.TaskOperation.taskType = 1; |
| | | } else if (this.tasktopic == 5) { |
| | | this.topqueryParams.type = 1; |
| | | |
| | | this.TaskOperation.taskType = 1; |
| | | } else if (this.tasktopic == 6) { |
| | | this.topqueryParams.type = 2; |
| | | this.TaskOperation.taskType = 2; |
| | | } |
| | | this.topqueryParams.typename = this.findLabelByValue( |
| | | this.taskoptions, |
| | |
| | | confirmSponsor(row) { |
| | | this.TaskOperation.taskId = row.taskid; |
| | | this.TaskOperation.sendState = 2; |
| | | this.taskType(); |
| | | TaskTemplateSendExecution(this.TaskOperation).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("任务已成功加入执行队列"); |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // 判断类型 |
| | | taskType(row) { |
| | | if (this.tasktopic == 2 || this.tasktopic == 3) { |
| | | this.TaskOperation.taskType = 1; |
| | | } else if (this.tasktopic == 6) { |
| | | this.TaskOperation.taskType = 2; |
| | | } |
| | | }, |
| | | |
| | | // 立即执行 |
| | | immediateExecution(row) { |
| | | console.log(row, "任务信息"); |