Commit 96f9be17 by HUAWEI

111

parent 84c796aa
......@@ -25,4 +25,13 @@ export default class TaskChainList {
data,
});
}
//任务执行清单队列删除
setdeleteById(data) {
return request({
url: `/task/taskList/deleteById`,
method: "post",
data,
});
}
}
......@@ -119,6 +119,12 @@
v-if="scope.row.taskStatus === '1' && hasPermission('taskChainList:cancel')"
@click="setTaskStatus(scope.row,'4')">取消
</el-button>
<el-divider direction="vertical"
v-if="scope.row.taskStatus === '5' && hasPermission('taskChainList:delete')"></el-divider>
<el-button type="text" size="mini"
v-if="scope.row.taskStatus === '5' && hasPermission('taskChainList:delete')"
@click="delete(scope.row)">删除
</el-button>
</template>
</vxe-column>
</vxe-table>
......@@ -225,6 +231,20 @@ export default {
}
})
},
async delete (row) {
const can = {
id: row.id
}
this.TaskChainList.setdeleteById(can).then(({ data }) => {
if (data.code === 200) {
this.$set(row, 'taskStatus', taskStatus)
this.$message({
type: 'success',
message: data.msg
});
}
})
},
},
created () {
this.TaskChainList = new TaskChainList()
......
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