diff --git a/src/utils/menuUtils.js b/src/utils/menuUtils.js index b148ad5..10a20c0 100644 --- a/src/utils/menuUtils.js +++ b/src/utils/menuUtils.js @@ -62,7 +62,6 @@ export const getRoutePath = (menu) => { '退款管理': '/coinRefund', - // '金豆退款': '/beanRefund', '历史数据查询': '/history', '新版金币查询': '/history/newHistory', @@ -77,9 +76,6 @@ export const getRoutePath = (menu) => { '金币客户账户明细': '/usergold', '金豆客户账户明细': '/userbean', - // '用户管理': '/permissions/userPermission', - // '角色管理': '/permissions/rolePermission', - '收款明细': '/moneyManage/receiveDetail', '收款-地区客服':'/moneyManage/receiveDetail/receiveService', '收款-地区财务':'/moneyManage/receiveDetail/receiveArea', diff --git a/src/views/refund/gold/addCoinRefund.vue b/src/views/refund/gold/addCoinRefund.vue index 574b6eb..aacac0b 100644 --- a/src/views/refund/gold/addCoinRefund.vue +++ b/src/views/refund/gold/addCoinRefund.vue @@ -413,7 +413,7 @@ const calculatedRechargeGoods = computed(() => { const taskGold = addRefund.value.taskGold === '' ? 0 : +addRefund.value.taskGold; return Number((permanentGold + freeGold + taskGold).toFixed(2)); }) -const canAdd = findMenuById(menuTree.value,permissionMapping.add_gold_coin_refund) +const canAdd = ref(findMenuById(menuTree.value,permissionMapping.add_gold_coin_refund)) watch(calculatedRechargeGoods, (newVal) => { addRefund.value.sumGold = newVal }) diff --git a/src/views/refund/gold/coinRefundDetail.vue b/src/views/refund/gold/coinRefundDetail.vue index c510bda..cbcf60f 100644 --- a/src/views/refund/gold/coinRefundDetail.vue +++ b/src/views/refund/gold/coinRefundDetail.vue @@ -14,7 +14,7 @@ import dayjs from "dayjs"; const adminStore = useAdminStore(); const { adminData, menuTree } = storeToRefs(adminStore); const showEmployeeData = ref(false) -const canLook = findMenuById(menuTree.value, permissionMapping.gold_coin_refund_details) +const canLook = ref(findMenuById(menuTree.value, permissionMapping.gold_coin_refund_details)) const defaultTime = [ new Date(2000, 1, 1, 0, 0, 0), @@ -115,6 +115,7 @@ const getRefundTypes = async function () { // 搜索方法 const getSelectBy = async function (val) { if (!canLook.value) { + console.log('无此权限', canLook.value) ElMessage.error('无此权限') return }