权限判断

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