| | |
| | | key="longTask" |
| | | prop="longTask" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <!-- <template slot-scope="scope"> |
| | | <span>{{ scope.row.longTask ? "长期任务" : "非长期" }}</span> |
| | | </template> --> |
| | | <template slot-scope="scope"> |
| | | |
| | | <div v-if="scope.row.longTask == 0"> |
| | | <el-tag type="primary" :disable-transitions="false" |
| | | >自定义周期任务</el-tag |
| | | > |
| | | </div> |
| | | <div v-if="scope.row.longTask == 1"> |
| | | <el-tag type="success" :disable-transitions="false" |
| | | >长期任务</el-tag |
| | | > |
| | | </div> |
| | | <div v-if="scope.row.longTask == 2"> |
| | | <el-tag type="success" :disable-transitions="false" |
| | | >固定任务</el-tag |
| | | > |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | |
| | | 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(() => {}); |
| | | }, |
| | | |
| | | /** 提交按钮 */ |