add:任务下发按钮及逻辑
This commit is contained in:
@@ -135,9 +135,9 @@
|
||||
<el-table-column prop="product_area" show-overflow-tooltip show-tooltip-when-overflow label="生产区域"/>
|
||||
<el-table-column prop="task_code" show-overflow-tooltip show-tooltip-when-overflow label="任务编码"/>
|
||||
<el-table-column prop="task_type" show-overflow-tooltip show-tooltip-when-overflow label="任务类型">
|
||||
<template slot-scope="scope">
|
||||
{{ statusEnum.label.TASK_TYPE[scope.row.task_type] }}
|
||||
</template>
|
||||
<template slot-scope="scope">
|
||||
{{ statusEnum.label.TASK_TYPE[scope.row.task_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="acs_type" show-overflow-tooltip show-tooltip-when-overflow width="130" label="ACS任务类型"/>
|
||||
<el-table-column prop="status" show-overflow-tooltip show-tooltip-when-overflow label="任务状态">
|
||||
@@ -164,8 +164,15 @@
|
||||
<el-table-column prop="create_time" show-overflow-tooltip show-tooltip-when-overflow label="创建时间"/>
|
||||
<el-table-column prop="update_name" show-overflow-tooltip show-tooltip-when-overflow label="修改人"/>
|
||||
<el-table-column prop="update_time" show-overflow-tooltip show-tooltip-when-overflow label="修改时间"/>
|
||||
<el-table-column v-permission="[]" label="操作" width="200px" align="center" fixed="right">
|
||||
<el-table-column v-permission="[]" label="操作" width="250px" align="center" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-success"
|
||||
@click="doOperate(scope.row, 'c')"
|
||||
:disabled="scope.row.status!=='10' && scope.row.status!=='30' "
|
||||
>下发
|
||||
</el-button>
|
||||
<el-button
|
||||
type="text"
|
||||
icon="el-icon-success"
|
||||
@@ -235,7 +242,7 @@ export default {
|
||||
name: 'Task',
|
||||
components: {pagination, crudOperation, rrOperation, udOperation},
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
statusEnums: [ 'TASK_TYPE', 'FORM_STATUS' ],
|
||||
statusEnums: ['TASK_TYPE', 'FORM_STATUS'],
|
||||
cruds() {
|
||||
return CRUD({
|
||||
title: '任务管理',
|
||||
@@ -287,7 +294,7 @@ export default {
|
||||
status = '90'
|
||||
break
|
||||
case 'c':// 下发
|
||||
status = '20'
|
||||
status = '15'
|
||||
break
|
||||
case 'd':// 详情
|
||||
status = 'view'
|
||||
@@ -310,7 +317,7 @@ export default {
|
||||
console.log(err.response.data.message)
|
||||
})
|
||||
},
|
||||
taskScheduler(){
|
||||
taskScheduler() {
|
||||
crudSchBaseTask.scheduler().then(res => {
|
||||
this.crud.toQuery()
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
|
||||
Reference in New Issue
Block a user