diff --git a/.env.development b/.env.development index 917e511f..a395fc0b 100644 --- a/.env.development +++ b/.env.development @@ -5,7 +5,8 @@ NODE_ENV = development VUE_APP_TITLE = '曲阳金隅安全智能管控平台' # 接口地址 -VUE_APP_API_BASEURL = http://49.232.14.174:2226/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/ecm.js b/src/api/model/ecm.js new file mode 100644 index 00000000..4dc3b15a --- /dev/null +++ b/src/api/model/ecm.js @@ -0,0 +1,70 @@ +import config from "@/config" +import http from "@/utils/request" + +export default { + event_cate: { + list: { + name: "获取", + req: async function(data){ + return await http.get( + `${config.API_URL}/ecm/event_cate/`, + data + ); + } + }, + update: { + name: "更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/ecm/event_cate/${id}/`, + data); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/ecm/event_cate/`, + data); + } + } + }, + notify_setting:{ + list: { + name: "获取", + req: async function(data){ + return await http.get( + `${config.API_URL}/ecm/notify_setting/`, + data + ); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/ecm/notify_setting/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id, data){ + return await http.delete( + `${config.API_URL}/ecm/notify_setting/${id}/`, + data); + } + }, + }, + event:{ + list: { + name: "获取", + req: async function(data){ + return await http.get( + `${config.API_URL}/ecm/event/`, + data + ); + } + }, + } +} \ No newline at end of file diff --git a/src/api/model/hrm.js b/src/api/model/hrm.js index ce2918b1..11ddba6f 100644 --- a/src/api/model/hrm.js +++ b/src/api/model/hrm.js @@ -4,10 +4,12 @@ import http from "@/utils/request" export default { employee: { list: { - url: `${config.API_URL}/hrm/employee/`, name: "获取企业员工", req: async function(data){ - return await http.get(this.url, data); + return await http.get( + `${config.API_URL}/hrm/employee/`, + data + ); } }, create: { diff --git a/src/api/model/rpm.js b/src/api/model/rpm.js new file mode 100644 index 00000000..46b17b65 --- /dev/null +++ b/src/api/model/rpm.js @@ -0,0 +1,32 @@ +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}/rpm/rparty/`, + data + ); + } + }, + update: { + name: "更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/rpm/rparty/${id}/`, + data); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/rpm/rparty/`, + data); + } + } + }, +} \ No newline at end of file diff --git a/src/config/route.js b/src/config/route.js index 933c1112..4d4b6681 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -85,6 +85,44 @@ const routes = [ }, "component": "ecm/event" }, + { + "name": "notify_setting", + "path": "/ecm/notify_setting", + "meta": { + "title": "提醒配置", + "icon": "el-icon-menu", + }, + "component": "ecm/notify_setting" + }, + ] + }, + { + "name": "wf", + "path": "/wf", + "meta": { + "title": "工单", + "icon": "el-icon-goods", + "type": "menu" + }, + "children": [ + { + "name": "workflow", + "path": "/wf/workflow", + "meta": { + "title": "工作流", + "icon": "el-icon-menu", + }, + "component": "wf/workflow" + }, + { + "name": "ticket", + "path": "/wf/ticket", + "meta": { + "title": "工单", + "icon": "el-icon-menu", + }, + "component": "wf/ticket" + }, ] }, { @@ -125,6 +163,33 @@ const routes = [ }, "component": "rpm/rparty" }, + { + "name": "remployee", + "path": "/rpm/remployee", + "meta": { + "title": "相关方人员", + "icon": "el-icon-menu", + }, + "component": "rpm/remployee" + }, + { + "name": "rfile", + "path": "/rpm/rfile", + "meta": { + "title": "资料库", + "icon": "el-icon-menu", + }, + "component": "rpm/rfile" + }, + { + "name": "rpj", + "path": "/rpm/rpj", + "meta": { + "title": "入厂项目", + "icon": "el-icon-menu", + }, + "component": "rpm/rpj" + }, ] }, { @@ -215,16 +280,6 @@ const routes = [ }, "component": "sys/user" }, - { - "path": "/sys/role", - "name": "role", - "meta": { - "title": "角色管理", - "icon": "el-icon-notebook", - "type": "menu" - }, - "component": "sys/role" - }, { "path": "/sys/dept", "name": "dept", @@ -235,6 +290,26 @@ const routes = [ }, "component": "sys/dept" }, + { + "path": "/sys/post", + "name": "post", + "meta": { + "title": "岗位管理", + "icon": "sc-icon-organization", + "type": "menu" + }, + "component": "sys/post" + }, + { + "path": "/sys/role", + "name": "role", + "meta": { + "title": "角色管理", + "icon": "el-icon-notebook", + "type": "menu" + }, + "component": "sys/role" + }, { "path": "/sys/dict", "name": "dict", diff --git a/src/views/ecm/event.vue b/src/views/ecm/event.vue index e69de29b..e09b0f44 100644 --- a/src/views/ecm/event.vue +++ b/src/views/ecm/event.vue @@ -0,0 +1,102 @@ + + \ No newline at end of file diff --git a/src/views/ecm/event_cate_form.vue b/src/views/ecm/event_cate_form.vue new file mode 100644 index 00000000..5c68d53d --- /dev/null +++ b/src/views/ecm/event_cate_form.vue @@ -0,0 +1,157 @@ + + + + + diff --git a/src/views/ecm/event_detail.vue b/src/views/ecm/event_detail.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/ecm/notify_setting.vue b/src/views/ecm/notify_setting.vue new file mode 100644 index 00000000..fa685e8a --- /dev/null +++ b/src/views/ecm/notify_setting.vue @@ -0,0 +1,238 @@ + + + + + diff --git a/src/views/ecm/notify_settings_form.vue b/src/views/ecm/notify_settings_form.vue new file mode 100644 index 00000000..32727207 --- /dev/null +++ b/src/views/ecm/notify_settings_form.vue @@ -0,0 +1,172 @@ + + + + + diff --git a/src/views/rpm/rcertificate.vue b/src/views/rpm/rcertificate.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/rpm/remployee.vue b/src/views/rpm/remployee.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/rpm/rfile.vue b/src/views/rpm/rfile.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/rpm/rparty.vue b/src/views/rpm/rparty.vue index e69de29b..7253e230 100644 --- a/src/views/rpm/rparty.vue +++ b/src/views/rpm/rparty.vue @@ -0,0 +1,166 @@ + + \ No newline at end of file diff --git a/src/views/rpm/rparty_form.vue b/src/views/rpm/rparty_form.vue new file mode 100644 index 00000000..a5521748 --- /dev/null +++ b/src/views/rpm/rparty_form.vue @@ -0,0 +1,188 @@ + + + + + diff --git a/src/views/rpm/rpj.vue b/src/views/rpm/rpj.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/sys/post.vue b/src/views/sys/post.vue index e69de29b..27748045 100644 --- a/src/views/sys/post.vue +++ b/src/views/sys/post.vue @@ -0,0 +1,125 @@ + + + + + diff --git a/src/views/sys/post_form.vue b/src/views/sys/post_form.vue new file mode 100644 index 00000000..ee9509a9 --- /dev/null +++ b/src/views/sys/post_form.vue @@ -0,0 +1,118 @@ + + + + + diff --git a/src/views/sys/post_role_form.vue b/src/views/sys/post_role_form.vue new file mode 100644 index 00000000..1aa8a692 --- /dev/null +++ b/src/views/sys/post_role_form.vue @@ -0,0 +1,155 @@ + + + + + diff --git a/src/views/wf/ticket.vue b/src/views/wf/ticket.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/wf/workflow.vue b/src/views/wf/workflow.vue new file mode 100644 index 00000000..e69de29b