认领添加菜单权限

This commit is contained in:
浅念
2025-11-04 16:21:04 +08:00
parent 0e8cec4af0
commit 6e2cd44f55
2 changed files with 10 additions and 3 deletions
+3 -2
View File
@@ -64,11 +64,12 @@
underline="never"
@click="handleView(scope.row)"
style="margin-right: 8px"
v-if="hasAuth('claim@show')"
>
<i class="iconfont-sys">&#xe76c;</i> 查看
</el-link>
<el-link
v-if="!scope.row.payment_apply_id"
v-if="!scope.row.payment_apply_id && hasAuth('claim@claim')"
type="success"
underline="never"
@click="handleClaim(scope.row)"
@@ -102,8 +103,8 @@
import PaymentRecordDialog from '@/components/custom/PaymentRecordDialog.vue'
import ClaimRecordDetailDialog from '@/components/custom/ClaimRecordDetailDialog.vue'
import dayjs from 'dayjs'
defineOptions({ name: 'Adminclaim' })
const { hasAuth } = useAuth()
defineOptions({ name: 'Adminclaim' })
const loading = ref(false)
const keyword = ref('')
const tableRef = ref()
+7 -1
View File
@@ -62,9 +62,15 @@
<ElTableColumn label="入账" prop="id" min-width="120">
<template #default="scope">
<span v-if="scope.row.received_at">{{ scope.row.received_at }}</span>
<el-button v-else type="primary" size="small" @click="handlebtn(scope.row)">
<el-button
v-else-if="hasAuth('receipt_records@confirmentry')"
type="primary"
size="small"
@click="handlebtn(scope.row)"
>
确认入账
</el-button>
<span v-else></span>
</template>
</ElTableColumn>
<ElTableColumn label="操作" fixed="right" min-width="180" align="center">