Commit 4c62281d by 王刘锁

类型

parent 36d81ad2
...@@ -26,6 +26,15 @@ export default class TaskChainList { ...@@ -26,6 +26,15 @@ export default class TaskChainList {
}); });
} }
// 任务执行清单状态
priorityChange(data) {
return request({
url: `/task/taskList/updateByPriority`,
method: "post",
data,
});
}
//任务执行清单队列删除 //任务执行清单队列删除
setdeleteById(data) { setdeleteById(data) {
return request({ return request({
......
...@@ -54,7 +54,10 @@ ...@@ -54,7 +54,10 @@
<span v-else-if="scope.row.taskStatus === '5'" style="color: #249601;font-weight: bold;">队列中</span> <span v-else-if="scope.row.taskStatus === '5'" style="color: #249601;font-weight: bold;">队列中</span>
</template> </template>
</vxe-column> </vxe-column>
<vxe-column field="source_dictText" title="来源" align="center"></vxe-column> <vxe-column field="source_dictText" title="来源" align="center"></vxe-column>
<vxe-column field="orderEntity.start" title="起点" align="center"></vxe-column>
<vxe-column field="orderEntity.ends" title="终点" align="center"></vxe-column>
<vxe-column title="指令集" align="center"> <vxe-column title="指令集" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tooltip placement="top" v-if="scope.row.orderEntity"> <el-tooltip placement="top" v-if="scope.row.orderEntity">
...@@ -72,7 +75,16 @@ ...@@ -72,7 +75,16 @@
</el-tooltip> </el-tooltip>
</template> </template>
</vxe-column> </vxe-column>
<vxe-column field="priority" title="优先级" align="center"></vxe-column> <vxe-column field="priority" title="优先级" align="center">
</vxe-column>
<vxe-column title="优先级" field="priority" width="170px" align="center">
<template slot-scope="scope">
<el-input-number size="small" v-model="scope.row.priority" @change="priorityChange(scope.row)" :step="1" :min="0" :max="99" label="设置优先级"></el-input-number>
</template>
</vxe-column>
<vxe-column field="createDate" title="创建时间" align="center"></vxe-column> <vxe-column field="createDate" title="创建时间" align="center"></vxe-column>
<vxe-column field="beginAt" title="执行开始时间" align="center"></vxe-column> <vxe-column field="beginAt" title="执行开始时间" align="center"></vxe-column>
<vxe-column field="finishAt" title="执行结束时间" align="center"></vxe-column> <vxe-column field="finishAt" title="执行结束时间" align="center"></vxe-column>
...@@ -217,6 +229,19 @@ export default { ...@@ -217,6 +229,19 @@ export default {
this.subtaskData = data this.subtaskData = data
}) })
}, },
priorityChange (row) {
this.loading = true
this.TaskChainList.priorityChange({id: row.id, priority: row.priority}).then(({data}) => {
this.$message({
message: data.msg,
type: 'success',
duration: 1500
})
this.loading = false
this.refreshList()
})
},
// 设置任务状态 // 设置任务状态
async setTaskStatus (row, taskStatus) { async setTaskStatus (row, taskStatus) {
const can = { const can = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment