|
@@ -212,8 +212,12 @@ export default {
|
|
handleOk(e) {
|
|
handleOk(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
var data = this.$refs.tree.getCheckedKeys()
|
|
var data = this.$refs.tree.getCheckedKeys()
|
|
|
|
+ var dataArr = data.map(item=>{
|
|
|
|
+ return item.split('@')[0]
|
|
|
|
+ })
|
|
|
|
+ // console.log(dataArr)
|
|
this.showEdit = false
|
|
this.showEdit = false
|
|
- this.$emit('synchro', {treeData:data,shieldBackwardSwitch:this.shieldBackwardSwitch})
|
|
|
|
|
|
+ this.$emit('synchro', {treeData:dataArr,shieldBackwardSwitch:this.shieldBackwardSwitch})
|
|
},
|
|
},
|
|
close() {
|
|
close() {
|
|
this.showEdit = false
|
|
this.showEdit = false
|
|
@@ -251,7 +255,7 @@ export default {
|
|
console.log(node)
|
|
console.log(node)
|
|
var data = []
|
|
var data = []
|
|
if (node.level == 1) {
|
|
if (node.level == 1) {
|
|
- var id = node.label
|
|
|
|
|
|
+ var id = node.key.split('@')[1]
|
|
|
|
|
|
getAction('/ctop/userAllocation/getAccountIdListByUserId', {
|
|
getAction('/ctop/userAllocation/getAccountIdListByUserId', {
|
|
userId: id,
|
|
userId: id,
|
|
@@ -301,8 +305,8 @@ export default {
|
|
console.log(res)
|
|
console.log(res)
|
|
this.options = res.result.map((item) => {
|
|
this.options = res.result.map((item) => {
|
|
return {
|
|
return {
|
|
- id: item.accountId,
|
|
|
|
- label: item.userId,
|
|
|
|
|
|
+ id: item.accountId+'@'+item.userId,
|
|
|
|
+ label: item.userId+'-'+item.projectName,
|
|
children: [],
|
|
children: [],
|
|
}
|
|
}
|
|
})
|
|
})
|