|
@@ -69,7 +69,7 @@ const DingDepartUser = {
|
|
if(type == 'bm'){
|
|
if(type == 'bm'){
|
|
const node = {
|
|
const node = {
|
|
title: item.name,
|
|
title: item.name,
|
|
- id:item.deptId,
|
|
|
|
|
|
+ id:'bm-'+item.deptId,
|
|
value: item.deptId,
|
|
value: item.deptId,
|
|
pId: item.parentId,
|
|
pId: item.parentId,
|
|
autoAddUser: item.autoAddUser,
|
|
autoAddUser: item.autoAddUser,
|
|
@@ -84,7 +84,7 @@ const DingDepartUser = {
|
|
}else{
|
|
}else{
|
|
ret.push({
|
|
ret.push({
|
|
title: item.name,
|
|
title: item.name,
|
|
- id:item.userid,
|
|
|
|
|
|
+ id:'yg-'+item.userid,
|
|
value: item.userid,
|
|
value: item.userid,
|
|
pId: item.parentId,
|
|
pId: item.parentId,
|
|
avatar: item.avatar,
|
|
avatar: item.avatar,
|
|
@@ -111,6 +111,7 @@ const DingDepartUser = {
|
|
refashDingTalkAllDeptUser().then(res => {
|
|
refashDingTalkAllDeptUser().then(res => {
|
|
this.$message.info(res.message)
|
|
this.$message.info(res.message)
|
|
if(res.status == 200){
|
|
if(res.status == 200){
|
|
|
|
+ this.treeData = []
|
|
this.genTreeNode()
|
|
this.genTreeNode()
|
|
}
|
|
}
|
|
this.$emit("loaded")
|
|
this.$emit("loaded")
|