feat:智能柜日志权限控制

This commit is contained in:
dzc committed 2026-07-17 17:38:38 +08:00
1 parent 565910a5ca
commit 9ed91eed18
2 files changed
+6 -1

No files matched your search

@@ -135,6 +135,7 @@
<script setup lang="ts" name="hard-door-log">
import * as hardFlowManager from "/@/api/hard/hard-door-flow"
import { useMessage } from "/@/hooks/message"
import { auth, auths, authAll } from '/@/utils/authFunction';
type Props = {
orderId?: string
@@ -170,6 +171,10 @@ watch(
const getFlow = async () => {
if (!props.orderId) return
// 判断是否有"dzc_hardDoorFlow_view"权限
if (!auth("dzc_hardDoorFlow_view")) {
return
}
loading.value = true
try {
const _pa = { orderId: props.orderId }
@@ -134,7 +134,7 @@
<preview-image :src="globalData.afterSaleData.applyPicUrls" />
</el-descriptions-item>
</el-descriptions>
<hard-door-log :orderId="globalData.detail.id" />
<hard-door-log v-auth="'dzc_hardDoorFlow_view'" :orderId="globalData.detail.id" />
</div>
<refund-reject-form ref="refundRejectRef" @refresh="getDetail" />