Your Name
2022-10-25 df7046445cfdb39857f9fe1dc747ab04a61c860e
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-458d"],{"1uuP":function(t,e,a){"use strict";var n=a("J0ed");a.n(n).a},"3oTN":function(t,e,a){},"6Mdz":function(t,e,a){"use strict";a.d(e,"h",function(){return s}),a.d(e,"b",function(){return r}),a.d(e,"m",function(){return o}),a.d(e,"c",function(){return c}),a.d(e,"e",function(){return u}),a.d(e,"g",function(){return d}),a.d(e,"j",function(){return l}),a.d(e,"l",function(){return p}),a.d(e,"a",function(){return h}),a.d(e,"d",function(){return m}),a.d(e,"f",function(){return f}),a.d(e,"k",function(){return v}),a.d(e,"i",function(){return g});var n=a("X4fA"),i=a("t3Un");function s(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkWork/select/getCheckWorkPage",method:"post",data:t})}function r(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkWork/insert/saveCheckWork",method:"post",data:t})}function o(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkWork/update/updateCheckWork",method:"post",data:t})}function c(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/work/close?workId="+t,method:"post"})}function u(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkWork/delete/deleteCheckWork",method:"post",data:t})}function d(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkTask/select/getTaskPage",method:"post",data:t})}function l(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkTask/update/updateTask",method:"post",data:t})}function p(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/prevent/checkTask/update/taskToUser",method:"post",data:t})}function h(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/work/content/add?workId="+t.workId+"&measureId="+t.measureId,method:"post"})}function m(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/work/content/del?workId="+t.workId+"&measureId="+t.measureId,method:"post"})}function f(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/work/get/id?workId="+t,method:"post"})}function v(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/task/exec/unitOne",method:"post",data:t})}function g(t){return Object(i.a)({headers:{Authorization:Object(n.a)()},url:"http://222.92.213.22:8006/zhongtai/safecheck/task/exec/submit",method:"post",data:t})}},BNtA:function(t,e,a){"use strict";var n=a("q+bK");a.n(n).a},HGSa:function(t,e,a){"use strict";a.r(e);var n=a("cLjf"),i=a.n(n),s=a("hDQ3"),r=a.n(s),o=a("wUBH"),c={name:"index",data:function(){return{numData:[],timeData:[]}},mounted:function(){},methods:{updateData:function(t){var e=this;return r()(i.a.mark(function a(){var n;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(o.a)(t);case 2:"200"===(n=a.sent).data.code?(e.numData=n.data.data.map(function(t){return t.num}),e.timeData=n.data.data.map(function(t){return t.taskDate})):e.$message({type:"warning",message:n.data.message}),e.drawTodayLine();case 5:case"end":return a.stop()}},a,e)}))()},drawTodayLine:function(){var t=this;return r()(i.a.mark(function e(){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$echarts.init(document.getElementById("inspectionComplete")).setOption({xAxis:{type:"category",boundaryGap:!1,data:t.timeData},yAxis:{type:"value"},color:"#5470c6",series:[{data:t.numData,type:"line",smooth:!0}]});case 2:case"end":return e.stop()}},e,t)}))()}}},u=(a("IzJi"),a("ZrdR")),d=Object(u.a)(c,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{width:"90%",height:"360px",margin:"0 auto"},attrs:{id:"inspectionComplete"}})},[],!1,null,"6841f236",null);d.options.__file="index.vue";e.default=d.exports},IzJi:function(t,e,a){"use strict";var n=a("3oTN");a.n(n).a},J0ed:function(t,e,a){},KtVB:function(t,e,a){"use strict";a.r(e);var n=a("cLjf"),i=a.n(n),s=a("hDQ3"),r=a.n(s),o={name:"index",data:function(){return{numData:[],timeData:[]}},mounted:function(){this.drawTodayLine()},methods:{drawTodayLine:function(){var t=this;return r()(i.a.mark(function e(){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.timeData=["2022-4-1","2022-4-2","2022-4-4","2022-4-4","2022-4-5","2022-4-6","2022-4-7"],t.numData=[2,5,7,9,1,15,6],t.$echarts.init(document.getElementById("inspectionUnusual")).setOption({xAxis:{type:"category",data:t.timeData},grid:{left:"10%",right:"10%",bottom:"5%",top:"5%"},yAxis:{type:"value"},series:[{data:t.numData,type:"line",itemStyle:{normal:{color:"#0180ff",areaStyle:{type:"default",color:new t.$echarts.graphic.LinearGradient(0,0,0,2,[{offset:0,color:"#0180ff"},{offset:.5,color:"#d7f4f8"},{offset:1,color:"#fff"}])},lineStyle:{width:3,type:"solid",color:"#0180ff"},emphasis:{color:"#0180ff",lineStyle:{width:2,type:"dotted",color:"0180ff"}}}},symbolSize:6}]});case 4:case"end":return e.stop()}},e,t)}))()}}},c=(a("1uuP"),a("ZrdR")),u=Object(c.a)(o,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{width:"90%",height:"360px",margin:"0 auto"},attrs:{id:"inspectionUnusual"}})},[],!1,null,"34d9b47e",null);u.options.__file="index.vue";e.default=u.exports},WgQi:function(t,e,a){"use strict";a.d(e,"e",function(){return s}),a.d(e,"a",function(){return r}),a.d(e,"f",function(){return o}),a.d(e,"b",function(){return c}),a.d(e,"d",function(){return u}),a.d(e,"c",function(){return d});var n=a("t3Un"),i=a("X4fA");function s(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://222.92.213.22:8006/zhongtai/department",method:"get",params:t||{}})}function r(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://222.92.213.22:8006/zhongtai/addDepartment",method:"post",data:t})}function o(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://222.92.213.22:8006/zhongtai/putDepartment",method:"post",data:t})}function c(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://222.92.213.22:8006/zhongtai/delDepartment",method:"post",data:t})}function u(){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://222.92.213.22:8006/zhongtai/departmentList",method:"get"})}function d(t){return Object(n.a)({headers:{Authorization:Object(i.a)()},url:"http://222.92.213.22:8006/zhongtai/department-userList",method:"post",data:t})}},hAh9:function(t,e,a){"use strict";a.r(e);var n=a("cLjf"),i=a.n(n),s=a("hDQ3"),r=a.n(s),o=a("yLRB"),c=a("HGSa"),u=a("KtVB"),d=a("95vb"),l=(a("6Mdz"),a("WgQi")),p={name:"index",data:function(){return{value1:["",""],value2:["",""],value3:["",""],departmentList:[],listQuery:{dateList:[],endDate:"",execUid:null,startDate:""},personListQuery:{depId:41,startTime:"",endTime:""},taskListQuery:{depId:41,startTime:"",endTime:""},completeListQuery:{depId:41,startTime:"",endTime:"",status:1},stateList:[{id:1,name:"正常"},{id:2,name:"存在隐患"},{id:3,name:"未处理"}]}},components:{inspectionPerson:o.default,inspectionComplete:c.default,inspectionUnusual:u.default,todayUnusual:d.default},created:function(){this.getDepartment()},mounted:function(){this.setTimeValue()},methods:{setTimeValue:function(){var t=new Date;this.value1=[(t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-01").toString()+" 00:00:00",(t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+t.getDate()).toString()+" 23:59:59"],this.personListQuery.startTime=this.value1[0],this.personListQuery.endTime=this.value1[1],this.$refs.inspectionPerson.updateData(this.personListQuery),this.value2=[(t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-01").toString()+" 00:00:00",(t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+t.getDate()).toString()+" 23:59:59"],this.completeListQuery.startTime=this.value1[0],this.completeListQuery.endTime=this.value1[1],this.$refs.inspectionComplete.updateData(this.completeListQuery),this.value3=[(t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-01").toString()+" 00:00:00",(t.getFullYear()+"-"+(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"+t.getDate()).toString()+" 23:59:59"],this.taskListQuery.startTime=this.value3[0],this.taskListQuery.endTime=this.value3[1],this.$refs.todayUnusual.updateData(this.taskListQuery)},changeTimeInspectionPerson:function(){null!==this.value1&&(this.personListQuery.startTime=this.value1[0],this.personListQuery.endTime=this.value1[1]),this.$refs.inspectionPerson.updateData(this.personListQuery)},changeTimeTask:function(){null!==this.value3&&(this.taskListQuery.startTime=this.value1[0],this.taskListQuery.endTime=this.value1[1]),this.$refs.todayUnusual.updateData(this.personListQuery)},changeCompleteTimeInspectionPerson:function(){null!==this.value2&&(this.completeListQuery.startTime=this.value2[0],this.completeListQuery.endTime=this.value2[1]),this.$refs.inspectionComplete.updateData(this.completeListQuery)},changeInspectionTask:function(){this.$refs.todayUnusual.updateData(this.personListQuery)},changeInspectionPerson:function(){this.$refs.inspectionPerson.updateData(this.personListQuery)},changeInspectionComplete:function(){this.$refs.inspectionComplete.updateData(this.completeListQuery)},getDepartment:function(){var t=this;return r()(i.a.mark(function e(){var a;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(l.e)({pageSize:1e3,pageIndex:1});case 2:"200"===(a=e.sent).data.code?t.departmentList=a.data.result.result:t.$message({message:a.data.message,type:"warning"});case 4:case"end":return e.stop()}},e,t)}))()}}},h=(a("BNtA"),a("ZrdR")),m=Object(h.a)(p,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"inspectionStatistics"},[a("div",{staticClass:"inspectionStatistics_part"},[a("div",{staticClass:"inspectionStatistics_part_person"},[a("div",{staticClass:"inspectionStatistics_part_title"},[t._v(t._s("巡检人员统计"))]),t._v(" "),a("div",{staticClass:"inspectionStatistics_part_time"},[a("el-select",{on:{change:t.changeInspectionPerson},model:{value:t.personListQuery.depId,callback:function(e){t.$set(t.personListQuery,"depId",e)},expression:"personListQuery.depId"}},t._l(t.departmentList,function(t){return a("el-option",{key:t.id,attrs:{value:t.id,label:t.department}})}))],1),t._v(" "),a("div",{staticClass:"inspectionStatistics_part_time"},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd HH:mm:ss","default-time":["00:00:00","23:59:59"],"end-placeholder":"结束日期"},on:{change:t.changeTimeInspectionPerson},model:{value:t.value1,callback:function(e){t.value1=e},expression:"value1"}})],1),t._v(" "),a("el-divider"),t._v(" "),a("div",{staticClass:"inspectionStatistics_part_body"},[a("inspection-person",{ref:"inspectionPerson"})],1)],1)]),t._v(" "),a("div",{staticClass:"inspectionStatistics_part"},[a("div",{staticClass:"inspectionStatistics_part_complete"},[a("div",{staticClass:"inspectionStatistics_part_title"},[t._v(t._s("巡检完成统计"))]),t._v(" "),a("div",{staticClass:"inspectionStatistics_part_time",staticStyle:{width:"150px"}},[a("el-select",{on:{change:t.changeInspectionComplete},model:{value:t.completeListQuery.depId,callback:function(e){t.$set(t.completeListQuery,"depId",e)},expression:"completeListQuery.depId"}},t._l(t.departmentList,function(t){return a("el-option",{key:t.id,attrs:{value:t.id,label:t.department}})}))],1),t._v(" "),a("div",{staticClass:"inspectionStatistics_part_time",staticStyle:{width:"100px"}},[a("el-select",{on:{change:t.changeInspectionComplete},model:{value:t.completeListQuery.status,callback:function(e){t.$set(t.completeListQuery,"status",e)},expression:"completeListQuery.status"}},t._l(t.stateList,function(t){return a("el-option",{key:t.id,attrs:{value:t.id,label:t.name}})}))],1),t._v(" "),a("div",{staticClass:"inspectionStatistics_part_time"},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","value-format":"yyyy-MM-dd HH:mm:ss","default-time":["00:00:00","23:59:59"],"start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeCompleteTimeInspectionPerson},model:{value:t.value2,callback:function(e){t.value2=e},expression:"value2"}})],1),t._v(" "),a("el-divider"),t._v(" "),a("div",{staticClass:"inspectionStatistics_part_body"},[a("inspection-complete",{ref:"inspectionComplete"})],1)],1)]),t._v(" "),a("div",{staticClass:"inspectionStatistics_part"},[a("div",{staticClass:"inspectionStatistics_part_today"},[a("div",{staticClass:"inspectionStatistics_part_title"},[t._v(t._s("巡检任务统计"))]),t._v(" "),a("div",{staticClass:"inspectionStatistics_part_time"},[a("el-select",{on:{change:t.changeInspectionTask},model:{value:t.taskListQuery.depId,callback:function(e){t.$set(t.taskListQuery,"depId",e)},expression:"taskListQuery.depId"}},t._l(t.departmentList,function(t){return a("el-option",{key:t.id,attrs:{value:t.id,label:t.department}})}))],1),t._v(" "),a("div",{staticClass:"inspectionStatistics_part_time"},[a("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd HH:mm:ss","default-time":["00:00:00","23:59:59"],"end-placeholder":"结束日期"},on:{change:t.changeTimeTask},model:{value:t.value3,callback:function(e){t.value3=e},expression:"value3"}})],1),t._v(" "),a("el-divider"),t._v(" "),a("div",{staticClass:"inspectionStatistics_part_body"},[a("today-unusual",{ref:"todayUnusual"})],1)],1)])])},[],!1,null,"160c9805",null);m.options.__file="index.vue";e.default=m.exports},"mz+T":function(t,e,a){"use strict";var n=a("wGBi");a.n(n).a},"q+bK":function(t,e,a){},wGBi:function(t,e,a){},yLRB:function(t,e,a){"use strict";a.r(e);var n=a("cLjf"),i=a.n(n),s=a("hDQ3"),r=a.n(s),o=a("wUBH"),c={name:"index",data:function(){return{barData:[],myChart:""}},mounted:function(){},methods:{updateData:function(t){var e=this;return r()(i.a.mark(function a(){var n;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(o.b)(t);case 2:"200"===(n=a.sent).data.code?(e.numData=n.data.data.map(function(t){return t.num}),e.timeData=n.data.data.map(function(t){return t.taskDate})):e.$message({type:"warning",message:n.data.message}),e.drawLine();case 5:case"end":return a.stop()}},a,e)}))()},drawLine:function(){var t=this;return r()(i.a.mark(function e(){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.myChart=t.$echarts.init(document.getElementById("inspectionPerson")),t.myChart.setOption({tooltip:{trigger:"item"},legend:{left:"center",top:"84%"},color:"#fac858",xAxis:{type:"category",data:t.timeData},yAxis:{type:"value"},series:[{data:t.numData,type:"bar",showBackground:!0,backgroundStyle:{color:"#5470c6"}}]});case 2:case"end":return e.stop()}},e,t)}))()}}},u=(a("mz+T"),a("ZrdR")),d=Object(u.a)(c,function(){var t=this.$createElement;return(this._self._c||t)("div",{staticStyle:{width:"90%",height:"360px",margin:"0 auto"},attrs:{id:"inspectionPerson"}})},[],!1,null,"6723363d",null);d.options.__file="index.vue";e.default=d.exports}}]);