Commit a437aca3 by huaying

fix: 批量导入

parent 98c8e08b
...@@ -251,7 +251,7 @@ export default { ...@@ -251,7 +251,7 @@ export default {
} }
}, },
created() { created() {
this.getcliqueMemberRelation();
this.$store.commit("mutations-slide", true); this.$store.commit("mutations-slide", true);
this.initialize(); this.initialize();
this.getGradeList(); this.getGradeList();
...@@ -263,18 +263,7 @@ export default { ...@@ -263,18 +263,7 @@ export default {
}); });
}, },
mounted() { mounted() {
this.importList = this.importList.map((item, index)=>{ this.getcliqueMemberRelation();
if(this.getCodeAuth(item.btnCode)){
console.log(typeof this.isShowClique, 'this.isShowClique');
if(item.btnCode == 'importMember' && this.isShowClique == 1) {
return {};
}else {
return item;
}
}else{
return {};
}
})
this.getFindMemberFields(); this.getFindMemberFields();
this.getAjaxMembers(); this.getAjaxMembers();
this.getEnterpriseInfo(); this.getEnterpriseInfo();
...@@ -293,10 +282,20 @@ export default { ...@@ -293,10 +282,20 @@ export default {
methods: { methods: {
getcliqueMemberRelation() { getcliqueMemberRelation() {
doFetchGet(url.cliqueMemberRelation, {}).then((res)=>{ doFetchGet(url.cliqueMemberRelation, {}).then((res)=>{
console.log(res, 'res');
let {errorCode,result} = res.data; let {errorCode,result} = res.data;
if(errorCode == 0){ if(errorCode == 0){
this.isShowClique = result; this.isShowClique = result || 1;
this.importList = this.importList.map((item, index)=>{
if(this.getCodeAuth(item.btnCode)){
if(item.btnCode == 'importMember' && this.isShowClique == 1) {
return {};
}else {
return item;
}
}else{
return {};
}
})
} }
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment