From 6f586fa1709428407d00396af86a1690838c07d1 Mon Sep 17 00:00:00 2001 From: hongxilin <17663930442@163.com> Date: Mon, 13 Jan 2025 11:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E7=AE=A1=E7=90=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/gold-system/README.md | 4 +- vue/gold-system/package-lock.json | 18 + vue/gold-system/package.json | 1 + vue/gold-system/src/router/index.js | 38 +- vue/gold-system/src/views/index.vue | 30 +- vue/gold-system/src/views/login.vue | 33 +- vue/gold-system/src/views/permissions/index.vue | 526 +++++++++++++----------- vue/gold-system/vite.config.ts | 6 +- 8 files changed, 359 insertions(+), 297 deletions(-) diff --git a/vue/gold-system/README.md b/vue/gold-system/README.md index e395a50..840d52d 100644 --- a/vue/gold-system/README.md +++ b/vue/gold-system/README.md @@ -28,4 +28,6 @@ npm install xlsx 安装xlsx组件,解决excel文件读取问题 npm install vue-json-excel 安装导出 excel 组件 -npm install lodash 安装lodash组件,解决数据处理问题 \ No newline at end of file +npm install lodash 安装lodash组件,解决数据处理问题 + +npm install --save-dev @types/node 安装typescript声明文件 \ No newline at end of file diff --git a/vue/gold-system/package-lock.json b/vue/gold-system/package-lock.json index 0eb47cc..d8de7b3 100644 --- a/vue/gold-system/package-lock.json +++ b/vue/gold-system/package-lock.json @@ -22,6 +22,7 @@ "xlsx": "^0.18.5" }, "devDependencies": { + "@types/node": "^22.10.5", "@vitejs/plugin-vue": "^5.1.4", "typescript": "~5.6.2", "vite": "^5.4.10", @@ -811,6 +812,16 @@ "@types/lodash": "*" } }, + "node_modules/@types/node": { + "version": "22.10.5", + "resolved": "https://mirrors.huaweicloud.com/repository/npm/@types/node/-/node-22.10.5.tgz", + "integrity": "sha512-F8Q+SeGimwOo86fiovQh8qiXfFEh2/ocYv7tU5pJ3EXMSSxk1Joj5wefpFK2fHTf/N6HKGSxIDBT9f3gCxXPkQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.20.0" + } + }, "node_modules/@types/web-bluetooth": { "version": "0.0.16", "resolved": "https://mirrors.huaweicloud.com/repository/npm/@types/web-bluetooth/-/web-bluetooth-0.0.16.tgz", @@ -1741,6 +1752,13 @@ "node": ">=14.17" } }, + "node_modules/undici-types": { + "version": "6.20.0", + "resolved": "https://mirrors.huaweicloud.com/repository/npm/undici-types/-/undici-types-6.20.0.tgz", + "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "dev": true, + "license": "MIT" + }, "node_modules/vite": { "version": "5.4.11", "resolved": "https://mirrors.huaweicloud.com/repository/npm/vite/-/vite-5.4.11.tgz", diff --git a/vue/gold-system/package.json b/vue/gold-system/package.json index 67ab713..014a5b9 100644 --- a/vue/gold-system/package.json +++ b/vue/gold-system/package.json @@ -24,6 +24,7 @@ "xlsx": "^0.18.5" }, "devDependencies": { + "@types/node": "^22.10.5", "@vitejs/plugin-vue": "^5.1.4", "typescript": "~5.6.2", "vite": "^5.4.10", diff --git a/vue/gold-system/src/router/index.js b/vue/gold-system/src/router/index.js index 1a43650..4812f37 100644 --- a/vue/gold-system/src/router/index.js +++ b/vue/gold-system/src/router/index.js @@ -3,41 +3,43 @@ import { createRouter,createWebHashHistory } from 'vue-router'; const router=createRouter({ history:createWebHashHistory(), routes:[ - {path:'/jtzy/Product/other/test/hwjb/login', name:"login", component:()=>import("../views/login.vue")}, - {path:'/',redirect:"/jtzy/Product/other/test/hwjb/login"}, - {path:'/jtzy/Product/other/test/hwjb/test',component:()=>import("../views/z.vue")}, + {path:'/login', name:"login", component:()=>import("../views/login.vue")}, + {path:'/',redirect:"/login"}, + {path:'/test',component:()=>import("../views/z.vue")}, { meta:{requireAuth:true}, - path:'/jtzy/Product/other/test/hwjb/index',component:()=>import("../views/index.vue"), + path:'/index',component:()=>import("../views/index.vue"), children:[ // 工作台 - {path:'/jtzy/Product/other/test/hwjb/workspace',component:()=>import("../views/workspace/index.vue")}, + {path:'/workspace',component:()=>import("../views/workspace/index.vue")}, // 充值审核 - {path:'/jtzy/Product/other/test/hwjb/rechargeAudit',component:()=>import("../views/audit/rechargeAudit.vue")}, + {path:'/rechargeAudit',component:()=>import("../views/audit/rechargeAudit.vue")}, // 退款审核 - {path:'/jtzy/Product/other/test/hwjb/refundAudit',component:()=>import("../views/audit/refundAudit.vue")}, + {path:'/refundAudit',component:()=>import("../views/audit/refundAudit.vue")}, // 新增消费 - {path:'/jtzy/Product/other/test/hwjb/addConsume',component:()=>import("../views/consume/addConsume.vue")}, + {path:'/addConsume',component:()=>import("../views/consume/addConsume.vue")}, // 所有消费明细 - {path:'/jtzy/Product/other/test/hwjb/allConsume',component:()=>import("../views/consume/allConsume.vue")}, + {path:'/allConsume',component:()=>import("../views/consume/allConsume.vue")}, // 活动管理 - {path:'/jtzy/Product/other/test/hwjb/activity',component:()=>import("../views/managerecharge/activity.vue")}, + {path:'/activity',component:()=>import("../views/managerecharge/activity.vue")}, // 汇率管理 - {path:'/jtzy/Product/other/test/hwjb/rate',component:()=>import("../views/managerecharge/rate.vue")}, + {path:'/rate',component:()=>import("../views/managerecharge/rate.vue")}, // 新增充值 - {path:'/jtzy/Product/other/test/hwjb/addRecharge',component:()=>import("../views/recharge/addRecharge.vue")}, + {path:'/addRecharge',component:()=>import("../views/recharge/addRecharge.vue")}, // 客户充值明细 - {path:'/jtzy/Product/other/test/hwjb/adminRecharge',component:()=>import("../views/recharge/adminRecharge.vue")}, + {path:'/adminRecharge',component:()=>import("../views/recharge/adminRecharge.vue")}, // 所有充值明细 - {path:'/jtzy/Product/other/test/hwjb/allRecharge',component:()=>import("../views/recharge/allRecharge.vue")}, + {path:'/allRecharge',component:()=>import("../views/recharge/allRecharge.vue")}, // 新增退款 - {path:'/jtzy/Product/other/test/hwjb/addRefund',component:()=>import("../views/refund/addRefund.vue")}, + {path:'/addRefund',component:()=>import("../views/refund/addRefund.vue")}, // 退款明细 - {path:'/jtzy/Product/other/test/hwjb/allRefund',component:()=>import("../views/refund/allRefund.vue")}, + {path:'/allRefund',component:()=>import("../views/refund/allRefund.vue")}, // 客户金币明细 - {path:'/jtzy/Product/other/test/hwjb/usergold',component:()=>import("../views/usergold/index.vue")}, + {path:'/usergold',component:()=>import("../views/usergold/index.vue")}, // 客户金币余额 - {path:'/jtzy/Product/other/test/hwjb/usergoldInfo',component:()=>import("../views/usergoldInfo/index.vue")}, + {path:'/usergoldInfo',component:()=>import("../views/usergoldInfo/index.vue")}, + // 权限管理 + {path:'/permissions',component:()=>import("../views/permissions/index.vue")}, ] }, diff --git a/vue/gold-system/src/views/index.vue b/vue/gold-system/src/views/index.vue index 65642f3..77e0477 100644 --- a/vue/gold-system/src/views/index.vue +++ b/vue/gold-system/src/views/index.vue @@ -76,7 +76,7 @@ onMounted(async function () { @open="handleOpen" @close="handleClose" > - + @@ -90,8 +90,8 @@ onMounted(async function () { 财务审核 - 充值审核 - 退款审核 + 充值审核 + 退款审核 @@ -101,8 +101,8 @@ onMounted(async function () { 充值管理 - 活动管理 - 汇率管理 + 活动管理 + 汇率管理 @@ -112,9 +112,9 @@ onMounted(async function () { 金币充值 - 新增充值 - 客服充值明细 - 所有充值明细 + 新增充值 + 客服充值明细 + 所有充值明细 @@ -124,8 +124,8 @@ onMounted(async function () { 金币消费 - 新增消费 - 所有消费明细 + 新增消费 + 所有消费明细 @@ -135,25 +135,25 @@ onMounted(async function () { 金币退款 - 新增退款 - 退款明细 + 新增退款 + 退款明细 - + 客户金币明细 - + 客户金币余额 - + diff --git a/vue/gold-system/src/views/login.vue b/vue/gold-system/src/views/login.vue index 2812027..3ea162c 100644 --- a/vue/gold-system/src/views/login.vue +++ b/vue/gold-system/src/views/login.vue @@ -21,7 +21,7 @@ const login = async function () { ); if (result.data.code == 200) { localStorage.setItem("token", result.data.msg); - router.push("/jtzy/Product/other/test/hwjb/workspace"); + router.push("/workspace"); ElMessage.success("登录成功"); console.log("请求成功", result); } else { @@ -38,21 +38,10 @@ const login = async function () {