add:添加任务配置
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
@change="handTaskStatus"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in taskStatusList"
|
||||
v-for="item in statusEnum.FORM_STATUS"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
@@ -244,7 +244,6 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getTaskStatusList()
|
||||
},
|
||||
methods: {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
@@ -261,15 +260,6 @@ export default {
|
||||
}
|
||||
this.crud.toQuery()
|
||||
},
|
||||
getTaskStatusList() {
|
||||
crudDict.getStatusEnum("FORM_STATUS").then(res => {
|
||||
this.taskStatusList = res
|
||||
})
|
||||
},
|
||||
getStatusName(code) {
|
||||
const status = this.taskStatusList.find(item => item.code === code)
|
||||
return status ? status.name : '-'
|
||||
},
|
||||
doOperate(row, command) {
|
||||
let method_name = ''
|
||||
switch (command) {
|
||||
|
||||
Reference in New Issue
Block a user