From 773eeaa0dda8157e51eb2f7bac21ea5f35515921 Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 7 Jul 2022 14:07:32 +0800 Subject: [PATCH] mapcontroller&userdetail --- public/img/left_arrow.png | Bin 0 -> 250 bytes public/img/v_track.png | Bin 0 -> 283 bytes public/img/v_view.png | Bin 0 -> 276 bytes src/api/model/hrm.js | 8 + src/api/model/system.js | 4 +- src/api/model/third.js | 31 + src/views/bigScreen/index.vue | 1493 ++++++++++++++++++++++++++++----- src/views/hrm/ep_form.vue | 13 +- src/views/sys/user_form.vue | 8 +- 9 files changed, 1337 insertions(+), 220 deletions(-) create mode 100644 public/img/left_arrow.png create mode 100644 public/img/v_track.png create mode 100644 public/img/v_view.png diff --git a/public/img/left_arrow.png b/public/img/left_arrow.png new file mode 100644 index 0000000000000000000000000000000000000000..3957dd1e4b39e49bc91cfdc9e82db3c3ff039376 GIT binary patch literal 250 zcmV1W zI(Tvnn@AGP;N2lS6Z8kcsUYxRPM+WfFlrk9gx9j#E69Vw*q*W%-bi8yzoc;2XYB({ zC0_V-SdelgsJ>;=!dmonUQI4kyaEh|1W5>(RptPNg5Yup)CRV#ObId{1HIG!r*os? z=GmIpDQ(-c)1GY+rwi+fINx?x#ObSSE6qQ@01ekS+-lbS%m4rY07*qoM6N<$f`!Xz A6951J literal 0 HcmV?d00001 diff --git a/public/img/v_track.png b/public/img/v_track.png new file mode 100644 index 0000000000000000000000000000000000000000..a1b80150bcc4fecca1bc275dfc1279f96ed489e5 GIT binary patch literal 283 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!Yk*IPE0F$AF$kJld{p{dxMncmQxYEa6X_FdY9S3lt| zlc)2F64MtC-pqO}a?_>sTZP}G?a!oMsk?iMm8^JLD=NBdb&FZ&{-^98_&GyYrwG>o Pt!D6a^>bP0l+XkKZ*!0z literal 0 HcmV?d00001 diff --git a/public/img/v_view.png b/public/img/v_view.png new file mode 100644 index 0000000000000000000000000000000000000000..c1e424edc5fd6f8658cfbe32de89d5c5f8218a9a GIT binary patch literal 276 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!eSlAhE0F$A0dU^^D+_3ZNJ)@i zFoS@CfxSaOLP34QgasSUU%3C^{fGHeKOF?h7kIijhDb>E9`qJ!HsE1BsNVBKqIrYS zcl+!ZPp#}-Uqfa-_pINh?)+{UzyFK1dlkCb*jK4!H+WAg$lAN!Rrb;qhWQO4th1~h zoC`2pu$pOgDTl1XRHnSmyKYVqn56TdDASYUa)P@3*)O4e4HjK;mCS!Xv)`&Y@X8u! OH-o3EpUXO@geCwn*@|QU literal 0 HcmV?d00001 diff --git a/src/api/model/hrm.js b/src/api/model/hrm.js index 714bba48..f3d0d18c 100644 --- a/src/api/model/hrm.js +++ b/src/api/model/hrm.js @@ -12,6 +12,14 @@ export default { ); } }, + item: { + name: "获取企业员工", + req: async function(id){ + return await http.get( + `${config.API_URL}/hrm/employee/${id}/`, + ); + } + }, create: { name: "新增员工", req: async function(data){ diff --git a/src/api/model/system.js b/src/api/model/system.js index b8eff89a..8225a7c9 100644 --- a/src/api/model/system.js +++ b/src/api/model/system.js @@ -341,8 +341,8 @@ export default { list: { url: `${config.API_URL}/system/user_post/`, name: "用户/岗位关系", - req: async function(params){ - return await http.get(this.url, params); + req: async function(data){ + return await http.get(this.url, data); } }, create: { diff --git a/src/api/model/third.js b/src/api/model/third.js index 0ee19e60..05831b4b 100644 --- a/src/api/model/third.js +++ b/src/api/model/third.js @@ -14,4 +14,35 @@ export default { }, }, + blt:{ + all:{ + name: "全部在线标签列表信息", + req: async function(data){ + return await http.post( + `${config.API_URL}/third/tdevice/blt/all/`, + data + ); + } + }, + countBind:{ + name: "统计绑定定位卡人/设备数", + req: async function(data){ + return await http.get( + `${config.API_URL}/third/tdevice/blt/count_bind/`, + data + ); + } + }, + countNow:{ + name: "统计在厂终端数", + req: async function(data){ + return await http.get( + `${config.API_URL}/third/tdevice/blt/count_now/`, + data + ); + } + } + + }, + } diff --git a/src/views/bigScreen/index.vue b/src/views/bigScreen/index.vue index ec424bd6..600de877 100644 --- a/src/views/bigScreen/index.vue +++ b/src/views/bigScreen/index.vue @@ -2,7 +2,7 @@
-
驾驶舱
+
曲阳金隅智慧安全
2022-06-22 @@ -54,7 +54,7 @@
-
全部
访客 -
+
-->
-
数据统计
+
+ 数据统计 +
+ 有卡 + + 在厂 +
+
内部员工
- 76  + {{userCount.count_employee}} 
@@ -120,7 +127,7 @@
访客
-
0  +
{{userCount.count_visitor}} 
@@ -129,7 +136,7 @@
相关方
- 0  + {{userCount.count_remployee}} 
@@ -138,9 +145,9 @@
- 告警实时展示 + 报警实时展示
- {{warningList.length}} 报警 + {{warningData.total}} 报警
@@ -168,7 +175,7 @@
-
告警数据
+
报警数据
查看详情 @@ -228,7 +235,7 @@
-
+
未处理
{{item.create_time}}
{{item.voice_msg}}
-
+
@@ -311,23 +320,41 @@
-
区域信息情况部门信息情况 +
+ 区域信息情况 +
需充电卡片0人
+
+ + + + + +
-
+ +
疏散演练
–>
-
+
-->
@@ -337,6 +364,274 @@
1111111
--> + +
+
+
查看作业详情
+
关闭
+
+
+
+
+ 作业证名称: + 动火作业 +
+
+ 作业证编号: + 111111111 +
+
+ 作业证等级: + 特级 +
+
+ 申请单位: + 金隅 +
+
+ 申请人: + 金隅工人 +
+
+ 开始时间: + 2022-07-01 10:00:00 +
+
+ 结束时间: + 2022-07-02 00:00:00 +
+
+ 作业内容: + 设备检修 +
+
+ 作业人员: + 张江,李斯 +
+
+
+
安全措施
+
+
+
+
+
序号
+
安全措施
+
确认人
+
+
+
+
1
+
佩戴安全帽,穿安全衣,系安全绳
+
chen
+
+
+
+
+
+
+ +
+
+
人员信息
+
关闭
+
+
+
+
+
+
+ +
+
+
+
+ 姓名: + {{screenUserItem.name}} +
+
+ 类型: + 内部员工 + 访客 +
+
+ 定位卡: + {{screenUserItem.id}} +
+
+ 部门: + {{screenUserItem.belong_dept_name}} +
+
+ 岗位: + {{screenUserItem.post_name}} +
+
+
查看详情
+
+
+
+
+ + 跟踪 +
+
+ + 轨迹 +
+
+
+ + + + + + + + + + + +
+ +
+
+
人员信息
+
+
+
+
+ 基本信息 + +
+
+
+
+ 姓名: + {{screenUserItemDetail.name}} +
+
+ 姓别: + {{screenUserItemDetail.gender}} +
+ +
+ 定位卡号: + 202106180008 +
+
+ 部门: + {{screenUserItemDetail.belong_dept_.name}} +
+
+ 岗位: + {{screenUserItemDetail.post_.name}} +
+
+ 证件类型: + 中华人民共和国居民身份证 +
+
+ 证件号码: + {{screenUserItemDetail.id_number}} +
+
+ 联系电话: + {{screenUserItemDetail.phone}} +
+
+ + +
+
+
+
+
+
查看作业详情
+
关闭
+
+
+
+
+ 作业证名称: + 动火作业 +
+
+ 作业证编号: + 111111111 +
+
+ 作业证等级: + 特级 +
+
+ 申请单位: + 金隅 +
+
+ 申请人: + 金隅工人 +
+
+ 开始时间: + 2022-07-01 10:00:00 +
+
+ 结束时间: + 2022-07-02 00:00:00 +
+
+ 作业内容: + 设备检修 +
+
+ 作业人员: + 张江,李斯 +
+
+
+
安全措施
+
+
+
+
+
序号
+
安全措施
+
确认人
+
+
+
+
1
+
佩戴安全帽,穿安全衣,系安全绳
+
chen
+
+
+
+
+
+
@@ -413,7 +708,8 @@
风险区域名称:重大风险区域
-
风险等级:重大风险 +
风险等级:重大风险
创建人:李英
@@ -443,7 +739,8 @@
报警区域: - {{screenWarningItem.area_.name}} + {{screenWarningItem.area_.name}}
触发人: @@ -455,7 +752,8 @@
触发事件: - {{ite.name}} + {{ite.name}}
触发时间: @@ -501,11 +799,14 @@ diff --git a/src/views/hrm/ep_form.vue b/src/views/hrm/ep_form.vue index 31deb275..84d3851e 100644 --- a/src/views/hrm/ep_form.vue +++ b/src/views/hrm/ep_form.vue @@ -41,9 +41,9 @@ @@ -190,18 +190,12 @@ }*/ ], }, - addForm: { - name: "", - sort: "", - user: "", - post: "", - dept: [], - }, groupsProps: { // value: "id", multiple: false, emitPath: false, checkStrictly: true, + expandTrigger: 'hover', }, group: [], postOptions: [], @@ -248,7 +242,6 @@ this.$refs.dialogForm.validate((valid) => { if (valid) { this.isSaveing = true; - // this.addForm.dept = this.addForm.dept[1]; if (this.mode === 'add') { this.$API.hrm.employee.create.req(this.form) .then(res => { diff --git a/src/views/sys/user_form.vue b/src/views/sys/user_form.vue index a9cadd0d..c4c92d8c 100644 --- a/src/views/sys/user_form.vue +++ b/src/views/sys/user_form.vue @@ -135,7 +135,7 @@ mounted() { this.getPosts(); this.getGroup(); - this.getUserPostList(); + }, methods: { getPosts(){ @@ -162,6 +162,7 @@ setData(data) { debugger; Object.assign(this.form, data); + this.getUserPostList(); }, closeDrawer() { this.visible = false; @@ -181,7 +182,10 @@ ///// //用户岗位关系列表 getUserPostList(){ - this.$API.system.userPost.list.req().then(res=>{ + debugger; + console.log(this.form.id); + let obj = {user:this.form.id}; + this.$API.system.userPost.list.req(obj).then(res=>{ if(res.err_msg){ this.$message.error(res.err_msg) }else{