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 @@