Browse Source

fix:去掉不必要的操作

zhangrenyuan/feature-20251104133449-现金管理二期
lihui 3 weeks ago
parent
commit
0c9bfd35a4
  1. 13
      src/views/consume/gold/coinConsumeDetail.vue

13
src/views/consume/gold/coinConsumeDetail.vue

@ -5,7 +5,6 @@ import request from '@/util/http.js'
import API from '@/util/http.js' import API from '@/util/http.js'
import moment from 'moment' import moment from 'moment'
import { reverseMarketMapping } from "@/utils/marketMap.js"; import { reverseMarketMapping } from "@/utils/marketMap.js";
import {hasMenuPermission, permissionMapping} from "@/utils/menuTreePermission.js";
import { storeToRefs } from 'pinia' import { storeToRefs } from 'pinia'
import { useAdminStore } from '@/store/index.js' import { useAdminStore } from '@/store/index.js'
const adminStore = useAdminStore() const adminStore = useAdminStore()
@ -153,15 +152,8 @@ const totalGoldSearch = ref({
goodsName: "" goodsName: ""
}) })
const selectPermission = ref(false)
//
const initPermissions = async() => {
if (!menuTree.value || !menuTree.value.length) return;
selectPermission.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_consumption_details);
};
/* /*
====================方法================================= ====================方法=================================
*/ */
@ -183,10 +175,6 @@ const getAdminData = async function () {
const ConsumeSelectBy = async function (val) { const ConsumeSelectBy = async function (val) {
if (!selectPermission) {
ElMessage.error('暂无权限')
return
}
try { try {
@ -437,7 +425,6 @@ const handleCurrentChange = function (val) {
// //
const sumGold = computed(() => permanentGolds.value + freeGolds.value + taskGolds.value) const sumGold = computed(() => permanentGolds.value + freeGolds.value + taskGolds.value)
onMounted(async function () { onMounted(async function () {
await initPermissions()
await getAdminData() await getAdminData()
await ConsumeSelectBy() await ConsumeSelectBy()
// getActivity(); // getActivity();

Loading…
Cancel
Save