|
@@ -67,17 +67,15 @@ export default {
|
|
|
this.autoExpandParent = false
|
|
|
},
|
|
|
onCheck(checkedKeys) {
|
|
|
- console.log('onCheck', checkedKeys)
|
|
|
this.checkedKeys = checkedKeys
|
|
|
},
|
|
|
onSelect(selectedKeys, info) {
|
|
|
- console.log('onSelect', info)
|
|
|
this.selectedKeys = selectedKeys
|
|
|
},
|
|
|
handleOk(e) {
|
|
|
- console.log(e)
|
|
|
+ let defaultData = this.checkedKeys.filter(item => item.toString().indexOf('-') === -1);
|
|
|
this.showEdit = false
|
|
|
- this.$emit('synchro', this.checkedKeys)
|
|
|
+ this.$emit('synchro', defaultData)
|
|
|
},
|
|
|
close() {
|
|
|
this.showEdit = false
|
|
@@ -117,7 +115,7 @@ export default {
|
|
|
this.treeData = res.result.map(item=>{
|
|
|
return {
|
|
|
title: item.projectName,
|
|
|
- key: item.projectId,
|
|
|
+ key: item.projectId + '-',
|
|
|
children:item.userAllocationList.map(i=>{
|
|
|
return {
|
|
|
title: i.authName+'\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0'+(i.userName?i.userName:'管理员'),
|