From e9feecbf95c2c68469e8039a111ceea7448a9a3d Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Mon, 30 Oct 2023 18:58:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/mapCommon.ts | 20 + src/assets/json/dynamicRouter.json | 2 +- src/layouts/LayoutClassic/index.vue | 2 +- src/views/home/index.vue | 2 +- .../jxjview/configManagement/config.json | 1217 +++++++++++++++++ src/views/jxjview/configManagement/index.scss | 28 + src/views/jxjview/configManagement/index.vue | 171 +++ 7 files changed, 1439 insertions(+), 3 deletions(-) create mode 100644 src/api/modules/mapCommon.ts create mode 100644 src/views/jxjview/configManagement/config.json create mode 100644 src/views/jxjview/configManagement/index.scss create mode 100644 src/views/jxjview/configManagement/index.vue diff --git a/src/api/modules/mapCommon.ts b/src/api/modules/mapCommon.ts new file mode 100644 index 0000000..76a18f5 --- /dev/null +++ b/src/api/modules/mapCommon.ts @@ -0,0 +1,20 @@ +import { ResPage, User } from "@/api/types/common"; +// import { BASEURL } from "@/api/config/servicePort"; +import http from "@/api"; +import axios from "axios"; + +const BASEURL = import.meta.env.VITE_API_URL; +// const BASEURL1 = import.meta.env.VITE_API_URL + "6868"; + +/** + * @name 公共的模块统一抽离api + */ + +// 查询系统配置 +export const getSystemConfig = (params: any) => { + return http.post(BASEURL + `/xmgl/systemConfig/queryByKey`, params); +}; +// 修改系统配置 +export const updateSystemConfig = (params: any) => { + return http.post(BASEURL + `/xmgl/systemConfig/edit`, params); +}; diff --git a/src/assets/json/dynamicRouter.json b/src/assets/json/dynamicRouter.json index cf496e6..8a7d591 100644 --- a/src/assets/json/dynamicRouter.json +++ b/src/assets/json/dynamicRouter.json @@ -18,7 +18,7 @@ { "path": "/config", "name": "config", - "component": "/goverment/unmannedVideo/accessSituation/index", + "component": "/jxjview/configManagement/index", "meta": { "icon": "leftGover", "title": "配置中心", diff --git a/src/layouts/LayoutClassic/index.vue b/src/layouts/LayoutClassic/index.vue index 0ca994a..9ad80ba 100644 --- a/src/layouts/LayoutClassic/index.vue +++ b/src/layouts/LayoutClassic/index.vue @@ -13,7 +13,7 @@ - +