课程选择爱众调用用户服务的

This commit is contained in:
daihh
2023-02-13 10:27:32 +08:00
parent 3569345d09
commit cbba0120ea

View File

@@ -606,32 +606,32 @@ export default {
}), }),
loadUserGroup(){ loadUserGroup(){
let $this=this; let $this=this;
apiUserGroup.findByName('').then(rs=>{ // apiUserGroup.findByName('').then(rs=>{
if(rs.status==200){
let crowdList=[];
rs.result.forEach(item=>{
crowdList.push({
id:item.key,
name:item.value,
disabled:false
})
})
this.userGroupList=crowdList;
}
});
// apiUserBasic.getUserCrowds().then(rs=>{
// if(rs.status==200){ // if(rs.status==200){
// let crowdList=[]; // let crowdList=[];
// rs.result.forEach(item=>{ // rs.result.forEach(item=>{
// crowdList.push({ // crowdList.push({
// id:item.kid, // id:item.key,
// name:item.audienceName, // name:item.value,
// disabled:false // disabled:false
// }) // })
// }); // })
// this.userGroupList=crowdList; // this.userGroupList=crowdList;
// } // }
// }) // });
apiUserBasic.getUserCrowds().then(rs=>{
if(rs.status==200){
let crowdList=[];
rs.result.forEach(item=>{
crowdList.push({
id:item.kid,
name:item.audienceName,
disabled:false
})
});
this.userGroupList=crowdList;
}
})
}, },
resOwnerName(code) { resOwnerName(code) {
if (code == '') { if (code == '') {