Browse Source

权限权限

zhangyong/milestone-20250913-现金管理二期^2^2
lihuilin 4 weeks ago
parent
commit
0eb1a11201
  1. 4
      src/utils/menuUtils.js
  2. 2
      src/views/refund/gold/addCoinRefund.vue
  3. 3
      src/views/refund/gold/coinRefundDetail.vue

4
src/utils/menuUtils.js

@ -62,7 +62,6 @@ export const getRoutePath = (menu) => {
'退款管理': '/coinRefund', '退款管理': '/coinRefund',
// '金豆退款': '/beanRefund',
'历史数据查询': '/history', '历史数据查询': '/history',
'新版金币查询': '/history/newHistory', '新版金币查询': '/history/newHistory',
@ -77,9 +76,6 @@ export const getRoutePath = (menu) => {
'金币客户账户明细': '/usergold', '金币客户账户明细': '/usergold',
'金豆客户账户明细': '/userbean', '金豆客户账户明细': '/userbean',
// '用户管理': '/permissions/userPermission',
// '角色管理': '/permissions/rolePermission',
'收款明细': '/moneyManage/receiveDetail', '收款明细': '/moneyManage/receiveDetail',
'收款-地区客服':'/moneyManage/receiveDetail/receiveService', '收款-地区客服':'/moneyManage/receiveDetail/receiveService',
'收款-地区财务':'/moneyManage/receiveDetail/receiveArea', '收款-地区财务':'/moneyManage/receiveDetail/receiveArea',

2
src/views/refund/gold/addCoinRefund.vue

@ -413,7 +413,7 @@ const calculatedRechargeGoods = computed(() => {
const taskGold = addRefund.value.taskGold === '' ? 0 : +addRefund.value.taskGold; const taskGold = addRefund.value.taskGold === '' ? 0 : +addRefund.value.taskGold;
return Number((permanentGold + freeGold + taskGold).toFixed(2)); 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) => { watch(calculatedRechargeGoods, (newVal) => {
addRefund.value.sumGold = newVal addRefund.value.sumGold = newVal
}) })

3
src/views/refund/gold/coinRefundDetail.vue

@ -14,7 +14,7 @@ import dayjs from "dayjs";
const adminStore = useAdminStore(); const adminStore = useAdminStore();
const { adminData, menuTree } = storeToRefs(adminStore); const { adminData, menuTree } = storeToRefs(adminStore);
const showEmployeeData = ref(false) 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 = [ const defaultTime = [
new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 1, 1, 0, 0, 0),
@ -115,6 +115,7 @@ const getRefundTypes = async function () {
// //
const getSelectBy = async function (val) { const getSelectBy = async function (val) {
if (!canLook.value) { if (!canLook.value) {
console.log('无此权限', canLook.value)
ElMessage.error('无此权限') ElMessage.error('无此权限')
return return
} }

Loading…
Cancel
Save