审核页面设置
This commit is contained in:
parent
0ccb0845f6
commit
73bcc8281f
|
|
@ -15,12 +15,12 @@
|
|||
<view class="info-row">
|
||||
<text class="info-label">任务类型</text>
|
||||
<view class="info-value">
|
||||
<uv-tags
|
||||
:text="getTaskTypeLabel(detailData.task?.type)"
|
||||
type="success"
|
||||
size="mini"
|
||||
:plain="false"
|
||||
></uv-tags>
|
||||
<uv-tags
|
||||
:text="getTaskTypeLabel(detailData.task?.type)"
|
||||
type="success"
|
||||
size="mini"
|
||||
:plain="false"
|
||||
></uv-tags>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info-row">
|
||||
|
|
@ -127,7 +127,7 @@
|
|||
</view>
|
||||
|
||||
<!-- 底部操作按钮 -->
|
||||
<view class="action-buttons" v-if="!loading && detailData.status === '3'">
|
||||
<view class="action-buttons" v-if="!loading && detailData.status === '3' && showPrivateSwitch">
|
||||
<view class="btn-wrapper">
|
||||
<uv-button type="primary" size="normal" @click="handleApprove">通过</uv-button>
|
||||
</view>
|
||||
|
|
@ -143,6 +143,15 @@ import { ref, computed, onMounted } from 'vue'
|
|||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { getVerifyDetail, handleVerify } from '@/api/verify'
|
||||
import { getDictLabel } from '@/utils/dict'
|
||||
import {useUserStore} from "@/store/user";
|
||||
import {storeToRefs} from "pinia";
|
||||
|
||||
const userStore = useUserStore()
|
||||
const { userInfo } = storeToRefs(userStore)
|
||||
|
||||
const showPrivateSwitch = computed(() =>
|
||||
userInfo.value?.roles?.some(r => ['admin', 'sys_admin'].includes(r))
|
||||
)
|
||||
|
||||
// 页面参数
|
||||
const verifyId = ref('')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user