rev: 修改任务状态的获取

This commit is contained in:
2023-04-03 19:47:50 +08:00
parent 5b92d9b664
commit b6626bdbbb
3 changed files with 13 additions and 20 deletions

View File

@@ -109,8 +109,8 @@
<el-option
v-for="item in taskStatusList"
:key="item.code"
:label="item.name"
:value="item.code"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
@@ -143,7 +143,7 @@
<el-table-column v-if="false" prop="task_type_name" label="任务类型" min-width="120" show-overflow-tooltip />
<el-table-column v-if="false" prop="task_status" label="任务状态" />
<el-table-column prop="product_area" label="生产区域" />
<el-table-column prop="task_status_name" label="任务状态" width="95px" :formatter="formatTaskStatusName" />
<el-table-column prop="task_status_name" label="任务状态" width="120px" :formatter="formatTaskStatusName" />
<el-table-column prop="vehicle_type" label="载具类型" min-width="100" show-overflow-tooltip>
<template slot-scope="scope">
{{ dict.label.vehicle_type[scope.row.vehicle_type] }}
@@ -294,6 +294,7 @@ export default {
parent_class_code: 'task_type'
}
crudClassstandard.getClassType(param).then(res => {
console.log(res)
const data = res.content
this.buildTree(data)
this.classes1 = data
@@ -337,8 +338,8 @@ export default {
},
formatTaskStatusName(row, column) {
for (const item of this.taskStatusList) {
if (item.code === row.task_status) {
return item.name
if (item.value === row.task_status) {
return item.label
}
}
return ''