修改禅道已知问题

This commit is contained in:
qq787203167
2022-08-24 14:38:32 +08:00
parent b413153c8a
commit e5ca6d6ddc
@@ -89,7 +89,7 @@
this.searchModel = '' this.searchModel = ''
this.userIds = [] this.userIds = []
this.userName = [] this.userName = []
this.queryDepartUserTreeList() this.queryDepartUserTreeList(1)
this.visible = true this.visible = true
}, },
standardDelete() { standardDelete() {
@@ -171,7 +171,6 @@
} }
let userIds = JSON.parse(JSON.stringify(this.userIds)) let userIds = JSON.parse(JSON.stringify(this.userIds))
let userName = JSON.parse(JSON.stringify(this.userName)) let userName = JSON.parse(JSON.stringify(this.userName))
console.log(userName)
this.$emit('input', userName.join(',')) this.$emit('input', userName.join(','))
this.$emit('change', this.query.db_field_name, userIds.join(','), this.query.subscript) this.$emit('change', this.query.db_field_name, userIds.join(','), this.query.subscript)
this.visible = false this.visible = false
@@ -195,7 +194,8 @@
if (e) { if (e) {
this.getUserAndDepart() this.getUserAndDepart()
} else { } else {
this.queryDepartUserTreeList() this.treeVisible = false
this.queryDepartUserTreeList(2)
} }
}, },
getUserAndDepart() { getUserAndDepart() {
@@ -214,12 +214,12 @@
if (this.departId == val.node.value) { if (this.departId == val.node.value) {
} else { } else {
this.departId = val.node.value this.departId = val.node.value
this.queryDepartUserTreeList() this.queryDepartUserTreeList(2)
} }
} }
} }
}, },
queryDepartUserTreeList() { queryDepartUserTreeList(num) {
let gData = JSON.parse(JSON.stringify(this.gData)) let gData = JSON.parse(JSON.stringify(this.gData))
if (gData && gData.length > 0) { if (gData && gData.length > 0) {
gData = JSON.stringify(gData) gData = JSON.stringify(gData)
@@ -236,6 +236,7 @@
if (res.success) { if (res.success) {
this.gData = res.result this.gData = res.result
this.defaultExpandedKeys = [this.departId] this.defaultExpandedKeys = [this.departId]
if (num == 1) {
if (this.userName && this.userName.length == 0) { if (this.userName && this.userName.length == 0) {
if (this.personneQuery[this.query.db_field_name + 'Name']) { if (this.personneQuery[this.query.db_field_name + 'Name']) {
this.userName = this.personneQuery[this.query.db_field_name + 'Name'].split(',') this.userName = this.personneQuery[this.query.db_field_name + 'Name'].split(',')
@@ -264,6 +265,7 @@
}) })
} }
} }
}
this.treeVisible = true this.treeVisible = true
} else { } else {
this.gData = [] this.gData = []