增加仓库和角色类型的数据权限控制

This commit is contained in:
季圣华
2021-05-19 23:29:15 +08:00
parent f1fa71d3cc
commit 931cdb736b
34 changed files with 142 additions and 75 deletions

View File

@@ -135,12 +135,9 @@
methods: {
getSystemConfig() {
getCurrentSystemConfig().then((res) => {
if(res.code === 200){
let systemConfig = res.data
this.depotFlag = systemConfig.depotFlag
this.customerFlag = systemConfig.customerFlag
} else {
this.$message.warning(res.data);
if(res.code === 200 && res.data){
this.depotFlag = res.data.depotFlag
this.customerFlag = res.data.customerFlag
}
})
},