diff --git a/.env.development b/.env.development index a395fc0b..e12feb9f 100644 --- a/.env.development +++ b/.env.development @@ -5,8 +5,8 @@ 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 diff --git a/src/api/model/opl.js b/src/api/model/opl.js new file mode 100644 index 00000000..145c1286 --- /dev/null +++ b/src/api/model/opl.js @@ -0,0 +1,39 @@ +import config from "@/config" +import http from "@/utils/request" + +export default { + rparty: { + list: { + name: "获取", + req: async function(data){ + return await http.get( + `${config.API_URL}/opm/opl_cate/`, + data + ); + } + }, + update: { + name: "更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/opm/opl_cate/${id}/`, + data); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/opm/opl_cate/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/opm/opl_cate/${id}/`); + } + } + }, +} \ No newline at end of file diff --git a/src/config/route.js b/src/config/route.js index 4d4b6681..feb302d9 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -143,6 +143,15 @@ const routes = [ }, "component": "opm/operation" }, + { + "name": "oplcate", + "path": "/opm/oplcate", + "meta": { + "title": "许可证分类", + "icon": "el-icon-menu", + }, + "component": "opm/oplcate" + }, ] }, { diff --git a/src/views/opm/operation.vue b/src/views/opm/operation.vue index e69de29b..e09b0f44 100644 --- a/src/views/opm/operation.vue +++ b/src/views/opm/operation.vue @@ -0,0 +1,102 @@ + + \ No newline at end of file diff --git a/src/views/opm/oplcate.vue b/src/views/opm/oplcate.vue new file mode 100644 index 00000000..5277507e --- /dev/null +++ b/src/views/opm/oplcate.vue @@ -0,0 +1,158 @@ + + \ No newline at end of file