From 8bd21926c835e55a8bb041e202098e441d9398f4 Mon Sep 17 00:00:00 2001
From: lSun <15893999301@qq.com>
Date: Tue, 9 Sep 2025 10:08:10 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=85=B1=E6=9C=8D=E5=8A=A1=E5=B9=B3?=
=?UTF-8?q?=E5=8F=B0-=E5=A4=A7=E5=B1=8F=E4=BB=A3=E7=A0=81=E3=80=82?=
=?UTF-8?q?=E7=8E=B0=E5=9C=A8=E5=BA=9F=E5=BC=83=EF=BC=8C=E6=94=B9=E6=88=90?=
=?UTF-8?q?=E5=85=B6=E4=BB=96=E9=A1=B9=E7=9B=AE=E5=BC=80=E5=8F=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/menu.js | 6 +-
src/router/index.js | 41 +-
src/views/psp/common/index.vue | 457 +++++++++
src/views/psp/navBar.vue | 254 +++++
src/views/psp/productCenter/index.vue | 24 +-
src/views/psp/productCenter/product-case.vue | 873 ++++++++++++++++++
.../psp/productCenter/product-detail.vue | 69 +-
src/views/system/dept/index.vue | 14 +
src/views/system/role/index.vue | 441 +++++++--
src/views/system/user/dept.vue | 344 +++++++
src/views/system/user/index.vue | 125 ++-
11 files changed, 2498 insertions(+), 150 deletions(-)
create mode 100644 src/views/psp/common/index.vue
create mode 100644 src/views/psp/navBar.vue
create mode 100644 src/views/psp/productCenter/product-case.vue
create mode 100644 src/views/system/user/dept.vue
diff --git a/src/api/system/menu.js b/src/api/system/menu.js
index f6415c6..511f053 100644
--- a/src/api/system/menu.js
+++ b/src/api/system/menu.js
@@ -20,7 +20,7 @@ export function getMenu(menuId) {
// 查询菜单下拉树结构
export function treeselect() {
return request({
- url: '/system/menu/treeselect',
+ url: '/system/menu/treeselectNew',
method: 'get'
})
}
@@ -28,7 +28,7 @@ export function treeselect() {
// 根据角色ID查询菜单下拉树结构
export function roleMenuTreeselect(roleId) {
return request({
- url: '/system/menu/roleMenuTreeselect/' + roleId,
+ url: '/system/menu/roleMenuTreeselectNew/' + roleId,
method: 'get'
})
}
@@ -57,4 +57,4 @@ export function delMenu(menuId) {
url: '/system/menu/' + menuId,
method: 'delete'
})
-}
\ No newline at end of file
+}
diff --git a/src/router/index.js b/src/router/index.js
index 7619b0f..d6663a7 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -68,9 +68,9 @@ export const constantRoutes = [
children: [
{
path: 'index',
- component: () => import('@/views/index'),
+ component: () => import('@/views/psp/productCenter/index'),
name: 'Index',
- meta: { title: '首页', icon: 'dashboard', affix: true }
+ meta: { title: '公共服务平台', icon: 'dashboard', affix: true }
}
]
},
@@ -88,27 +88,48 @@ export const constantRoutes = [
}
]
},
+
+ // 在路由配置中导航条的路由
+ {
+ path: '/',
+ component: Layout, // 布局组件,包含左侧菜单和顶部导航
+ hidden: true, // 隐藏左侧菜单项
+ children: [
+ {
+ path: '/productCenter/index',
+ component: () => import('@/views/psp/productCenter/index.vue')
+ },
+ {
+ path: '/common/index',
+ component: () => import('@/views/psp/common/index.vue')
+ },
+ // ... 其他子路由
+ ]
+ },
+
// 在路由配置中添加产品详情页面路由
{
path: '/psp/productCenter',
component: Layout,
redirect: '/psp/productCenter/index',
name: 'ProductCenter',
- meta: { title: '产品中心', icon: 'product' },
+ meta: { title: '产品中心', icon: 'product', },
+ hidden: true, // 隐藏左侧菜单项
children: [
- {
- path: 'index',
- name: 'ProductCenterIndex',
- component: () => import('@/views/psp/productCenter/index'),
- meta: { title: '产品中心', icon: 'product' }
- },
{
path: 'detail/:id(\\d+)',
name: 'ProductDetail',
component: () => import('@/views/psp/productCenter/product-detail'),
meta: { title: '产品详情', activeMenu: '/psp/productCenter/index' },
- hidden: true
+ },
+ {
+ path: 'case/:id(\\d+)',
+ name: 'ProductCase',
+ component: () => import('@/views/psp/productCenter/product-case'),
+ meta: { title: '产品案例', activeMenu: '/psp/productCenter/index' },
}
+
+
]
}
]
diff --git a/src/views/psp/common/index.vue b/src/views/psp/common/index.vue
new file mode 100644
index 0000000..f978da0
--- /dev/null
+++ b/src/views/psp/common/index.vue
@@ -0,0 +1,457 @@
+
+
+
+
+
+
+
diff --git a/src/views/psp/navBar.vue b/src/views/psp/navBar.vue
new file mode 100644
index 0000000..2c19ab8
--- /dev/null
+++ b/src/views/psp/navBar.vue
@@ -0,0 +1,254 @@
+
+
+
+
+
+
+
diff --git a/src/views/psp/productCenter/index.vue b/src/views/psp/productCenter/index.vue
index 20b5dfe..9b43ea9 100644
--- a/src/views/psp/productCenter/index.vue
+++ b/src/views/psp/productCenter/index.vue
@@ -1,7 +1,7 @@
-