From f79b37eae7b5242badc64b3079790226c860dde4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Mon, 8 Aug 2022 08:50:12 +0800 Subject: [PATCH] =?UTF-8?q?apk=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/ops.js | 8 ++++ src/api/model/system.js | 16 +++++++ src/config/index.js | 2 +- src/config/route.js | 20 +++++++++ src/layout/index.vue | 2 +- src/views/ops/log_request.vue | 2 +- src/views/ops/menu.vue | 3 -- src/views/ops/monitor.vue | 0 src/views/ops/server.vue | 84 +++++++++++++++++++++++++++++++++++ src/views/ops/setting.vue | 57 ++++++++++++++++++++++++ src/views/ops/thirdLogs.vue | 2 +- src/views/sys/dept.vue | 1 - src/views/sys/dict.vue | 21 ++++----- 13 files changed, 200 insertions(+), 18 deletions(-) delete mode 100644 src/views/ops/monitor.vue create mode 100644 src/views/ops/server.vue create mode 100644 src/views/ops/setting.vue diff --git a/src/api/model/ops.js b/src/api/model/ops.js index 0e076a4d..bba0e9a9 100644 --- a/src/api/model/ops.js +++ b/src/api/model/ops.js @@ -26,4 +26,12 @@ export default { } } }, + server: { + info: { + name: "服务器状态", + req: async function(name){ + return await http.get(`${config.API_URL}/monitor/server/`); + } + } + } } diff --git a/src/api/model/system.js b/src/api/model/system.js index 4ba6ea12..a83e1b4d 100644 --- a/src/api/model/system.js +++ b/src/api/model/system.js @@ -341,6 +341,22 @@ export default { } }, }, + apk:{ + read: { + url: `${config.API_URL}/system/apk/`, + name: "apk信息", + req: async function(data){ + return await http.get(this.url, data); + } + }, + create: { + url: `${config.API_URL}/system/apk/`, + name: "apk创建", + req: async function(data){ + return await http.post(this.url, data); + } + } + }, userPost:{ list: { url: `${config.API_URL}/system/user_post/`, diff --git a/src/config/index.js b/src/config/index.js index 50478b33..378556b9 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -46,7 +46,7 @@ const DEFAULT_CONFIG = { LANG: 'zh-cn', //主题颜色 - COLOR: '', + COLOR: '#536DFE', //是否加密localStorage, 为空不加密,可填写AES(模式ECB,移位Pkcs7)加密 LS_ENCRYPTION: '', diff --git a/src/config/route.js b/src/config/route.js index b7fcc813..daf30c5b 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -755,6 +755,26 @@ const routes = [ }, "component": "ops/fileLogs" }, + { + "name": "server", + "path": "/ops/server", + "meta": { + "title": "服务器", + "icon": "el-icon-document", + "perms": ["ops"] + }, + "component": "ops/server" + }, + { + "name": "setting", + "path": "/ops/setting", + "meta": { + "title": "配置", + "icon": "el-icon-document", + "perms": ["ops"] + }, + "component": "ops/setting" + }, ] }, ] diff --git a/src/layout/index.vue b/src/layout/index.vue index f98e8c7a..616c3411 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -182,7 +182,7 @@