Compare commits
No commits in common. "a74c6dc4359d4d02faca0a097d31e10c8cc000bd" and "cd3437b03ca0d0912ea42f3697e42292e42c5221" have entirely different histories.
a74c6dc435
...
cd3437b03c
|
@ -1058,37 +1058,7 @@ export default {
|
|||
},
|
||||
// 移除选中项时触发的事件
|
||||
handleRemove(selectedItems) {
|
||||
console.log(this.form.USER_ID)
|
||||
const currentUserId = this.form.USER_ID
|
||||
requestFN(
|
||||
'/user/listUserByCorp',
|
||||
{
|
||||
DEPARTMENT_ID: selectedItems.id
|
||||
}
|
||||
).then((data) => {
|
||||
const userList = data.userList
|
||||
if (userList) {
|
||||
for (let i = 0; i < userList.length; i++) {
|
||||
for (let j = 0; j < this.form.USER_ID.length; j++) {
|
||||
if (userList[i].USER_ID === this.form.USER_ID[j]) {
|
||||
for (let k = 0; k < currentUserId.length; k++) {
|
||||
if (this.form.USER_ID[j] === currentUserId[k]) {
|
||||
console.log(this.form.USER_ID[j])
|
||||
currentUserId.splice(k, 1)
|
||||
break
|
||||
}
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
this.listLoading = false
|
||||
// this.peopleList = data.userList
|
||||
}).catch((e) => {
|
||||
this.listLoading = false
|
||||
})
|
||||
this.form.USER_ID = currentUserId
|
||||
this.form.USER_ID = []
|
||||
// 移除选中项时同时移除全部子节点
|
||||
if (this.form.INVOLVING_CORPS_DEPART_ID.includes(selectedItems.id)) {
|
||||
this.form.INVOLVING_CORPS_DEPART_ID.splice(this.form.INVOLVING_CORPS_DEPART_ID.indexOf(selectedItems.id), 1)
|
||||
|
|
|
@ -104,8 +104,7 @@ export default {
|
|||
rules: {
|
||||
FIRE_REGION_NAME: [{ required: true, message: '消防区域不为空', trigger: 'blur' }],
|
||||
DEPARTMENT_ID: [{ required: true, message: '负责部门不为空', trigger: 'blur' }],
|
||||
FIRE_REGION_CODE: [{ required: true, message: '区域编码不为空', trigger: 'blur' }],
|
||||
PHOTO_UPLOAD_METHOD: [{ required: true, message: '区域编码不为空', trigger: 'blur' }]
|
||||
FIRE_REGION_CODE: [{ required: true, message: '区域编码不为空', trigger: 'blur' }]
|
||||
},
|
||||
formLabelWidth: '120px',
|
||||
OTHERLEVELID: '',
|
||||
|
|
Loading…
Reference in New Issue