| | |
| | | ], |
| | | hidden: true |
| | | }, |
| | | { |
| | | id: 2, |
| | | parentId: 0, |
| | | path: '/contingencyplan', |
| | | component: Layout, |
| | | // redirect: '/contingencyplan', |
| | | name: '应急预案', |
| | | meta: { title: '应急预案', icon: 'el-icon-dash' }, |
| | | children: [ |
| | | { |
| | | id: 1, |
| | | parentId: 0, |
| | | path: '/contingencyplan', |
| | | name: '应急预案', |
| | | component: () => import('@/views/contingencyplan/index'), |
| | | meta: { title: '应急预案', icon: '' } |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | // { |
| | | // id: 2, |
| | | // parentId: 0, |
| | | // path: '/contingencyplan', |
| | | // component: Layout, |
| | | // // redirect: '/contingencyplan', |
| | | // name: '应急预案', |
| | | // meta: { title: '应急预案', icon: 'el-icon-dash' }, |
| | | // children: [ |
| | | // { |
| | | // id: 1, |
| | | // parentId: 0, |
| | | // path: '/contingencyplan', |
| | | // name: '应急预案', |
| | | // component: () => import('@/views/contingencyplan/index'), |
| | | // meta: { title: '应急预案', icon: '' } |
| | | // } |
| | | // ] |
| | | // }, |
| | | /* { |
| | | id: 2, |
| | | parentId: 0, |
| | | path: '/safetyproduction', |
| | |
| | | hidden: true |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | },*/ |
| | | /* { |
| | | id: 2, |
| | | parentId: 0, |
| | | path: '/majorHazardSourceMonitoring', |
| | |
| | | meta: { title: '仪表实时数据', icon: '' } |
| | | }, |
| | | ] |
| | | }, |
| | | },*/ |
| | | { |
| | | id: 2, |
| | | parentId: 0, |
| | |
| | | }, |
| | | modItem() { |
| | | if(this.list.safetyInspectionItemResult!=null){ |
| | | console.log(this.list) |
| | | let pointFlag = this.pointDel |
| | | for(var i=0;i<this.list.selfDeductionList.length;i++){ |
| | | this.pointDel=this.pointDel-this.list.selfDeductionList[i].point |
| | | pointFlag=pointFlag-this.list.selfDeductionList[i].point |
| | | } |
| | | |
| | | if(pointFlag>=0){ |
| | | safetySelfInspectionModItemInfo(this.list).then((res) => { |
| | | if (res.data.code == 200) { |
| | | if(this.pointDel>=0){ |
| | | this.$notify({ |
| | | type: "success", |
| | | duration: 2000, |
| | |
| | | id:this.id |
| | | } |
| | | }); |
| | | } |
| | | }) |
| | | }else{ |
| | | alert(`扣分不得超过总分${this.point}`) |
| | | } |
| | | } |
| | | }); |
| | | }else{ |
| | | else{ |
| | | this.$confirm('是否否决项未选择','提示', { |
| | | confirmButtonText: '确认', |
| | | cancelButtonText: '取消', |
| | |
| | | addC(){ |
| | | if(this.form.point<=this.point){ |
| | | for(let i = 0;i<this.list.selfDeductionList.length;i++){ |
| | | if (this.form.id==this.list.selfDeductionList[i].id){ |
| | | if (this.form.safetyInspectionItemDeductionId==this.list.selfDeductionList[i].safetyInspectionItemDeductionId){ |
| | | this.list.selfDeductionList[i].point = this.form.point |
| | | this.list.selfDeductionList[i].remark = this.form.remark |
| | | } |