权限控制

master
Caps 6 years ago
parent a8128959e6
commit 1817146651

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

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

Loading…
Cancel
Save