审核页面设置
This commit is contained in:
parent
0ccb0845f6
commit
73bcc8281f
|
|
@ -15,12 +15,12 @@
|
||||||
<view class="info-row">
|
<view class="info-row">
|
||||||
<text class="info-label">任务类型</text>
|
<text class="info-label">任务类型</text>
|
||||||
<view class="info-value">
|
<view class="info-value">
|
||||||
<uv-tags
|
<uv-tags
|
||||||
:text="getTaskTypeLabel(detailData.task?.type)"
|
:text="getTaskTypeLabel(detailData.task?.type)"
|
||||||
type="success"
|
type="success"
|
||||||
size="mini"
|
size="mini"
|
||||||
:plain="false"
|
:plain="false"
|
||||||
></uv-tags>
|
></uv-tags>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-row">
|
<view class="info-row">
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
</view>
|
</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">
|
<view class="btn-wrapper">
|
||||||
<uv-button type="primary" size="normal" @click="handleApprove">通过</uv-button>
|
<uv-button type="primary" size="normal" @click="handleApprove">通过</uv-button>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -143,6 +143,15 @@ import { ref, computed, onMounted } from 'vue'
|
||||||
import { onLoad } from '@dcloudio/uni-app'
|
import { onLoad } from '@dcloudio/uni-app'
|
||||||
import { getVerifyDetail, handleVerify } from '@/api/verify'
|
import { getVerifyDetail, handleVerify } from '@/api/verify'
|
||||||
import { getDictLabel } from '@/utils/dict'
|
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('')
|
const verifyId = ref('')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user