Commit a437aca3 by huaying

fix: 批量导入

parent 98c8e08b
......@@ -251,7 +251,7 @@ export default {
}
},
created() {
this.getcliqueMemberRelation();
this.$store.commit("mutations-slide", true);
this.initialize();
this.getGradeList();
......@@ -263,18 +263,7 @@ export default {
});
},
mounted() {
this.importList = this.importList.map((item, index)=>{
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.getcliqueMemberRelation();
this.getFindMemberFields();
this.getAjaxMembers();
this.getEnterpriseInfo();
......@@ -293,10 +282,20 @@ export default {
methods: {
getcliqueMemberRelation() {
doFetchGet(url.cliqueMemberRelation, {}).then((res)=>{
console.log(res, 'res');
let {errorCode,result} = res.data;
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