(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-650bd8b8"],{"72ef":function(t,e,a){},b1fd:function(t,e,a){"use strict";a.r(e);a("b0c0");var n=function(){var t=this,e=t._self._c;return e("div",{ref:"pageImg",staticClass:"pop-page-word"},[e("div",{staticClass:"page"},[e("h1",{staticClass:"title"},[t._v("智慧水务-水云盾用水服务公权力监督平台（"+t._s(1==t.type?"营收":"报装")+"）日报表")]),e("h5",{staticClass:"h5-title"},[e("span",[t._v("单位："+t._s(t.dataInfo.company?t.dataInfo.company:"--"))]),e("span",[t._v("报表生成时间："+t._s(t.dataInfo.generatedTime?t.dataInfo.generatedTime:"--"))]),e("span",[t._v("报表数据日期："+t._s(t.dataInfo.dataDate?t.dataInfo.dataDate:"--"))])]),e("div",{staticClass:"page-body"},[e("div",{staticClass:"data-tj"},[e("div",{staticClass:"item"},[e("p",[e("span",{on:{click:function(e){return t.changePage(3)}}},[e("b",[t._v(t._s(t.dataInfo.wramNum?t.numberToCurrencyNo(t.dataInfo.wramNum):0))])]),t._v("预警总数")])]),e("div",{staticClass:"item"},[e("p",[e("span",{on:{click:function(e){return t.changePage(4)}}},[e("b",[t._v(t._s(t.dataInfo.assignNum?t.numberToCurrencyNo(t.dataInfo.assignNum):0))])]),t._v("交办数")])]),e("div",{staticClass:"item"},[e("p",[e("span",{on:{click:function(e){return t.changePage(5)}}},[e("b",[t._v(t._s(t.dataInfo.supervisionNum?t.numberToCurrencyNo(t.dataInfo.supervisionNum):0))])]),t._v("督办数")])]),e("div",{staticClass:"item"},[e("p",[e("span",{on:{click:function(e){return t.changePage(1)}}},[e("b",[t._v(t._s(t.dataInfo.dataNum?t.numberToCurrencyNo(t.dataInfo.dataNum):0))])]),t._v("日更新数据")])]),e("div",{staticClass:"item"},[e("p",[e("span",{on:{click:function(e){return t.changePage(2)}}},[e("b",[t._v(t._s(t.dataInfo.totalNum?t.numberToCurrencyNo(t.dataInfo.totalNum):0))])]),t._v("已归集数据总量")])])]),e("div",{staticClass:"model-sub"},[e("h2",{staticClass:"sub-title"},[t._v("介入模型数： "),e("span",[t._v(t._s(t.dataInfo.modelNum?t.dataInfo.modelNum:0))])]),t.dataInfo.modelList&&t.dataInfo.modelList.length>0?e("div",{staticClass:"model-list"},t._l(t.dataInfo.modelList,(function(a,n){return e("p",{key:n,staticClass:"item"},[e("i",[t._v(t._s(n+1))]),e("span",[t._v(t._s(a.name)+" "),e("label",[t._v("( "),e("b",[t._v(t._s(a.value))]),t._v(" 条 )")])])])})),0):t._e()]),e("div",{staticClass:"es-body"},[e("div",{staticClass:"item"},[e("h3",[t._v("预警类型结果")]),e("a-spin",{attrs:{spinning:t.spinning}},[e("div",{ref:"es_sj",staticClass:"echars",style:{height:"382px"},attrs:{id:"YJLXBB"}})])],1),e("div",{staticClass:"item"},[e("h3",[t._v("区域比例")]),e("a-spin",{attrs:{spinning:t.spinning1}},[e("div",{ref:"es_sj1",staticClass:"echars",style:{height:"382px"},attrs:{id:"QYBL"}})])],1)])])])])},s=[],i=a("c7eb"),r=a("1da1"),o=(a("d81d"),a("313e")),c=a.n(o),u=a("c0e9"),p=a.n(u),d=a("1ac1"),l=a("12df"),f={name:"reportForm",components:{},props:["type","selectDate"],data:function(){return{echarts:c.a,jyjlxbbOption:d["jyjlxbbOption"],qyblbbOption:d["qyblbbOption"],spinning:!0,spinning1:!0,dataInfo:{company:""}}},computed:{},mounted:function(){},watch:{type:function(t,e){var a=this;return Object(r["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,a.getData();case 2:case"end":return t.stop()}}),t)})))()}},created:function(){var t=this;return Object(r["a"])(Object(i["a"])().mark((function e(){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.getData();case 2:case"end":return e.stop()}}),e)})))()},methods:{changePage:function(t){1===this.type?1===t?this.$router.push({path:"/sjgj/ssys"}):2===t?this.$router.push({path:"/sjgj/ys"}):3===t?this.$router.push({path:"/sjcj/yd/sf"}):4===t?this.$router.push({path:"/jbcj/sfzs"}):5===t&&this.$router.push({path:"/dbcj/sfzs"}):1===t?this.$router.push({path:"/sjgj/ssbz"}):2===t?this.$router.push({path:"/sjgj/bz"}):3===t?this.$router.push({path:"/sjcj/yd/lh"}):4===t?this.$router.push({path:"/jbcj/lhxx"}):5===t&&this.$router.push({path:"/dbcj/lhxx"})},downLoad:function(){var t=this;return p()(this.$refs.pageImg,{backgroundColor:null,dpi:192,scale:2,useCORS:!0}).then((function(e){var a=e.toDataURL("image/png"),n=document.createElement("a");n.href=a,n.download="".concat(1==t.type?"营收报表"+t.selectDate:"报装报表"+t.selectDate),n.click()}))},getData:function(){var t=this;return Object(r["a"])(Object(i["a"])().mark((function e(){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.spinning=!0,t.spinning1=!0,e.next=4,Object(l["HomeDayBz"])({source:1==t.type?"营收":"报装",statementTime:t.selectDate?t.selectDate:""}).then(function(){var e=Object(r["a"])(Object(i["a"])().mark((function e(a){return Object(i["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(200!==a.code){e.next=6;break}return t.dataInfo=a.data,e.next=4,t.xsnjCountHandle();case 4:return e.next=6,t.xsnjCountHandle1();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e)})))()},getColor:function(t){var e;return e="红色"==t?"#FF6060":"黄色"==t?"#FFBC51":"#30B2FF",e},xsnjCountHandle:function(t){var e=this;return Object(r["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:setTimeout((function(){e.spinning=!1,e.dataInfo.gradeList&&e.dataInfo.gradeList.length>0?e.jyjlxbbOption.series[0].data=e.dataInfo.gradeList.map((function(t){return{name:t.name,value:t.value?t.value:0,itemStyle:{color:e.getColor(t.name)}}})):e.jyjlxbbOption.series[0].data=[{value:0,name:"红色",itemStyle:{color:"#FF6060"}},{value:0,name:"黄色",itemStyle:{color:"#FFBC51"}},{value:0,name:"蓝色",itemStyle:{color:"#30B2FF"}}];var t=e.echarts.init(document.getElementById("YJLXBB"));t.setOption(e.jyjlxbbOption)}),300);case 1:case"end":return t.stop()}}),t)})))()},xsnjCountHandle1:function(t){var e=this;return Object(r["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:setTimeout((function(){e.spinning1=!1,e.dataInfo.countyList?(e.qyblbbOption.xAxis[0].data=e.dataInfo.countyList.map((function(t){return t.name})),e.qyblbbOption.series[0].data=e.dataInfo.countyList.map((function(t){return t.value}))):(e.qyblbbOption.xAxis[0].data=[],e.qyblbbOption.series[0].data=[]);var t=e.echarts.init(document.getElementById("QYBL"));t.setOption(e.qyblbbOption)}),200);case 1:case"end":return t.stop()}}),t)})))()},close:function(){this.$emit("close")}}},h=f,b=(a("b897"),a("2877")),m=Object(b["a"])(h,n,s,!1,null,"355f9b68",null);e["default"]=m.exports},b897:function(t,e,a){"use strict";a("72ef")}}]);