chunk-ad68507c.0e8170ae.js 4.1 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ad68507c"],{"025a":function(t,i,e){"use strict";e("a890")},"6cff":function(t,i,e){"use strict";e.r(i);var o=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",[t.shows?e("div",[e("van-nav-bar",{attrs:{title:"疫苗接种","left-arrow":"","left-text":"返回"},on:{"click-left":t.onClickLeft}})],1):t._e(),t._m(0),e("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"}})])},n=[function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"contents"},[e("div",{staticStyle:{width:"350px",height:"300px",margin:"0 auto","border-radius":"10px"},attrs:{id:"main"}})])}],a=e("accb"),s=e("313e"),r={data:function(){return{shows:!0,infos:[],infos1:[],shows1:""}},methods:{getanalysis:function(){var t=this,i=s["a"](document.getElementById("main"));this.$http.post("http://zaoquan.nxjiewei.com:8011/api/workbench/epidemic_situation/vaccination_statistics").then((function(e){console.log(e),t.infos=e.data.data;var o={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)"}}]}]};i.setOption(o),i.on("click",(function(t){window.location.href="#/zaoquan/yiqing/yiqing-weijiezhong"}))}))},getanalysis1:function(){var t=this,i=s["a"](document.getElementById("main2"));this.$http.post("http://zaoquan.nxjiewei.com:8011/api/workbench/epidemic_situation/vaccination_statistics").then((function(e){t.infos1=e.data.data.not_nat_section_list;var o=[],n=[],a=[];for(var s in t.infos1)o.push(t.infos1[s].num),n.push(t.infos1[s].section_fullname),a.push(t.infos1[s].section_id);for(var r=[],c=0;c<o.length;c++)for(var l=0;l<n.length;l++)for(var f={},d=0;d<a.length;d++)c==l&&c==d&&l==d&&(f.name=n[l],f.value=o[c],f.Id=a[d],r.push(f));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:r}]};i.setOption(u),i.on("click",(function(t){var i=t.data.Id;window.location.href="#/zaoquan/yiqing/yiqing-weijiezhong?its=".concat(i)}))}))},onClickLeft:function(){window.history.back()}},mounted:function(){document.body.style.backgroundColor="#39f",document.body.style.borderRadius="20px",this.token=Object(a["a"])(window.location.href).token,this.getanalysis(),this.getanalysis1()}},c=r,l=(e("025a"),e("2877")),f=Object(l["a"])(c,o,n,!1,null,"8078f2b0",null);i["default"]=f.exports},a890:function(t,i,e){},accb:function(t,i,e){"use strict";e.d(i,"a",(function(){return o}));e("ac1f"),e("1276"),e("fb6a"),e("841c"),e("5319");var o=function(t){var i=t?t.split("?")[1]:window.location.search.slice(1),e={};if(i){i=i.split("#")[0];for(var o=i.split("&"),n=0;n<o.length;n++){var a=o[n].split("="),s=void 0,r=a[0].replace(/\[\d*\]/,(function(t){return s=t.slice(1,-1),""})),c="undefined"===typeof a[1]||a[1];e[r]?("string"===typeof e[r]&&(e[r]=[e[r]]),"undefined"===typeof s?e[r].push(c):e[r][s]=c):e[r]=c}}return e}}}]);
  2. //# sourceMappingURL=chunk-ad68507c.0e8170ae.js.map