权限判断

main
unknown 2024-05-24 16:48:34 +08:00
parent ce6453c610
commit 3866223374
1 changed files with 24 additions and 20 deletions

View File

@ -35,17 +35,20 @@
</view>
</template>
</view>
<view
class="text-center leading-60rpx w-200rpx flex-none"
v-for="(ty, j) in item.lottery_types"
:key="j"
>
<view class="td">{{ ty.name }}</view>
<view class="grid grid-cols-2">
<view class="td">销售</view>
<view class="td">兑奖</view>
<template v-if="checkPermission(['admin','store'])">
<view
class="text-center leading-60rpx w-200rpx flex-none"
v-for="(ty, j) in item.lottery_types"
:key="j"
>
<view class="td">{{ ty.name }}</view>
<view class="grid grid-cols-2">
<view class="td">销售</view>
<view class="td">兑奖</view>
</view>
</view>
</view>
</template>
</view>
</template>
</view>
@ -99,16 +102,17 @@
</view>
<!-- 种类 -->
<template v-for="(ty, j) in item.lottery_types" :key="j">
<view class="w-200rpx flex flex-none">
<view class="flex-1 td h-60rpx flex-center">{{
ty.sales
}}</view>
<view class="flex-1 td h-60rpx flex-center">{{
ty.expenditure
}}</view>
</view>
<template v-if="checkPermission(['admin','store'])">
<template v-for="(ty, j) in item.lottery_types" :key="j">
<view class="w-200rpx flex flex-none">
<view class="flex-1 td h-60rpx flex-center">{{
ty.sales
}}</view>
<view class="flex-1 td h-60rpx flex-center">{{
ty.expenditure
}}</view>
</view>
</template>
</template>
</view>
</template>