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