diff --git a/public/img/left_arrow.png b/public/img/left_arrow.png new file mode 100644 index 00000000..3957dd1e Binary files /dev/null and b/public/img/left_arrow.png differ diff --git a/public/img/v_track.png b/public/img/v_track.png new file mode 100644 index 00000000..a1b80150 Binary files /dev/null and b/public/img/v_track.png differ diff --git a/public/img/v_view.png b/public/img/v_view.png new file mode 100644 index 00000000..c1e424ed Binary files /dev/null and b/public/img/v_view.png differ 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{