权限控制

master
Caps 6 years ago
parent a8128959e6
commit 1817146651

@ -109,8 +109,6 @@
],
modifyValidate: {
mobil: [
{required: true, message: '手机号不能为空', trigger: 'blur'},
{min: 1, max: 11, message: '长度在 1 到 11 个字符', trigger: 'blur'},
{pattern: /^[0-9]*$/g, message: '只可以输入数字', trigger: 'blur'},
],
userName:[
@ -252,6 +250,10 @@
this.shopSelectDisplay = false;
this.modifyFrom.type = 2;
this.allCompany();
}else if(roleBean.code === 'GL-YUNYING'){
this.companySelectDisplay = false;
this.shopSelectDisplay = false;
this.addFrom.type = 2;
} else {
this.shopSelectDisplay = false;
this.modifyFrom.shopId = null;

@ -112,8 +112,6 @@
{pattern: /^[0-9a-zA-Z]*$/g, message: '只可以输入数字和字母', trigger: 'blur'},
],
mobil: [
{required: true, message: '手机号不能为空', trigger: 'blur'},
{min: 1, max: 11, message: '长度在 1 到 11 个字符', trigger: 'blur'},
{pattern: /^[0-9]*$/g, message: '只可以输入数字', trigger: 'blur'},
],
password: [
@ -257,8 +255,12 @@
}else if(roleBean.code === 'DG-YUNYING'){
this.companySelectDisplay = true;
this.shopSelectDisplay = false;
this.addFrom.type = 2;
this.addFrom.type = 3;
this.allCompany();
}else if(roleBean.code === 'GL-YUNYING'){
this.companySelectDisplay = false;
this.shopSelectDisplay = false;
this.addFrom.type = 2;
}else {
this.shopSelectDisplay = false;
this.addFrom.shopId = null;

Loading…
Cancel
Save