页面按钮权限
This commit is contained in:
@@ -125,7 +125,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 底部按钮 -->
|
||||
<view class="bottom-btns">
|
||||
<view v-if="canEdit" class="bottom-btns">
|
||||
<u-button class="btn-delete" size="medium" type="error" @click="handleDelete">删除</u-button>
|
||||
<u-button class="btn-audit" size="medium" type="primary" @click="handleAudit">审核通过</u-button>
|
||||
</view>
|
||||
@@ -134,13 +134,15 @@
|
||||
|
||||
<script setup>
|
||||
import {
|
||||
ref
|
||||
ref,
|
||||
computed
|
||||
} from 'vue'
|
||||
import {
|
||||
onLoad
|
||||
} from '@dcloudio/uni-app'
|
||||
import {
|
||||
useUserStore
|
||||
useUserStore,
|
||||
useMenuStore
|
||||
} from '@/store'
|
||||
import {
|
||||
reqPendingWeldingDailyDetail,
|
||||
@@ -149,9 +151,11 @@
|
||||
} from '@/api/hj.js'
|
||||
|
||||
const userStore = useUserStore()
|
||||
const menuStore = useMenuStore()
|
||||
const {
|
||||
userInfo
|
||||
} = userStore
|
||||
const canEdit = computed(() => menuStore.canEditFunc('dailyAudit'))
|
||||
|
||||
const tempDetailId = ref('')
|
||||
const form = ref({})
|
||||
|
||||
Reference in New Issue
Block a user