From 480ffc6aa9097b951a4a99309b449ba9464d24ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=83=AD=E6=B0=B8=E8=B6=85?= <2090205686@qq.com>
Date: Tue, 2 Sep 2025 14:28:01 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20perf:=20=E4=BC=98=E5=8C=96?=
=?UTF-8?q?=E8=B7=AF=E7=94=B1=EF=BC=8C=E9=83=A8=E5=88=86=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E7=9A=84=E8=B7=AF=E7=94=B1=E6=B7=BB=E5=8A=A0base=E5=8C=85?=
=?UTF-8?q?=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.test | 4 +-
src/router/index.js | 115 +++++++++++++++++---------
src/views/error/401.vue | 2 +-
src/views/goods/goodsManage/index.vue | 6 +-
src/views/goods/goodsReview/index.vue | 4 +-
src/views/login copy.vue | 2 +-
src/views/login.vue | 2 +-
src/views/monitor/job/index.vue | 2 +-
src/views/order/cancelled.vue | 6 +-
src/views/order/completed.vue | 6 +-
src/views/order/obligation.vue | 6 +-
src/views/order/receivedGoods.vue | 6 +-
src/views/order/refunded.vue | 6 +-
src/views/order/salesService.vue | 6 +-
src/views/order/sendGoods.vue | 10 +--
src/views/order/shipped.vue | 8 +-
src/views/register.vue | 4 +-
src/views/system/dict/index.vue | 2 +-
vite.config.js | 2 +-
19 files changed, 118 insertions(+), 81 deletions(-)
diff --git a/.env.test b/.env.test
index 3f0907a..af1dd4d 100644
--- a/.env.test
+++ b/.env.test
@@ -5,8 +5,8 @@ VITE_APP_TITLE = 运营云后台管理系统
VITE_APP_ENV = 'production'
# 测试环境
-VITE_APP_BASE_API = 'http://192.168.18.99:8080'
-VITE_APP_PLATFORM = 'http://192.168.18.99/platform'
+VITE_APP_BASE_API = 'http://192.168.18.88:8080'
+VITE_APP_PLATFORM = 'http://192.168.18.88/platform'
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 1821259..9922530 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -63,6 +63,42 @@ export const constantRoutes = [
component: () => import("@/components/icons"),
hidden: true,
},
+ {
+ path: '/sub-operation-admin/goodsManage',
+ component: Layout,
+ hidden: true,
+ redirect: 'noredirect',
+ children: [
+ {
+ path: 'addGoods/:activeTab?',
+ component: () => import('@/views/goods/goodsManage/addGoods'),
+ name: 'addGoods',
+ meta: { title: '新增商品', icon: '' }
+ },
+ {
+ path: 'editGoods/:activeTab?',
+ component: () => import('@/views/goods/goodsManage/editGoods'),
+ name: 'editGoods',
+ meta: { title: '编辑商品', icon: '' }
+ },
+ {
+ path: 'seeDetails/:activeTab?',
+ component: () => import('@/views/goods/goodsManage/seeDetails'),
+ name: 'seeDetails',
+ meta: { title: '商品详情', icon: '' }
+ },
+ {
+ path: 'auditGoods/:activeTab?',
+ component: () => import('@/views/goods/goodsReview/auditGoods'),
+ name: 'auditGoods',
+ meta: {
+ title: "商品审核",
+ icon: "",
+ },
+ },
+ ]
+ },
+
{
path: '/sub-operation-admin',
component: Layout,
@@ -76,41 +112,6 @@ export const constantRoutes = [
}
]
},
- {
- path: '/sub-operation-admin/goods',
- component: Layout,
- hidden: true,
- redirect: 'noredirect',
- children: [
- {
- path: 'goodsManage/addGoods/:activeTab?',
- component: () => import('@/views/goods/goodsManage/addGoods'),
- name: 'addGoods',
- meta: { title: '新增商品', icon: '' }
- },
- {
- path: 'goodsManage/editGoods/:activeTab?',
- component: () => import('@/views/goods/goodsManage/editGoods'),
- name: 'editGoods',
- meta: { title: '编辑商品', icon: '' }
- },
- {
- path: 'goodsManage/seeDetails/:activeTab?',
- component: () => import('@/views/goods/goodsManage/seeDetails'),
- name: 'seeDetails',
- meta: { title: '商品详情', icon: '' }
- },
- {
- path: 'goodsReview/auditGoods/:activeTab?',
- component: () => import('@/views/goods/goodsReview/auditGoods'),
- name: 'auditGoods',
- meta: {
- title: "商品审核",
- icon: "",
- },
- },
- ]
- },
{
path: '/sub-operation-admin/order',
component: Layout,
@@ -143,10 +144,10 @@ export const constantRoutes = [
path: '/sub-operation-admin/user',
component: Layout,
hidden: true,
- redirect: '/sub-operation-admin/user/profile',
+ redirect: 'noredirect',
children: [
{
- path: 'profile/:activeTab?',
+ path: '',
component: () => import('@/views/system/user/profile/index'),
name: 'Profile',
meta: { title: '个人中心', icon: 'user' }
@@ -194,12 +195,12 @@ export const constantRoutes = [
],
},
{
- path: '/sub-operation-admin/goods',
+ path: '/sub-operation-admin/goodsManage',
name: "goods",
component: Layout,
hidden: false,
alwaysShow: true,
- redirect: 'noredirect',
+ redirect: '/sub-operation-admin/goodsManage',
meta: {
icon: "example",
link: null,
@@ -218,6 +219,29 @@ export const constantRoutes = [
noCache: false,
link: null,
},
+ // children: [
+ // {
+ // path: 'addGoods/:activeTab?',
+ // component: () => import('@/views/goods/goodsManage/addGoods'),
+ // name: 'addGoods',
+ // meta: { title: '新增商品', icon: '' },
+ // hidden: true,
+ // },
+ // {
+ // path: 'editGoods/:activeTab?',
+ // component: () => import('@/views/goods/goodsManage/editGoods'),
+ // name: 'editGoods',
+ // meta: { title: '编辑商品', icon: '' },
+ // hidden: true,
+ // },
+ // {
+ // path: 'seeDetails/:activeTab?',
+ // component: () => import('@/views/goods/goodsManage/seeDetails'),
+ // name: 'seeDetails',
+ // meta: { title: '商品详情', icon: '' },
+ // hidden: true,
+ // },
+ // ]
},
{
path: 'goodsCategory',
@@ -254,6 +278,18 @@ export const constantRoutes = [
noCache: false,
link: null,
},
+ // children: [
+ // {
+ // path: 'auditGoods/:activeTab?',
+ // component: () => import('@/views/goods/goodsReview/auditGoods'),
+ // name: 'auditGoods',
+ // hidden: true,
+ // meta: {
+ // title: "商品审核",
+ // icon: "",
+ // },
+ // },
+ // ]
},
],
},
@@ -442,6 +478,7 @@ export const constantRoutes = [
name: "order",
component: Layout,
hidden: false,
+ redirect: 'noredirect',
meta: {
title: "订单列表",
icon: "documentation",
diff --git a/src/views/error/401.vue b/src/views/error/401.vue
index b361368..b719ea6 100644
--- a/src/views/error/401.vue
+++ b/src/views/error/401.vue
@@ -12,7 +12,7 @@
对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面
-
-
+
回首页
diff --git a/src/views/goods/goodsManage/index.vue b/src/views/goods/goodsManage/index.vue
index dfdf5d3..72db95e 100644
--- a/src/views/goods/goodsManage/index.vue
+++ b/src/views/goods/goodsManage/index.vue
@@ -40,7 +40,7 @@
批量删除
-
+
新增商品
@@ -284,7 +284,7 @@ const seeDetails = async (row) => {
await nextTick();
// 跳转路由并携带参数,行数据,和query的值edit
router.push({
- path: "/goods/goodsManage/seeDetails",
+ path: "/sub-operation-admin/goodsManage/seeDetails",
query: { goodId: row.goodId },
});
};
@@ -318,7 +318,7 @@ const handleEdit = async (row) => {
await nextTick();
// 跳转路由并携带参数,行数据,和query的值edit
router.push({
- path: "/goods/goodsManage/editGoods",
+ path: "/sub-operation-admin/goodsManage/editGoods",
query: { goodId: row.goodId },
});
};
diff --git a/src/views/goods/goodsReview/index.vue b/src/views/goods/goodsReview/index.vue
index 79e835f..3b4a7d6 100644
--- a/src/views/goods/goodsReview/index.vue
+++ b/src/views/goods/goodsReview/index.vue
@@ -76,7 +76,7 @@
style="margin-right: 10px"
>批量删除
-
+
新增商品
@@ -360,7 +360,7 @@ const handleAudit = (row) => {
console.log("要编辑的行:", row);
// 跳转路由并携带参数,行数据,和query的值edit
router.push({
- path: "/goods/goodsReview/auditGoods",
+ path: "/sub-operation-admin/goodsManage/auditGoods",
query: { goodId: row.goodId },
});
};
diff --git a/src/views/login copy.vue b/src/views/login copy.vue
index b836e69..c9cbfb3 100644
--- a/src/views/login copy.vue
+++ b/src/views/login copy.vue
@@ -66,7 +66,7 @@
登 录 中...
- 立即注册
diff --git a/src/views/login.vue b/src/views/login.vue
index 6e34f0a..c5fd74f 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -74,7 +74,7 @@
登 录 中...
- 立即注册
diff --git a/src/views/monitor/job/index.vue b/src/views/monitor/job/index.vue
index 3af06c1..054dc30 100644
--- a/src/views/monitor/job/index.vue
+++ b/src/views/monitor/job/index.vue
@@ -438,7 +438,7 @@ function crontabFill(value) {
/** 任务日志列表查询 */
function handleJobLog(row) {
const jobId = row.jobId || 0
- router.push('/monitor/job-log/index/' + jobId)
+ router.push('/sub-operation-admin/monitor/job-log/index/' + jobId)
}
/** 新增按钮操作 */
diff --git a/src/views/order/cancelled.vue b/src/views/order/cancelled.vue
index b4b83fc..b73041f 100644
--- a/src/views/order/cancelled.vue
+++ b/src/views/order/cancelled.vue
@@ -74,7 +74,7 @@
style="margin-right: 10px"
>批量删除
-
+
新增商品
@@ -468,14 +468,14 @@ const handleEdit = (row) => {
console.log("要编辑的行:", row);
// 跳转路由并携带参数,行数据,和query的值edit
router.push({
- path: "/goods/goodsManage/editGoods",
+ path: "/sub-operation-admin/goodsManage/editGoods",
query: { goodId: row.goodId },
});
};
const goSend = (data) => {
router.push({
- path: "/order/order/sendGoodsInfo",
+ path: "/sub-operation-admin/order/sendGoodsInfo",
query: { data: JSON.stringify(data) },
});
};
diff --git a/src/views/order/completed.vue b/src/views/order/completed.vue
index f5fecc1..7808c2a 100644
--- a/src/views/order/completed.vue
+++ b/src/views/order/completed.vue
@@ -74,7 +74,7 @@
style="margin-right: 10px"
>批量删除
-
+
新增商品
@@ -468,14 +468,14 @@ const handleEdit = (row) => {
console.log("要编辑的行:", row);
// 跳转路由并携带参数,行数据,和query的值edit
router.push({
- path: "/goods/goodsManage/editGoods",
+ path: "/sub-operation-admin/goodsManage/editGoods",
query: { goodId: row.goodId },
});
};
const goSend = (data) => {
router.push({
- path: "/order/order/sendGoodsInfo",
+ path: "/sub-operation-admin/order/sendGoodsInfo",
query: { data: JSON.stringify(data) },
});
};
diff --git a/src/views/order/obligation.vue b/src/views/order/obligation.vue
index 92f72b9..a9964ed 100644
--- a/src/views/order/obligation.vue
+++ b/src/views/order/obligation.vue
@@ -74,7 +74,7 @@
style="margin-right: 10px"
>批量删除
-
+
新增商品
@@ -314,7 +314,7 @@ const resetForm = () => {
const goSend = (data) => {
router.push({
- path: "/order/order/orderDetails",
+ path: "/sub-operation-admin/order/orderDetails",
query: { data: data },
});
};
@@ -478,7 +478,7 @@ const handleEdit = (row) => {
console.log("要编辑的行:", row);
// 跳转路由并携带参数,行数据,和query的值edit
router.push({
- path: "/goods/goodsManage/editGoods",
+ path: "/sub-operation-admin/goodsManage/editGoods",
query: { goodId: row.goodId },
});
};
diff --git a/src/views/order/receivedGoods.vue b/src/views/order/receivedGoods.vue
index c004419..dd34e40 100644
--- a/src/views/order/receivedGoods.vue
+++ b/src/views/order/receivedGoods.vue
@@ -74,7 +74,7 @@
style="margin-right: 10px"
>批量删除
-
+
新增商品
@@ -471,14 +471,14 @@ const handleEdit = (row) => {
console.log("要编辑的行:", row);
// 跳转路由并携带参数,行数据,和query的值edit
router.push({
- path: "/goods/goodsManage/editGoods",
+ path: "/sub-operation-admin/goodsManage/editGoods",
query: { goodId: row.goodId },
});
};
const goSend = (data) => {
router.push({
- path: "/order/order/orderDetails",
+ path: "/sub-operation-admin/order/orderDetails",
query: { data: data },
});
};
diff --git a/src/views/order/refunded.vue b/src/views/order/refunded.vue
index defd86d..624e02c 100644
--- a/src/views/order/refunded.vue
+++ b/src/views/order/refunded.vue
@@ -70,7 +70,7 @@
style="margin-right: 10px"
>批量删除
-
+
新增商品
@@ -467,14 +467,14 @@ const handleEdit = (row) => {
console.log("要编辑的行:", row);
// 跳转路由并携带参数,行数据,和query的值edit
router.push({
- path: "/goods/goodsManage/editGoods",
+ path: "/sub-operation-admin/goodsManage/editGoods",
query: { goodId: row.goodId },
});
};
const goSend = (data) => {
router.push({
- path: "/order/order/orderDetails",
+ path: "/sub-operation-admin/order/orderDetails",
query: { data: data },
});
};
diff --git a/src/views/order/salesService.vue b/src/views/order/salesService.vue
index 462f7e7..e9bf5e7 100644
--- a/src/views/order/salesService.vue
+++ b/src/views/order/salesService.vue
@@ -74,7 +74,7 @@
style="margin-right: 10px"
>批量删除
-
+
新增商品
@@ -480,14 +480,14 @@ const handleEdit = (row) => {
console.log("要编辑的行:", row);
// 跳转路由并携带参数,行数据,和query的值edit
router.push({
- path: "/goods/goodsManage/editGoods",
+ path: "/sub-operation-admin/goodsManage/editGoods",
query: { goodId: row.goodId },
});
};
const goSend = (data) => {
router.push({
- path: "/order/order/orderDetails",
+ path: "/sub-operation-admin/order/orderDetails",
query: { data: data },
});
};
diff --git a/src/views/order/sendGoods.vue b/src/views/order/sendGoods.vue
index d394b36..9b6c824 100644
--- a/src/views/order/sendGoods.vue
+++ b/src/views/order/sendGoods.vue
@@ -144,7 +144,7 @@
style="margin-right: 10px"
>批量删除
-
+
新增商品
@@ -426,7 +426,7 @@ const resetForm = () => {
const goSends = (data) => {
router.push({
- path: "/order/order/orderDetails",
+ path: "/sub-operation-admin/order/orderDetails",
query: { data: data },
});
};
@@ -541,7 +541,7 @@ const upAddress = (data) => {
upid.value = data;
// router.push({
- // path: "/order/order/sendGoodsInfo",
+ // path: "/sub-operation-admin/order/sendGoodsInfo",
// query: { data: JSON.stringify(data) },
// });
};
@@ -601,14 +601,14 @@ const handleEdit = (row) => {
console.log("要编辑的行:", row);
// 跳转路由并携带参数,行数据,和query的值edit
router.push({
- path: "/goods/goodsManage/editGoods",
+ path: "/sub-operation-admin/goodsManage/editGoods",
query: { goodId: row.goodId },
});
};
const goSend = (data) => {
router.push({
- path: "/order/order/sendGoodsInfo",
+ path: "/sub-operation-admin/order/sendGoodsInfo",
query: { data: JSON.stringify(data) },
});
};
diff --git a/src/views/order/shipped.vue b/src/views/order/shipped.vue
index 45ce912..32e3c89 100644
--- a/src/views/order/shipped.vue
+++ b/src/views/order/shipped.vue
@@ -144,7 +144,7 @@
style="margin-right: 10px"
>批量删除
-
+
新增商品
@@ -398,7 +398,7 @@ const onSubmit = () => {
const goSends = (id) => {
router.push({
- path: "/order/order/orderDetails",
+ path: "/sub-operation-admin/order/orderDetails",
query: { data: id },
});
};
@@ -577,7 +577,7 @@ const handleEdit = (row) => {
console.log("要编辑的行:", row);
// 跳转路由并携带参数,行数据,和query的值edit
router.push({
- path: "/goods/goodsManage/editGoods",
+ path: "/sub-operation-admin/goodsManage/editGoods",
query: { goodId: row.goodId },
});
};
@@ -585,7 +585,7 @@ const handleEdit = (row) => {
const goSend = (data) => {
dialogVisible.value = true;
// router.push({
- // path: "/order/order/sendGoodsInfo",
+ // path: "/sub-operation-admin/order/sendGoodsInfo",
// query: { data: JSON.stringify(data) },
// });
};
diff --git a/src/views/register.vue b/src/views/register.vue
index badd966..5935065 100644
--- a/src/views/register.vue
+++ b/src/views/register.vue
@@ -64,7 +64,7 @@
注 册 中...
- 使用已有账户登录
+ 使用已有账户登录
@@ -130,7 +130,7 @@ function handleRegister() {
dangerouslyUseHTMLString: true,
type: "success",
}).then(() => {
- router.push("/login")
+ router.push("/sub-operation-admin/login")
}).catch(() => {})
}).catch(() => {
loading.value = false
diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue
index 3671b74..e4c283e 100644
--- a/src/views/system/dict/index.vue
+++ b/src/views/system/dict/index.vue
@@ -107,7 +107,7 @@
-
+
{{ scope.row.dictType }}
diff --git a/vite.config.js b/vite.config.js
index 8f8d99a..6b5bb2b 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -41,7 +41,7 @@ export default defineConfig(({ mode, command }) => {
},
// vite 相关配置
server: {
- port: 80,
+ port: 81,
host: '0.0.0.0',
open: true,
headers: {