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