修改禅道已知问题
This commit is contained in:
@@ -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() {
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (this.userName.length > 0){
|
if (this.userName.length > 0) {
|
||||||
for (let i = 0; i < this.userName.length; i++) {
|
for (let i = 0; i < this.userName.length; i++) {
|
||||||
for (let j = i + 1; j < this.userName.length; j++) {
|
for (let j = i + 1; j < this.userName.length; j++) {
|
||||||
if (this.userName[i] == this.userName[j]) {
|
if (this.userName[i] == this.userName[j]) {
|
||||||
@@ -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,32 +236,34 @@
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.gData = res.result
|
this.gData = res.result
|
||||||
this.defaultExpandedKeys = [this.departId]
|
this.defaultExpandedKeys = [this.departId]
|
||||||
if (this.userName && this.userName.length == 0) {
|
if (num == 1) {
|
||||||
if (this.personneQuery[this.query.db_field_name + 'Name']) {
|
if (this.userName && this.userName.length == 0) {
|
||||||
this.userName = this.personneQuery[this.query.db_field_name + 'Name'].split(',')
|
if (this.personneQuery[this.query.db_field_name + 'Name']) {
|
||||||
} else if (this.personneQuery[this.query.db_field_name]) {
|
this.userName = this.personneQuery[this.query.db_field_name + 'Name'].split(',')
|
||||||
this.userName = this.personneQuery[this.query.db_field_name].split(',')
|
} else if (this.personneQuery[this.query.db_field_name]) {
|
||||||
} else {
|
this.userName = this.personneQuery[this.query.db_field_name].split(',')
|
||||||
this.userName = []
|
} else {
|
||||||
|
this.userName = []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
if (this.userIds && this.userIds.length == 0) {
|
||||||
if (this.userIds && this.userIds.length == 0) {
|
if (this.personneQuery[this.query.db_field_name + '_id']) {
|
||||||
if (this.personneQuery[this.query.db_field_name + '_id']) {
|
this.userIds = this.personneQuery[this.query.db_field_name + '_id'].split(',')
|
||||||
this.userIds = this.personneQuery[this.query.db_field_name + '_id'].split(',')
|
} else if (this.personneQuery[this.query.db_field_name]) {
|
||||||
} else if (this.personneQuery[this.query.db_field_name]) {
|
this.userIds = this.personneQuery[this.query.db_field_name].split(',')
|
||||||
this.userIds = this.personneQuery[this.query.db_field_name].split(',')
|
} else {
|
||||||
} else {
|
this.userIds = []
|
||||||
this.userIds = []
|
}
|
||||||
}
|
}
|
||||||
}
|
this.defaultCheckedKeys = this.userIds
|
||||||
this.defaultCheckedKeys = this.userIds
|
this.defaultCheckedKeysName = []
|
||||||
this.defaultCheckedKeysName = []
|
if (this.defaultCheckedKeys.length > 0) {
|
||||||
if (this.defaultCheckedKeys.length > 0) {
|
for (let i = 0; i < this.defaultCheckedKeys.length; i++) {
|
||||||
for (let i = 0; i < this.defaultCheckedKeys.length; i++) {
|
this.defaultCheckedKeysName.push({
|
||||||
this.defaultCheckedKeysName.push({
|
id: this.defaultCheckedKeys[i],
|
||||||
id: this.defaultCheckedKeys[i],
|
name: this.userName[i]
|
||||||
name: this.userName[i]
|
})
|
||||||
})
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.treeVisible = true
|
this.treeVisible = true
|
||||||
|
|||||||
Reference in New Issue
Block a user