增加员工权限校验

This commit is contained in:
gyq
2024-10-21 13:48:57 +08:00
parent 9d73a49a06
commit db8c41fd16
7 changed files with 126 additions and 47 deletions

View File

@@ -25,7 +25,8 @@
</el-icon>
<el-text class="t">赠送</el-text>
</div>
<div class="item" :class="{ disabled: props.item.isPack == 'true' }" @click="giftPackHandle('isPack')">
<div class="item" :class="{ disabled: props.item.isPack == 'true' }" @click="giftPackHandle('isPack')"
v-if="JSON.parse(shopStore.info.eatModel).some(item => item == 'take-out')">
<el-icon class="icon">
<Box />
</el-icon>
@@ -59,6 +60,10 @@
import { ref } from 'vue'
import takeFoodCode from '@/components/takeFoodCode.vue'
import skuModal from '@/components/skuModal.vue'
import { useShop } from '@/store/shop.js'
const shopStore = useShop()
const props = defineProps({
item: {
type: Object,