feat: 登录类型增加

This commit is contained in:
GaoHao
2025-04-12 11:01:38 +08:00
parent ce3b817e42
commit 05aaa2fd64
7 changed files with 28 additions and 19 deletions

View File

@@ -11,7 +11,7 @@
<el-input placeholder="商品名称" v-model="query.productName" />
</el-form-item>
<el-form-item v-if="isHeadShop == 1">
<el-form-item v-if="isHeadShop == 1&&loginType == 0">
<el-select v-model="shopId" placeholder="选择分店" style="width: 200px; margin-right: 10px"
@change="getCategory">
<el-option v-for="item in branchList" :key="item.shopId" :label="item.shopName" :value="item.shopId" />
@@ -186,7 +186,8 @@ export default {
payCountTotal: 0,
branchList: [],
shopId: null,
isHeadShop: JSON.parse(localStorage.getItem("userInfo")).isHeadShop
isHeadShop: JSON.parse(localStorage.getItem("userInfo")).isHeadShop,
loginType: localStorage.getItem("loginType")
};
},