From db8e04276e52d8eafe26652f95ec8946d5fd4f2c Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 5 Sep 2023 17:05:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E9=87=8F=E5=99=A8=E5=85=B7=E5=8F=B0?= =?UTF-8?q?=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/route.js | 10 ++ src/layout/index.vue | 7 +- src/style/app.scss | 4 +- src/views/bigScreen/index_enm.vue | 25 ++- src/views/em/equipment.vue | 8 +- src/views/em/equipment_form.vue | 195 +++++++++++++++----- src/views/em/equipmentc.vue | 288 ++++++++++++++++++++++++++++++ src/views/enm_rm/logDetail.vue | 67 +++++-- src/views/home/event.vue | 144 +++++++++++++++ 9 files changed, 659 insertions(+), 89 deletions(-) create mode 100644 src/views/em/equipmentc.vue create mode 100644 src/views/home/event.vue diff --git a/src/config/route.js b/src/config/route.js index 5aa95747..084599a1 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -660,6 +660,16 @@ const routes = [ }, "component": "em/equipment" }, + { + "name": "equipmentc", + "path": "/em/equipmentc", + "meta": { + "title": "计量设备", + "icon": "el-icon-cellphone", + "perms": ["equipment"] + }, + "component": "em/equipmentc" + }, ] }, //事件 diff --git a/src/layout/index.vue b/src/layout/index.vue index b8a1ddde..a36c6281 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -56,10 +56,11 @@ \ No newline at end of file diff --git a/src/views/enm_rm/logDetail.vue b/src/views/enm_rm/logDetail.vue index dc4399b3..0ca33493 100644 --- a/src/views/enm_rm/logDetail.vue +++ b/src/views/enm_rm/logDetail.vue @@ -183,6 +183,12 @@ highlightCurrentRow > + + + @@ -205,6 +211,22 @@ :model="expForm" > + + + + + + + + @@ -218,6 +240,7 @@ placeholder="发生时间" value-format="YYYY-MM-DD HH:mm:ss" style="width:100%" + :disabled="expTitle!=='新增异常'&&expForm.duration>0" > @@ -234,18 +257,31 @@ - + + + - + + + + + + - - - - - @@ -299,9 +325,7 @@ import otherDialog from "./other_form.vue"; activeName:'fourth', expTitle:'新增异常', sflogItem:{}, - form:{ - - }, + form:{}, thirdForm:{ num:'' }, @@ -311,18 +335,24 @@ import otherDialog from "./other_form.vue"; title:'', reason:'', measure:'', - duration:'', + duration:0, sflog:'', }, query:{ page:0, - }, rules: { happen_time: [{ required: true, message: "请选择发生时间" }], title: [{ required: true, message: "请填写异常名称" }], cate: [{ required: true, message: "请选择原因类别" }], + reason: [{ required: true, message: "请填写异常原因" }], + measure: [{ required: true, message: "请填写处置措施" }], }, + sflogexpType:'1', + typeOptions:[ + {value:'0',name:'停机'}, + {value:'1',name:'其他'} + ], options:['工艺','电器','机械','其他'], checkList:[], teamOptions:[], @@ -425,7 +455,7 @@ import otherDialog from "./other_form.vue"; this.expForm.title=''; this.expForm.reason=''; this.expForm.measure=''; - this.expForm.duration=''; + this.expForm.duration=0; this.expForm.sflog=this.form.id; this.expTitle='新增异常'; this.visible = true; @@ -435,6 +465,7 @@ import otherDialog from "./other_form.vue"; Object.assign(this.expForm, row); this.expTitle='编辑异常'; this.expForm.handler = this.$TOOL.data.get("USER_INFO").id; + if(this.expForm.duration>0){this.sflogexpType='0';}else{this.sflogexpType='1';} this.visible = true; }, //异常删除 diff --git a/src/views/home/event.vue b/src/views/home/event.vue new file mode 100644 index 00000000..af6aac2b --- /dev/null +++ b/src/views/home/event.vue @@ -0,0 +1,144 @@ + + \ No newline at end of file