This commit is contained in:
KangKang0928 2025-02-19 10:07:36 +08:00
commit 4800980a48
5 changed files with 25 additions and 6 deletions

View File

@ -133,7 +133,10 @@ export default {
},
created() {
this.formInline = {
unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
unitType:
JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
? 3
: 2,
marketId: this.marketId,
shopId: this.shopId,
};

View File

@ -103,7 +103,10 @@ export default {
},
created() {
this.formInline = {
unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
unitType:
JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
? 3
: 2,
marketId: this.marketId,
shopId: this.shopId,
};
@ -135,7 +138,10 @@ export default {
},
reset() {
this.formInline = {
unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
unitType:
JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
? 3
: 2,
marketId: this.marketId,
shopId: this.shopId,
};

View File

@ -344,7 +344,11 @@ export default {
this.ruleForm = {
marketId: this.marketId,
shopId: this.shopId,
unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
unitType:
JSON.parse(sessionStorage.getItem("userInfo")).role ==
"ROLE_MERCHANT"
? 3
: 2,
list: [],
};
this.modalConfig.title = "添加积分兑换商品";

View File

@ -105,7 +105,10 @@ export default {
},
created() {
this.formInline = {
unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
unitType:
JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
? 3
: 2,
marketId: this.marketId,
shopId: this.shopId,
};

View File

@ -159,7 +159,10 @@ export default {
},
created() {
this.formInline = {
unitType: JSON.parse(sessionStorage.getItem("userInfo")).unitType,
unitType:
JSON.parse(sessionStorage.getItem("userInfo")).role == "ROLE_MERCHANT"
? 3
: 2,
marketId: this.marketId,
shopId: this.shopId,
};