diff --git a/.env.development b/.env.development index a395fc0b..05e1a6f2 100644 --- a/.env.development +++ b/.env.development @@ -5,11 +5,11 @@ NODE_ENV = development VUE_APP_TITLE = '曲阳金隅安全智能管控平台' # 接口地址 -# VUE_APP_API_BASEURL = http://49.232.14.174:2226/api -VUE_APP_API_BASEURL = http://127.0.0.1:8000/api +VUE_APP_API_BASEURL = http://49.232.14.174:2226/api +#VUE_APP_API_BASEURL = http://127.0.0.1:8000/api # 本地端口 VUE_APP_PORT = 2800 # 是否开启代理 -VUE_APP_PROXY = true \ No newline at end of file +VUE_APP_PROXY = true diff --git a/src/api/model/ops.js b/src/api/model/ops.js new file mode 100644 index 00000000..2d0f2216 --- /dev/null +++ b/src/api/model/ops.js @@ -0,0 +1,14 @@ +import config from "@/config" +import http from "@/utils/request" + +export default { + logs: { + list: { + url: `${config.API_URL}/monitor/request_log/`, + name: "请求日志", + req: async function(data){ + return await http.get(this.url, data); + } + } + } +} diff --git a/src/api/model/system.js b/src/api/model/system.js index bfb936cf..5744e3e4 100644 --- a/src/api/model/system.js +++ b/src/api/model/system.js @@ -173,7 +173,7 @@ export default { }, user: { list: { - url: `${config.API_URL}/system/user/list`, + url: `${config.API_URL}/system/user`, name: "获取用户列表", req: async function(params){ return await http.get(this.url, params); @@ -202,12 +202,34 @@ export default { } }, }, - log: { + post: { list: { - url: `${config.API_URL}/system/log/list`, - name: "日志列表", - req: async function(params){ - return await http.get(this.url, params); + url: `${config.API_URL}/system/post/`, + name: "获取岗位列表", + req: async function(data){ + return await http.get(this.url, data); + } + }, + create: { + url: `${config.API_URL}/system/post/`, + name: "新增岗位", + req: async function(data){ + return await http.post(this.url,data); + } + }, + update: { + name: "更新岗位", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/system/post/${id}/`, + data + ); + } + }, + delete: { + name: "删除岗位", + req: async function(id){ + return await http.delete(`${config.API_URL}/system/post/${id}/`); } } }, diff --git a/src/views/ops/logInfo.vue b/src/views/ops/logInfo.vue new file mode 100644 index 00000000..eca96198 --- /dev/null +++ b/src/views/ops/logInfo.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/views/ops/log_request.vue b/src/views/ops/log_request.vue index e69de29b..3461c8b1 100644 --- a/src/views/ops/log_request.vue +++ b/src/views/ops/log_request.vue @@ -0,0 +1,62 @@ + + + diff --git a/src/views/sys/dict.vue b/src/views/sys/dict.vue index e69de29b..d0bbb3a4 100644 --- a/src/views/sys/dict.vue +++ b/src/views/sys/dict.vue @@ -0,0 +1,420 @@ + + + + + diff --git a/src/views/sys/user.vue b/src/views/sys/user.vue index e7eedd54..c7591c1a 100644 --- a/src/views/sys/user.vue +++ b/src/views/sys/user.vue @@ -68,8 +68,6 @@ - - - + --> + - - - +