chunk-1830cd6c.04609870.js 5.2 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1830cd6c"],{"2b16":function(t,n,o){"use strict";o("5574")},5574:function(t,n,o){},"6cff":function(t,n,o){"use strict";o.r(n);var e=function(){var t=this,n=t.$createElement,o=t._self._c||n;return o("div",[t.shows?o("div",{staticClass:"nav",class:{"fix-nav":t.navBarFixed},attrs:{id:"nav"}},[o("van-nav-bar",{attrs:{title:"疫苗接种","left-arrow":"","left-text":"返回"},on:{"click-left":t.onClickLeft}})],1):t._e(),t._m(0),o("div",{directives:[{name:"show",rawName:"v-show",value:t.shows1!=t.infos1,expression:"shows1 != infos1"}],staticStyle:{width:"350px",height:"540px",margin:"20px auto"},attrs:{id:"main2"}})])},i=[function(){var t=this,n=t.$createElement,o=t._self._c||n;return o("div",{staticClass:"contents"},[o("div",{staticStyle:{width:"350px",height:"300px",margin:"12px auto","border-radius":"10px"},attrs:{id:"main"}})])}],a=(o("b0c0"),o("accb")),s=o("313e"),c={data:function(){return{shows:!1,infos:[],infos1:[],shows1:"",navBarFixed:!1}},methods:{getanalysis:function(){var t=this,n=s["a"](document.getElementById("main"));this.$http.post("http://zaoquan.nxjiewei.com:8011/api/workbench/epidemic_situation/vaccination_statistics").then((function(o){console.log(o),t.infos=o.data.data;var e={backgroundColor:"#fff",borderRadius:[20,20,20,20],title:{text:"疫苗接种统计",x:"25px",y:"15px"},tooltip:{show:!0,trigger:"item"},legend:{y:"bottom",x:"center",formatter:{}},calculable:!0,series:[{name:"",type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!1,position:"center",normal:{show:!0,position:"inner",textStyle:{fontWeight:100,fontSize:14,color:"#fff"},formatter:"{d}%"}},emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"}},labelLine:{show:!1},data:[{value:t.infos.vaccination_first,name:"接种第一剂",itemStyle:{color:"#39f",shadowBlur:200,shadowColor:"rgba(0, 0, 0, 0)"}},{value:t.infos.vaccination_second,name:"接种第二剂",itemStyle:{color:"#9ad12e",shadowBlur:200,shadowColor:"rgba(0, 0, 0, 0)"}},{value:t.infos.not_vaccination,name:"未接种疫苗",Id:"2",itemStyle:{color:"red",shadowBlur:200,shadowColor:"rgba(0, 0, 0, 0.5)"}}]}]};n.setOption(e),n.on("legendselectchanged",(function(t){if("未接种疫苗"==t.name&&(window.location.href="#/zaoquan/yiqing/yiqing-weijiezhong"),"接种第一剂"==t.name){var n=t.name;window.location.href="#/zaoquan/yiqing/yiqing-diyiji?itsname=".concat(n)}})),n.on("click",(function(t){if(console.log(t.data.name),"未接种疫苗"==t.data.name&&(window.location.href="#/zaoquan/yiqing/yiqing-weijiezhong"),"接种第一剂"==t.data.name){var n=t.data.name;window.location.href="#/zaoquan/yiqing/yiqing-diyiji?itsname=".concat(n)}}))}))},getanalysis1:function(){var t=this,n=s["a"](document.getElementById("main2"));this.$http.post("http://zaoquan.nxjiewei.com:8011/api/workbench/epidemic_situation/vaccination_statistics").then((function(o){t.infos1=o.data.data.not_nat_section_list;var e=[],i=[],a=[];for(var s in t.infos1)e.push(t.infos1[s].num),i.push(t.infos1[s].section_fullname),a.push(t.infos1[s].section_id);for(var c=[],r=0;r<e.length;r++)for(var l=0;l<i.length;l++)for(var d={},f=0;f<a.length;f++)r==l&&r==f&&l==f&&(d.name=i[l],d.value=e[r],d.Id=a[f],c.push(d));var u={backgroundColor:"#fff",borderRadius:9,title:{text:"未接种疫苗部门分布",x:"25px",y:"15px"},tooltip:{show:!0,trigger:"item"},textStyle:{fontSize:10,color:"#fff"},legend:{y:"70%",x:"center"},calculable:!0,series:[{name:"",type:"pie",radius:["50%","80%"],center:["50%","200px"],label:{normal:{show:!0,position:"inner",textStyle:{fontWeight:100,fontSize:14,color:"#fff"},formatter:"{d}%"}},data:c}]};n.setOption(u),n.on("legendselectchanged",(function(t){console.log(t.name);var n=t.name;window.location.href="#/zaoquan/yiqing/yiqing-bumen?its=".concat(n)})),n.on("click",(function(t){console.log(t.data.name);var n=t.data.name;window.location.href="#/zaoquan/yiqing/yiqing-bumen?its=".concat(n)}))}))},watchScroll:function(){var t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,n=document.querySelector("#nav").offsetHeight;console.log("scrollTop=>",t," offsetTop=>",n),this.navBarFixed=t>n},onClickLeft:function(){window.history.back()}},mounted:function(){document.body.style.backgroundColor="#39f",document.body.style.borderRadius="20px",window.addEventListener("scroll",this.watchScroll),this.token=Object(a["a"])(window.location.href).token,this.tabbar=Boolean(Object(a["a"])(window.location.href).tabbar),this.shows=this.tabbar,this.getanalysis(),this.getanalysis1()},destroyed:function(){window.removeEventListener("scroll",this.watchScroll)}},r=c,l=(o("2b16"),o("2877")),d=Object(l["a"])(r,e,i,!1,null,"58d8e34a",null);n["default"]=d.exports},accb:function(t,n,o){"use strict";o.d(n,"a",(function(){return e}));o("ac1f"),o("1276"),o("fb6a"),o("841c"),o("5319");var e=function(t){var n=t?t.split("?")[1]:window.location.search.slice(1),o={};if(n){n=n.split("#")[0];for(var e=n.split("&"),i=0;i<e.length;i++){var a=e[i].split("="),s=void 0,c=a[0].replace(/\[\d*\]/,(function(t){return s=t.slice(1,-1),""})),r="undefined"===typeof a[1]||a[1];o[c]?("string"===typeof o[c]&&(o[c]=[o[c]]),"undefined"===typeof s?o[c].push(r):o[c][s]=r):o[c]=r}}return o}}}]);
  2. //# sourceMappingURL=chunk-1830cd6c.04609870.js.map