|
|
|
@ -80,6 +80,7 @@
|
|
|
|
|
confirmPassword: this.$route.query.password,
|
|
|
|
|
roleId: this.$route.query.roleId,
|
|
|
|
|
shopId: this.$route.query.shopId,
|
|
|
|
|
type:this.$route.query.type
|
|
|
|
|
},
|
|
|
|
|
modifyValidate: {
|
|
|
|
|
userName:[
|
|
|
|
@ -112,9 +113,13 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted: function () {
|
|
|
|
|
debugger
|
|
|
|
|
if(this.$route.query.roleCode === 'DZ-DIANZHANG'){
|
|
|
|
|
this.shopSelectDisplay = true;
|
|
|
|
|
this.modifyFrom.type = 1;
|
|
|
|
|
this.listShop();
|
|
|
|
|
} else if(this.$route.query.roleCode === "DG-DAOGOU"){
|
|
|
|
|
this.shopSelectDisplay = true;
|
|
|
|
|
this.modifyFrom.type = 4;
|
|
|
|
|
this.listShop();
|
|
|
|
|
}
|
|
|
|
|
this.listRole();
|
|
|
|
@ -158,7 +163,7 @@
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(this.shopSelectDisplay && !this.modifyFrom.shopId) {
|
|
|
|
|
this.$Message.info("店长必须选择店铺");
|
|
|
|
|
this.$Message.info("必须选择店铺");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(!this.modifyFrom.roleId) {
|
|
|
|
@ -202,6 +207,11 @@
|
|
|
|
|
roleChange(roleBean) {
|
|
|
|
|
if(roleBean.code === 'DZ-DIANZHANG'){
|
|
|
|
|
this.shopSelectDisplay = true;
|
|
|
|
|
this.modifyFrom.type = 1;
|
|
|
|
|
this.listShop();
|
|
|
|
|
} else if(roleBean.code === "DG-DAOGOU"){
|
|
|
|
|
this.shopSelectDisplay = true;
|
|
|
|
|
this.modifyFrom.type = 4;
|
|
|
|
|
this.listShop();
|
|
|
|
|
} else {
|
|
|
|
|
this.shopSelectDisplay = false;
|
|
|
|
|