1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0be04058"],{"0024":function(e,t,r){"use strict";r("a6c3")},"084b":function(e,t,r){"use strict";r("8827")},1148:function(e,t,r){"use strict";var n=r("a691"),a=r("1d80");e.exports=function(e){var t=String(a(this)),r="",i=n(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(r+=t);return r}},"408a":function(e,t,r){var n=r("c6b6");e.exports=function(e){if("number"!=typeof e&&"Number"!=n(e))throw TypeError("Incorrect invocation");return+e}},"43f4":function(e,t,r){"use strict";var n=r("7a23"),a=Object(n["gb"])("data-v-41f4e5ae");Object(n["H"])("data-v-41f4e5ae");var i={ref:"echartD",style:{width:"100%",height:"100%"}};Object(n["F"])();var o=a((function(e,t,r,a,o,s){return Object(n["E"])(),Object(n["j"])("div",i,null,512)})),s=r("313e"),c={props:{dataMap:{type:Array,default:function(){return[]}},color:{type:String,default:function(){return"rgb(0,254,160)"}},borderRadius:{type:Array,default:function(){return[0,0,0,0]}}},data:function(){return{}},watch:{dataMap:function(e){this.getData(e)}},mounted:function(){this.getData()},methods:{getData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataMap;document.body.clientWidth>1940?s["b"](this.$refs.echartD).setOption({grid:{top:20,left:30,right:30,bottom:30},xAxis:{type:"category",data:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],axisLabel:{color:"#FFFFFF",fontSize:"25"},axisTick:{show:!1}},tooltip:{trigger:"axis",textStyle:{color:"#FFF",fontSize:25},confine:!0,backgroundColor:"rgba(11, 12, 72, 0.8)",borderColor:"rgba(11, 12, 72, 0.4)",position:"bottom"},yAxis:{axisTick:{show:!1},type:"value",axisLabel:{color:"#FFFFFF",fontSize:"25"},splitLine:{lineStyle:{color:"rgba(255,255,255,.4)"}}},series:[{name:"当前",type:"bar",barWidth:15,itemStyle:{color:this.color,borderRadius:this.borderRadius},data:e[0]},{name:"年平均值",data:e[1],type:"line"},{name:"总年平均值",data:e[2],type:"line"}]}):s["b"](this.$refs.echartD).setOption({grid:{top:20,left:30,right:30,bottom:30},xAxis:{type:"category",data:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],axisLabel:{color:"#FFFFFF"},axisTick:{show:!1}},tooltip:{trigger:"axis",textStyle:{color:"#FFF"},confine:!0,backgroundColor:"rgba(11, 12, 72, 0.8)",borderColor:"rgba(11, 12, 72, 0.4)",position:"bottom"},yAxis:{axisTick:{show:!1},type:"value",axisLabel:{color:"#FFFFFF"},splitLine:{lineStyle:{color:"rgba(255,255,255,.4)"}}},series:[{name:"当前",type:"bar",barWidth:15,itemStyle:{color:this.color,borderRadius:this.borderRadius},data:e[0]},{name:"年平均值",data:e[1],type:"line"},{name:"总年平均值",data:e[2],type:"line"}]})},resize:function(){s["b"](this.$refs.echartD).resize()}}},l=r("6b0d"),u=r.n(l);const f=u()(c,[["render",o],["__scopeId","data-v-41f4e5ae"]]);t["a"]=f},"7db0":function(e,t,r){"use strict";var n=r("23e7"),a=r("b727").find,i=r("44d2"),o="find",s=!0;o in[]&&Array(1)[o]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i(o)},8827:function(e,t,r){},a344:function(e,t,r){"use strict";r("159b");t["a"]={data:function(){return{resizeTime:!0,windowWidth:8448,isVsFirePie:!1,distance:300,isVsTab:!1,leftBtn:!0,rightBtn:!0,current:1,size:20}},watch:{"$store.state.typeTime":function(e){this.getData&&this.getData(e)},"$store.state.timeList":function(e){this.getData&&this.getData(e)}},mounted:function(){},methods:{resizeTimeActions:function(e){var t=this;this.resizeTime&&(this.resizeTime=!1,setTimeout((function(){e.forEach((function(e){e&&e.resize()})),t.resizeTime=!0,t.windowWidth=document.documentElement.clientWidth+document.documentElement.clientHeight}),300))},vsClick:function(e){var t=this;this[e]=!this[e],"isVsFirePie"===e&&this.$nextTick((function(){t.$refs.firePie1&&t.$refs.firePie1.resize(),t.$refs.firePie2&&t.$refs.firePie2.resize()}))},leftBtnClick:function(){this.leftBtn=!this.leftBtn},rightBtnClick:function(){this.rightBtn=!this.rightBtn}},unmount:function(){window.removeEventListener("resize",this.resizeTimeActions,!0)}}},a6c3:function(e,t,r){},b680:function(e,t,r){"use strict";var n=r("23e7"),a=r("a691"),i=r("408a"),o=r("1148"),s=r("d039"),c=1..toFixed,l=Math.floor,u=function(e,t,r){return 0===t?r:t%2===1?u(e,t-1,r*e):u(e*e,t/2,r)},f=function(e){var t=0,r=e;while(r>=4096)t+=12,r/=4096;while(r>=2)t+=1,r/=2;return t},d=function(e,t,r){var n=-1,a=r;while(++n<6)a+=t*e[n],e[n]=a%1e7,a=l(a/1e7)},b=function(e,t){var r=6,n=0;while(--r>=0)n+=e[r],e[r]=l(n/t),n=n%t*1e7},h=function(e){var t=6,r="";while(--t>=0)if(""!==r||0===t||0!==e[t]){var n=String(e[t]);r=""===r?n:r+o.call("0",7-n.length)+n}return r},p=c&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){c.call({})}));n({target:"Number",proto:!0,forced:p},{toFixed:function(e){var t,r,n,s,c=i(this),l=a(e),p=[0,0,0,0,0,0],m="",g="0";if(l<0||l>20)throw RangeError("Incorrect fraction digits");if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(m="-",c=-c),c>1e-21)if(t=f(c*u(2,69,1))-69,r=t<0?c*u(2,-t,1):c/u(2,t,1),r*=4503599627370496,t=52-t,t>0){d(p,0,r),n=l;while(n>=7)d(p,1e7,0),n-=7;d(p,u(10,n,1),0),n=t-1;while(n>=23)b(p,1<<23),n-=23;b(p,1<<n),d(p,1,1),b(p,2),g=h(p)}else d(p,0,r),d(p,1<<-t,0),g=h(p)+o.call("0",l);return l>0?(s=g.length,g=m+(s<=l?"0."+o.call("0",l-s)+g:g.slice(0,s-l)+"."+g.slice(s-l))):g=m+g,g}})},d317:function(e,t,r){"use strict";r.r(t);r("b0c0");var n=r("7a23"),a=Object(n["gb"])("data-v-65323b7c");Object(n["H"])("data-v-65323b7c");var i=Object(n["n"])("h4",null,"火灾趋势图",-1),o=Object(n["m"])("近一年"),s=Object(n["m"])("近三年"),c=Object(n["m"])("近五年"),l=Object(n["n"])("h4",null,"火灾原因占比",-1),u={class:"line"},f={class:"flexBoxE"},d=Object(n["m"])("一级火灾"),b=Object(n["m"])("二级火灾"),h=Object(n["m"])("三级火灾"),p=Object(n["m"])("四级火灾"),m={class:"rightContent"},g=Object(n["n"])("h4",null,"详细火灾情况",-1),O=Object(n["n"])("h4",null,"火灾情况分析",-1);Object(n["F"])();var j=a((function(e,t,r,j,y,F){var w=Object(n["N"])("el-button"),v=Object(n["N"])("el-row"),x=Object(n["N"])("el-option"),C=Object(n["N"])("el-select"),T=Object(n["N"])("el-form-item"),L=Object(n["N"])("el-form"),B=Object(n["N"])("category-line"),S=Object(n["N"])("el-col"),_=Object(n["N"])("fire-pie"),A=Object(n["N"])("el-table-column"),R=Object(n["N"])("el-table"),$=Object(n["N"])("scatter");return Object(n["E"])(),Object(n["j"])(v,{class:"contentBox"},{default:a((function(){return[Object(n["n"])(n["e"],{name:"el-fade-in-linear"},{default:a((function(){return[Object(n["db"])(Object(n["n"])(S,{class:"leftBox"},{default:a((function(){return[Object(n["n"])(S,{class:"leftTop"},{default:a((function(){return[i,Object(n["n"])(v,{class:"leftTopContent"},{default:a((function(){return[Object(n["n"])(v,{class:"selectBar"},{default:a((function(){return[Object(n["n"])(v,null,{default:a((function(){return[Object(n["n"])(w,{size:"mini",onClick:t[1]||(t[1]=function(e){return F.searchTime(1)}),class:{btnClick:1===y.timeArea}},{default:a((function(){return[o]})),_:1},8,["class"]),Object(n["n"])(w,{size:"mini",onClick:t[2]||(t[2]=function(e){return F.searchTime(3)}),class:{btnClick:3===y.timeArea}},{default:a((function(){return[s]})),_:1},8,["class"]),Object(n["n"])(w,{size:"mini",onClick:t[3]||(t[3]=function(e){return F.searchTime(5)}),class:{btnClick:5===y.timeArea}},{default:a((function(){return[c]})),_:1},8,["class"])]})),_:1}),Object(n["n"])(L,{inline:!0,size:"mini",model:y.barForm},{default:a((function(){return[Object(n["n"])(T,{label:""},{default:a((function(){return[Object(n["n"])(C,{modelValue:y.barForm.address,"onUpdate:modelValue":t[4]||(t[4]=function(e){return y.barForm.address=e}),onChange:t[5]||(t[5]=function(e){return F.getTrend()}),filterable:"",clearable:"",placeholder:"街道"},{default:a((function(){return[(Object(n["E"])(!0),Object(n["j"])(n["b"],null,Object(n["L"])(y.fireAddressList,(function(e,t){return Object(n["E"])(),Object(n["j"])(x,{label:e,value:e,key:t},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])]})),_:1}),Object(n["n"])(T,{label:""},{default:a((function(){return[Object(n["n"])(C,{onChange:t[6]||(t[6]=function(e){return F.getTrend()}),modelValue:y.barForm.fireType,"onUpdate:modelValue":t[7]||(t[7]=function(e){return y.barForm.fireType=e}),placeholder:"火灾类型",filterable:"",clearable:""},{default:a((function(){return[(Object(n["E"])(!0),Object(n["j"])(n["b"],null,Object(n["L"])(y.fireTypeList,(function(e,t){return Object(n["E"])(),Object(n["j"])(x,{value:e,key:t},null,8,["value"])})),128))]})),_:1},8,["modelValue"])]})),_:1})]})),_:1},8,["model"])]})),_:1}),Object(n["n"])(v,{class:"fireBar"},{default:a((function(){return[Object(n["n"])(B,{ref:"categoryLine",dataMap:y.timeData},null,8,["dataMap"])]})),_:1})]})),_:1})]})),_:1}),Object(n["n"])(S,{class:"leftBot"},{default:a((function(){return[l,Object(n["n"])(v,{class:"threeBox"},{default:a((function(){return[Object(n["n"])("div",{class:"flexBoxE",style:{"padding-top":e.isVsFirePie?"0.75rem":0}},[Object(n["db"])(Object(n["n"])(L,{inline:!0,size:"mini",model:y.fireCauseRatioObj},{default:a((function(){return[Object(n["n"])(T,{label:"街道:"},{default:a((function(){return[Object(n["n"])(C,{onChange:t[8]||(t[8]=function(e){return F.getFireCause(1)}),modelValue:y.fireCauseRatioObj.address,"onUpdate:modelValue":t[9]||(t[9]=function(e){return y.fireCauseRatioObj.address=e}),placeholder:"选择街道",filterable:"",clearable:""},{default:a((function(){return[(Object(n["E"])(!0),Object(n["j"])(n["b"],null,Object(n["L"])(y.fireAddressList,(function(e){return Object(n["E"])(),Object(n["j"])(x,{label:e,value:e,key:e},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])]})),_:1})]})),_:1},8,["model"]),[[n["Z"],e.isVsFirePie]]),Object(n["n"])(_,{ref:"firePie1",dataMap:y.fireCauseRatioList,isVs:e.isVsFirePie,radius:e.isVsFirePie?80:120},null,8,["dataMap","isVs","radius"])],4),Object(n["db"])(Object(n["n"])("div",u,null,512),[[n["Z"],e.isVsFirePie]]),Object(n["db"])(Object(n["n"])("div",f,[Object(n["db"])(Object(n["n"])(L,{inline:!0,size:"mini",model:y.fireCauseRatioObj},{default:a((function(){return[Object(n["n"])(T,{label:"街道:"},{default:a((function(){return[Object(n["n"])(C,{onChange:t[10]||(t[10]=function(e){return F.getFireCause(2)}),modelValue:y.fireCauseRatioObj.address2,"onUpdate:modelValue":t[11]||(t[11]=function(e){return y.fireCauseRatioObj.address2=e}),placeholder:"选择街道",filterable:"",clearable:""},{default:a((function(){return[(Object(n["E"])(!0),Object(n["j"])(n["b"],null,Object(n["L"])(y.fireAddressList,(function(e){return Object(n["E"])(),Object(n["j"])(x,{label:e,value:e,key:e},null,8,["label","value"])})),128))]})),_:1},8,["modelValue"])]})),_:1})]})),_:1},8,["model"]),[[n["Z"],e.isVsFirePie]]),Object(n["n"])(_,{style:{flex:"1"},ref:"firePie2",dataMap:y.fireCauseRatioList2,isVs:e.isVsFirePie,radius:(e.isVsFirePie,80)},null,8,["dataMap","isVs","radius"])],512),[[n["Z"],e.isVsFirePie]]),Object(n["n"])("div",{class:"VS",onClick:t[12]||(t[12]=function(t){return e.vsClick("isVsFirePie")}),style:{"font-size":e.isVsFirePie?".225rem":".25rem"}},Object(n["R"])(e.isVsFirePie?"返回":"VS"),5)]})),_:1})]})),_:1})]})),_:1},512),[[n["Z"],e.leftBtn]])]})),_:1}),Object(n["n"])(n["e"],{name:"el-fade-in-linear"},{default:a((function(){return[Object(n["n"])(S,{class:"centerBox",style:{"max-width":e.leftBtn&&e.rightBtn?"8rem":e.leftBtn||e.rightBtn?e.leftBtn||e.rightBtn?"16rem":"8rem":"100%"}},{default:a((function(){return[Object(n["n"])(v,{class:"leftBtn btnW",onClick:t[13]||(t[13]=function(t){return e.leftBtnClick()})},{default:a((function(){return[Object(n["n"])("i",{class:e.leftBtn?"el-icon-arrow-left":"el-icon-arrow-right"},null,2)]})),_:1}),Object(n["n"])(v,{class:"centerContent",id:"mapF"}),Object(n["n"])(v,{class:"rightBtn btnW",onClick:t[14]||(t[14]=function(t){return e.rightBtnClick()})},{default:a((function(){return[Object(n["n"])("i",{class:e.rightBtn?"el-icon-arrow-right":"el-icon-arrow-left"},null,2)]})),_:1}),Object(n["n"])(v,{class:"mapTips"},{default:a((function(){return[Object(n["n"])(S,{class:"greenImage"},{default:a((function(){return[d]})),_:1}),Object(n["n"])(S,{class:"blueImage"},{default:a((function(){return[b]})),_:1}),Object(n["n"])(S,{class:"yellowImage"},{default:a((function(){return[h]})),_:1}),Object(n["n"])(S,{class:"redImage"},{default:a((function(){return[p]})),_:1})]})),_:1})]})),_:1},8,["style"])]})),_:1}),Object(n["n"])(n["e"],{name:"el-fade-in-linear"},{default:a((function(){return[Object(n["db"])(Object(n["n"])(S,{class:"rightBox"},{default:a((function(){return[Object(n["n"])("div",m,[Object(n["n"])(S,{class:"rightTop"},{default:a((function(){return[g,Object(n["n"])(R,{ref:"seTable",key:e.windowWidth,data:y.tableData,class:"transparentTableRow",height:"100%","row-style":{height:".425rem"},"cell-style":"height:.425rem;box-sizing: border-box;",style:{width:"100%",margin:"0 auto"},"cell-class-name":F.tableRowClassName},{default:a((function(){return[(Object(n["E"])(!0),Object(n["j"])(n["b"],null,Object(n["L"])(y.headerData,(function(e){return Object(n["E"])(),Object(n["j"])(A,{"show-overflow-tooltip":"","min-width":"20",key:e.prop,prop:e.prop,align:"center",label:e.name},null,8,["prop","label"])})),128))]})),_:1},8,["data","row-style","cell-class-name"])]})),_:1}),Object(n["n"])(S,{class:"rightBot"},{default:a((function(){return[O,Object(n["n"])($,{ref:"scatter",dataMap:y.fireBubbleList},null,8,["dataMap"])]})),_:1})])]})),_:1},512),[[n["Z"],e.rightBtn]])]})),_:1})]})),_:1})})),y=r("2909"),F=r("1da1"),w=(r("d81d"),r("96cf"),r("a344")),v=r("43f4"),x={ref:"echartD",style:{width:"100%",height:"100%"}};function C(e,t,r,a,i,o){return Object(n["E"])(),Object(n["j"])("div",x,null,512)}r("a9e3"),r("7db0");var T=r("313e"),L={props:{dataMap:{type:Array,default:function(){return[]}},isVs:{type:Boolean,default:function(){return!1}},radius:{type:Number,default:function(){return 120}},color:{type:Array,default:function(){return["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"]}}},data:function(){return{}},watch:{dataMap:function(e){this.getData(e)},isVs:function(){this.getData()}},mounted:function(){this.getData()},methods:{getData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dataMap;document.body.clientWidth>1940?T["b"](this.$refs.echartD).setOption({color:this.color,tooltip:{confine:!0,trigger:"item",formatter:function(e){return"</span>".concat(e.name+":"+parseInt(100*e.value)/100+"%")}},legend:{bottom:0,textStyle:{show:!0,color:"#fff",fontSize:20,width:this.isVs?0:85,overflow:"truncate"},tooltip:{show:!0,confine:!0,formatter:function(t){return"</span>".concat(t.name+":"+parseInt(100*e.dataMap.find((function(e){return e.name===t.name})).value)/100+"%")}}},series:[{type:"pie",top:-50,left:0,radius:["40%","60%"],data:t,label:{position:"inner",color:"#FFF",fontSize:12,width:200,overflow:"truncate",formatter:function(e){return"".concat(parseInt(100*e.value)/100+"%")}},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}):T["b"](this.$refs.echartD).setOption({color:this.color,tooltip:{confine:!0,trigger:"item",formatter:function(e){return"</span>".concat(e.name+":"+parseInt(100*e.value)/100+"%")}},legend:{bottom:0,textStyle:{show:!0,color:"#fff",fontSize:12,width:this.isVs?0:85,overflow:"truncate"},tooltip:{show:!0,confine:!0,formatter:function(t){return"</span>".concat(t.name+":"+parseInt(100*e.dataMap.find((function(e){return e.name===t.name})).value)/100+"%")}}},series:[{type:"pie",top:-80,left:0,radius:["20%","40%"],data:t,label:{position:"inner",color:"#FFF",fontSize:12,width:200,overflow:"truncate",formatter:function(e){return"".concat(parseInt(100*e.value)/100+"%")}},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})},resize:function(){T["b"](this.$refs.echartD).resize()}}},B=(r("084b"),r("6b0d")),S=r.n(B);const _=S()(L,[["render",C]]);var A=_,R=Object(n["gb"])("data-v-ae6839d0");Object(n["H"])("data-v-ae6839d0");var $={ref:"echartD",style:{width:"100%",height:"100%"}};Object(n["F"])();var z=R((function(e,t,r,a,i,o){return Object(n["E"])(),Object(n["j"])("div",$,null,512)})),k=(r("b680"),r("99af"),{props:{dataMap:{type:Array,default:function(){return[]}},name:{type:String,default:function(){return""}}},data:function(){return{data:[]}},watch:{dataMap:function(e){var t=[];t[3]=e.map((function(e){return[e.fireCount.toFixed(2),0==e.fireCount?0:(e.fireArea/e.fireCount).toFixed(2),e.fireArea.toFixed(2),e.deathToll,e.region]})),t[2]=e.map((function(e){return[e.fireCount.toFixed(2),0==e.fireCount?0:(e.fireArea/e.fireCount).toFixed(2),e.fireArea.toFixed(2),e.deathToll,e.region]})),t[1]=e.map((function(e){return[e.fireCount.toFixed(2),0==e.fireCount?0:(e.fireArea/e.fireCount).toFixed(2),e.fireArea.toFixed(2),e.deathToll,e.region]})),t[0]=e.map((function(e){return[]})),this.data=t,this.getData(t)}},mounted:function(){this.getData()},methods:{getData:function(){var e=this.data;T["b"](this.$refs.echartD).setOption({grid:{top:40,left:40,right:30,bottom:30},tooltip:{textStyle:{color:"#FFF"},confine:!0,formatter:function(e){return"街道:".concat(e.data[4],"<br> 死亡人数:").concat(e.data[3],"<br> 过火面积:").concat(e.data[2],"<br> 火灾数量:").concat(e.data[0])},backgroundColor:"rgba(11, 12, 72, 0.8)",borderColor:"rgba(11, 12, 72, 0.4)",position:"top"},xAxis:{name:"",type:"log",scale:!0,axisLabel:{color:"#FFFFFF"},axisLine:{show:!1,lineStyle:{color:"#6B9DD7"}},splitLine:{show:!1},axisTick:{show:!1}},yAxis:{name:"过火面积(m²)/ 火灾数量",scale:!0,axisTick:{show:!1},splitLine:{lineStyle:{color:"rgba(255,255,255,.4)"}},axisLabel:{color:"#FFFFFF"},axisLine:{show:!1,lineStyle:{color:"#6B9DD7"}},nameGap:20,nameTextStyle:{color:"#FFFFFF",align:"left",fontWeight:"bold",fontSize:14}},series:[{name:"火灾数",data:e[1],type:"scatter",symbolSize:function(e){return Math.sqrt(e[0])+20},emphasis:{focus:"series",label:{show:!0,formatter:function(e){return e.data[4]},position:"top"}},itemStyle:{shadowBlur:10,shadowColor:"rgba(120, 36, 50, 0.5)",shadowOffsetY:5,color:new T["a"].RadialGradient(.4,.3,1,[{offset:0,color:"rgb(251, 118, 123)"},{offset:1,color:"rgb(204, 46, 72)"}])}},{name:"过火面积",data:e[2],type:"scatter",symbolSize:function(e){return Math.sqrt(e[0])+20},emphasis:{focus:"series",label:{show:!0,formatter:function(e){return e.data[4]},position:"top"}},itemStyle:{shadowBlur:10,shadowColor:"rgba(120, 36, 50, 0.5)",shadowOffsetY:5,color:new T["a"].RadialGradient(.4,.3,1,[{offset:0,color:"rgb(251, 118, 123)"},{offset:1,color:"rgb(204, 46, 72)"}])}},{name:"死亡人数",data:e[3],type:"scatter",symbolSize:function(e){return Math.sqrt(e[0])+20},emphasis:{focus:"series",label:{show:!0,formatter:function(e){return e.data[4]},position:"top"}},itemStyle:{shadowBlur:10,shadowColor:"rgba(120, 36, 50, 0.5)",shadowOffsetY:5,color:new T["a"].RadialGradient(.4,.3,1,[{offset:0,color:"rgb(251, 118, 123)"},{offset:1,color:"rgb(204, 46, 72)"}])}}]})},resize:function(){T["b"](this.$refs.echartD).resize()}}});const D=S()(k,[["render",z],["__scopeId","data-v-ae6839d0"]]);var V=D,E=r("311d"),P={components:{categoryLine:v["a"],firePie:A,scatter:V},mixins:[w["a"],E["a"]],data:function(){return{box:null,tableData:[{address:"x街道45号",burnedArea:"2",propertyLoss:"5",deathToll:"0",nonFatal:"1",disasterHome:"2",nature:"居民",fireCause:"家电",fireGoodsOne:"电视机"},{address:"x街道45号",burnedArea:"2",propertyLoss:"5",deathToll:"0",nonFatal:"1",disasterHome:"2",nature:"居民",fireCause:"家电",fireGoodsOne:"电视机"},{address:"x街道45号",burnedArea:"2",propertyLoss:"5",deathToll:"0",nonFatal:"1",disasterHome:"2",nature:"居民",fireCause:"家电",fireGoodsOne:"电视机"},{address:"x街道45号",burnedArea:"2",propertyLoss:"5",deathToll:"0",nonFatal:"1",disasterHome:"2",nature:"居民",fireCause:"家电",fireGoodsOne:"电视机"},{address:"x街道45号",burnedArea:"2",propertyLoss:"5",deathToll:"0",nonFatal:"1",disasterHome:"2",nature:"居民",fireCause:"家电",fireGoodsOne:"电视机"},{address:"x街道45号",burnedArea:"2",propertyLoss:"5",deathToll:"0",nonFatal:"1",disasterHome:"2",nature:"居民",fireCause:"家电",fireGoodsOne:"电视机"},{address:"x街道45号",burnedArea:"2",propertyLoss:"5",deathToll:"0",nonFatal:"1",disasterHome:"2",nature:"居民",fireCause:"家电",fireGoodsOne:"电视机"},{address:"x街道45号",burnedArea:"2",propertyLoss:"5",deathToll:"0",nonFatal:"1",disasterHome:"2",nature:"居民",fireCause:"家电",fireGoodsOne:"电视机"}],headerData:[{prop:"address",name:"火灾地址"},{prop:"burnedArea",name:"过火面积(m²)"},{prop:"propertyLoss",name:"财产损失(万元)"},{prop:"deathToll",name:"死亡人数(人)"},{prop:"nonFatal",name:"受伤人数(人)"},{prop:"disasterHome",name:"受灾户(户)"},{prop:"nature",name:"场所性质"},{prop:"fireCause",name:"火灾原因"},{prop:"fireGoodsOne",name:"起火物"}],fireAddressList:[],fireTypeList:[],fireCauseRatioList:[],fireCauseRatioList2:[],fireCauseRatioObj:{address:"",address2:""},tabObj:{address:"",address2:""},timeData:[],fireBubbleList:[],barForm:{fireType:"",address:""},timeArea:1,isScroll:!0}},created:function(){this.getData()},watch:{isVsFirePie:function(e){e||(this.fireCauseRatioObj.address="",this.getFireCause(1))}},mounted:function(){var e=this;this.box=this.$refs.seTable.$el.childNodes[2],this.box.addEventListener("scroll",(function(t){var r=t.target.scrollTop,n=t.target.clientHeight,a=t.target.scrollHeight;a-(r+n)<=20&&e.isScroll&&(e.isScroll=!1,++e.current,e.getFireStatis())})),window.addEventListener("resize",(function(){return e.resizeTimeActions([e.$refs.categoryLine,e.$refs.firePie1,e.$refs.firePie2,e.$refs.scatter])}),!0),this.initMap()},methods:{load:function(){},tableRowClassName:function(e){var t=e.row,r=e.column;if("deathToll"===r.property&&t.deathToll>0)return"death"},getData:function(){var e=this;return Object(F["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.all([e.$axios.get(e.$api.fire.fireType),e.$axios.get(e.$api.fire.fireAddress)]);case 2:r=t.sent,r[0]&&(e.fireTypeList=r[0].data),r[1]&&(e.fireAddressList=r[1].data),e.getTrend(),e.getFireCause(),e.getFireStatis(),e.policeInfo();case 9:case"end":return t.stop()}}),t)})))()},policeInfo:function(){var e=this;return Object(F["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.get(e.$api.fire.fireBubble+"?"+e.$qs.stringify({unitId:"",fireType:"",startTime:e.$store.state.timeList[0]||"",endTime:e.$store.state.timeList[1]||""}));case 2:r=t.sent,r&&(e.fireBubbleList=r.data);case 6:case"end":return t.stop()}}),t)})))()},getTrend:function(){var e=this;return Object(F["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.get(e.$api.fire.trendQuery+"?"+e.$qs.stringify({address:e.barForm.address,fireType:e.barForm.fireType,startTime:"2021-01-01 00:00:00",endTime:"2021-12-06 00:00:00"}));case 2:r=t.sent,r&&(e.timeData=r.data);case 5:case"end":return t.stop()}}),t)})))()},getFireCause:function(e){var t=this;return Object(F["a"])(regeneratorRuntime.mark((function r(){var n,a;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=3,t.$axios.get(t.$api.fire.fireCauseRatio+"?"+t.$qs.stringify({startTime:t.$store.state.timeList[0]||"",endTime:t.$store.state.timeList[1]||"",address:1===e?t.fireCauseRatioObj.address:2===e?t.fireCauseRatioObj.address2:""}));case 3:n=r.sent,n&&(a=n.data.map((function(e){return{name:e.fireType||" ",value:e.radio?100*e.radio:0,itemStyle:{opacity:.9}}})),1===e?t.fireCauseRatioList=a:(2===e||(t.fireCauseRatioList=a),t.fireCauseRatioList2=a));case 6:case"end":return r.stop()}}),r)})))()},getFireStatis:function(){var e=this;return Object(F["a"])(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=3,e.$axios.get(e.$api.fire.fireStatistics+"?"+e.$qs.stringify({current:e.current,size:e.size,startTime:"2021-01-01 00:00:00",endTime:"2021-12-06 00:00:00"}));case 3:r=t.sent,r&&(e.isScroll=!0,(n=e.tableData).push.apply(n,Object(y["a"])(r.data.records.map((function(e){return e.propertyLoss=e.propertyLoss&&e.propertyLoss/1e4||e.propertyLoss,e})))));case 6:case"end":return t.stop()}}),t)})))()},searchTime:function(e){e!==this.timeArea&&(this.timeArea=e,this.getTrend())}}};r("0024");const M=S()(P,[["render",j],["__scopeId","data-v-65323b7c"]]);t["default"]=M}}]);
|