This commit is contained in:
余同学 2025-02-19 10:02:39 +08:00
parent 913ac0d8c3
commit 09dc3fe8d1
5 changed files with 25 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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