Commit 2929d9e2 authored by 盖献康's avatar 盖献康

feat: bug(70432) - 用户管理,未选择归属部门数据在列表未显示

parent 680c90ab
......@@ -197,7 +197,8 @@
<el-table-column label="所属部门" align="left" prop="dept">
<template slot-scope="{ row }">
<span v-if="row.userId === ''">-</span>
<span v-else>{{ row.dept.deptName }}</span>
<span v-else-if="row.dept === null"> - </span>
<span v-else>{{ row.dept.deptName || '-' }}</span>
</template>
</el-table-column>
<el-table-column
......@@ -1086,7 +1087,11 @@ export default {
}
this.taskCreateRequest.taskList = this.model.inspectionItemList
this.tableData.forEach(item => {
item.deptName = item.dept.deptName
if (item.dept !== null) {
item.deptName = item.dept.deptName
} else {
item.deptName = ''
}
item.name = item.nickName
})
this.taskCreateRequest.auditors = this.tableData
......
......@@ -208,7 +208,7 @@
<el-table-column label="所属部门" align="left" prop="dept">
<template slot-scope="{ row }">
<span v-if="row.userId === ''">-</span>
<span v-else>{{ row.deptName }}</span>
<span v-else>{{ row.deptName || '-' }}</span>
</template>
</el-table-column>
</el-table>
......
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 to comment