部门选择

This commit is contained in:
liuye
2023-06-13 15:35:14 +08:00
parent c616e57b4f
commit 23383c28de

View File

@@ -148,12 +148,7 @@ export default {
this.form = {...row} this.form = {...row}
this.form.deptList = [] this.form.deptList = []
this.form.areaList = this.form.areaIds.split(',') this.form.areaList = this.form.areaIds.split(',')
var deptList = row.departmentIds.split(',') this.form.deptList = row.departmentIds.split(',')
var deptNameList = row.departmentNames.split(',')
deptList.map((item, index) => {
var i = {id: item, name: deptNameList[index], checked: true}
this.form.deptList[index] = i
})
this.dialog = true this.dialog = true
}, },
add() { add() {