From 7694ad47a70f5437affd0297b2e11f07fa63c87c Mon Sep 17 00:00:00 2001 From: zhang zhuo Date: Mon, 1 Dec 2025 10:37:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/system.ts | 21 +++++- src/components/piIcon/index.vue | 1 + src/components/piTable/index.vue | 6 +- src/pi.ts | 2 + src/views/system/config/index.vue | 120 ++++++++++++++++++++++++++++++ src/views/system/config/save.vue | 72 ++++++++++++++++++ 6 files changed, 214 insertions(+), 8 deletions(-) create mode 100644 src/views/system/config/index.vue create mode 100644 src/views/system/config/save.vue diff --git a/src/api/model/system.ts b/src/api/model/system.ts index 4e394f5..ab320f7 100644 --- a/src/api/model/system.ts +++ b/src/api/model/system.ts @@ -158,9 +158,24 @@ export default { return await http.delete("crontab_log/remove_all", data); }, }, - swagger: { + config: { list: async function (data = {}) { - return await http.get("swagger/json", data); + return await http.get("system_config/list", data); }, - } + info: async function (data = {}) { + return await http.get("system_config/list", data); + }, + add: async function (data = {}) { + return await http.post("system_config/add", data); + }, + edit: async function (data = {}) { + return await http.put("system_config/edit", data); + }, + del: async function (data = {}) { + return await http.delete("system_config/del", data); + }, + option: async function (data = {}) { + return await http.get("system_config/option", data); + }, + }, } diff --git a/src/components/piIcon/index.vue b/src/components/piIcon/index.vue index b99d70b..845b419 100644 --- a/src/components/piIcon/index.vue +++ b/src/components/piIcon/index.vue @@ -118,6 +118,7 @@ function search(text) { diff --git a/src/pi.ts b/src/pi.ts index a3bb32e..05171d4 100644 --- a/src/pi.ts +++ b/src/pi.ts @@ -11,12 +11,14 @@ import errorHandler from "@/utils/errorHandler"; import piDialog from "@/components/piDialog" import piTable from "@/components/piTable" +import piUpload from "@/components/piUpload" export default { install(app: App) { // 注册全局组件 app.component('piDialog', piDialog) app.component('piTable', piTable) + app.component('piUpload', piUpload) //注册全局指令 app.directive('auth', auth) diff --git a/src/views/system/config/index.vue b/src/views/system/config/index.vue new file mode 100644 index 0000000..78effc8 --- /dev/null +++ b/src/views/system/config/index.vue @@ -0,0 +1,120 @@ + + + diff --git a/src/views/system/config/save.vue b/src/views/system/config/save.vue new file mode 100644 index 0000000..cd326e6 --- /dev/null +++ b/src/views/system/config/save.vue @@ -0,0 +1,72 @@ + + +