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 @@
-
+ diff --git a/src/views/ops/log_request.vue b/src/views/ops/log_request.vue index cc9998d6..52970228 100644 --- a/src/views/ops/log_request.vue +++ b/src/views/ops/log_request.vue @@ -73,7 +73,7 @@ min-width="100" > - 查看 + 查看 diff --git a/src/views/ops/menu.vue b/src/views/ops/menu.vue index bc282835..6d6a5cfc 100644 --- a/src/views/ops/menu.vue +++ b/src/views/ops/menu.vue @@ -44,15 +44,12 @@ + \ No newline at end of file diff --git a/src/views/ops/setting.vue b/src/views/ops/setting.vue new file mode 100644 index 00000000..d6fd88ba --- /dev/null +++ b/src/views/ops/setting.vue @@ -0,0 +1,57 @@ + + \ No newline at end of file diff --git a/src/views/ops/thirdLogs.vue b/src/views/ops/thirdLogs.vue index 3b207ab2..8cd248c9 100644 --- a/src/views/ops/thirdLogs.vue +++ b/src/views/ops/thirdLogs.vue @@ -77,7 +77,7 @@ min-width="100" > - 查看 + 查看 diff --git a/src/views/sys/dept.vue b/src/views/sys/dept.vue index f15df0b4..b7beebb7 100644 --- a/src/views/sys/dept.vue +++ b/src/views/sys/dept.vue @@ -66,7 +66,6 @@ v-auth="'dept.update'" >编辑 - { - this.$refs.dic.setCurrentKey(firstNode.id) - }); - this.listApiParams = { - id: firstNode.id - }; - this.listApi = this.$API.system.dict.list; - } + // let firstNode = this.dicList[0]; + // if(firstNode){ + // this.$nextTick(() => { + // this.$refs.dic.setCurrentKey(firstNode.id) + // }); + // this.listApiParams = { + // id: firstNode.id + // }; + // this.listApi = this.$API.system.dict.list; + // } let postList = res; let posts = []; postList.forEach(item => { @@ -294,6 +294,7 @@ }, //点击字典类型 dicClickType(data){ + this.listApi = this.$API.system.dict.list; this.$refs.table.queryData({ type: data.id })