From ff457233e9e2a6911aaff1c0351821cf847d27aa Mon Sep 17 00:00:00 2001 From: lzyyj Date: Fri, 11 Oct 2024 18:06:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E5=8F=A3=EF=BC=9A=201?= =?UTF-8?q?=E3=80=81=E7=99=BB=E5=BD=95=E6=8E=A5=E5=8F=A3=202=E3=80=81?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=8E=A5=E5=8F=A3=E6=94=B9=E6=A8=A1=E6=8B=9F?= =?UTF-8?q?=203=E3=80=81=E6=9C=8D=E5=8A=A1=E9=A1=B9=E7=9B=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20=E5=AE=8C=E6=88=9090%(=E6=A0=87=E9=A2=98=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E4=B8=8A=E4=BC=A0=E6=9C=AA=E5=A4=84=E7=90=86)=204?= =?UTF-8?q?=E3=80=81=E6=9C=8D=E5=8A=A1=E9=85=8D=E7=BD=AE=E7=AE=A1=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E5=AE=8C=E6=88=9090%=EF=BC=88=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9C=AA=E5=AE=8C=E6=88=90=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/config.js | 18 ++ src/layout/menu/menuTable.js | 5 + src/router/originalRoutingTable.js | 20 +++ src/views/config/index.vue | 259 +++++++++++++++++++++++++++++ src/views/config/options.js | 21 +++ src/views/goods/index.vue | 19 +-- 6 files changed, 328 insertions(+), 14 deletions(-) create mode 100644 src/api/modules/config.js create mode 100644 src/views/config/index.vue create mode 100644 src/views/config/options.js diff --git a/src/api/modules/config.js b/src/api/modules/config.js new file mode 100644 index 0000000..a3e9906 --- /dev/null +++ b/src/api/modules/config.js @@ -0,0 +1,18 @@ +import service from "../request.js"; +const API_BASE_URL = '/config'; + +// 客户列表 +export function getConfigList(query) { + return service({ + method: "get", + url: `${API_BASE_URL}/list`, + data: query, + }); +} +export function updateConfig(query) { + return service({ + method: "put", + url: `${API_BASE_URL}`, + data: query, + }); +} diff --git a/src/layout/menu/menuTable.js b/src/layout/menu/menuTable.js index 985bd02..1a044d3 100644 --- a/src/layout/menu/menuTable.js +++ b/src/layout/menu/menuTable.js @@ -10,6 +10,11 @@ const menuTable = [ url: "/home", icon: "HomeFilled", }, + { + title: "服务配置", + url: "/config", + icon: "HomeFilled", + }, { title: "服务项目", url: "/goods", diff --git a/src/router/originalRoutingTable.js b/src/router/originalRoutingTable.js index febbd77..845924f 100644 --- a/src/router/originalRoutingTable.js +++ b/src/router/originalRoutingTable.js @@ -75,6 +75,26 @@ const routerList = [ }, ], }, + { + path: "/config", + component: Layout, + redirect: "config", + meta: { + requiresAuth: true, //有一些页面是否登录才能进去 + name: "服务配置", + }, + children: [ + { + path: "/config", + name: "config", + component: () => import("../views/config/index.vue"), + meta: { + requiresAuth: true, //有一些页面是否登录才能进去 + name: "服务配置", + }, + }, + ], + }, { path: "/goods", component: Layout, diff --git a/src/views/config/index.vue b/src/views/config/index.vue new file mode 100644 index 0000000..720e898 --- /dev/null +++ b/src/views/config/index.vue @@ -0,0 +1,259 @@ + + + + + diff --git a/src/views/config/options.js b/src/views/config/options.js new file mode 100644 index 0000000..989d037 --- /dev/null +++ b/src/views/config/options.js @@ -0,0 +1,21 @@ +export const options = [ + { + label: '配置项目', + props: 'title', + width: 'auto', + align: 'left' + }, + { + label: '配置内容', + props: 'content', + width: 'auto', + align: 'left' + }, + { + label: '操作', + props: 'actions', + width: '150', + align: 'center', + fixed: 'right', + } +] diff --git a/src/views/goods/index.vue b/src/views/goods/index.vue index 89b01a6..77c3d02 100644 --- a/src/views/goods/index.vue +++ b/src/views/goods/index.vue @@ -2,22 +2,13 @@
- - - + +
- 搜索 + + + +添加