| | |
| | | </div> |
| | | <div |
| | | style="font-size: 18px; margin-bottom: 20px" |
| | | v-if="taskform.showDate[0]" |
| | | v-if="taskform.showDate" |
| | | > |
| | | 执行日期:<span |
| | | style="font-size: 18px; color: #2376b7; margin-bottom: 20px" |
| | |
| | | getTasklist(this.topqueryParams).then((response) => { |
| | | this.userList = response.rows; |
| | | this.total = response.total; |
| | | this.$forceUpdate(); |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | |
| | | sponsor(row) { |
| | | console.log(row, "任务信息"); |
| | | this.taskform = row; |
| | | console.log(12); |
| | | if (this.taskform.showDate && this.taskform.sendType != 2) { |
| | | this.taskform.showDate = this.taskform.showDate.split(","); |
| | | } |
| | |
| | | } else { |
| | | this.taskform.showTimeNoon = []; |
| | | } |
| | | if (row.sendState != 2) { |
| | | if (this.taskform.sendState != 2 && this.taskform.sendType != 2) { |
| | | this.taskformVisible = true; |
| | | } else if (this.taskform.sendState != 2 && this.taskform.sendType == 2) { |
| | | this.TaskOperation.taskId = row.taskid; |
| | | this.TaskOperation.sendState = 2; |
| | | this.TaskOperation.sendType = 2; |
| | | this.$modal |
| | | .confirm( |
| | | '当前选中任务名称为"' + |
| | | row.taskName + |
| | | '"的数据项为立即执行任务,发起执行后不可撤回!是否继续' |
| | | ) |
| | | .then(() => { |
| | | TaskTemplateSendExecution(this.TaskOperation).then((res) => { |
| | | if (res.code == 200) { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("任务已立即执行"); |
| | | } |
| | | }); |
| | | }) |
| | | .catch(() => {}); |
| | | } else { |
| | | this.$modal.msgError("任务已发起,不可再次发起"); |
| | | } |