chunk-c05ab27a.12961fc5.js 3.9 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c05ab27a"],{"0905":function(t,e,o){},"64c9":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;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(),o("div",{staticStyle:{width:"350px",height:"320px",margin:"12px auto","border-radius":"10px"},attrs:{id:"main"}}),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=[],a=o("accb"),s=o("313e"),r={data:function(){return{shows:!1,infos:[],infos1:[],shows1:"",navBarFixed:!1}},methods:{getanalysis:function(){var t=this,e=s["a"](document.getElementById("main"));this.$http.post("http://zaoquan.nxjiewei.com:8011/api/workbench/epidemic_situation/nucleic_acid_test_statistics").then((function(o){t.infos=o.data.data;var n={backgroundColor:"#fff",borderRadius:"20px",title:{text:"核酸检测统计",x:"25px",y:"15px"},tooltip:{show:!0,trigger:"item"},legend:{y:"bottom",x:"center"},calculable:!0,series:[{name:"",type:"pie",radius:["40%","70%"],label:{normal:{show:!0,position:"inner",textStyle:{fontWeight:300,fontSize:16},formatter:"{d}%"}},data:[{value:t.infos.nucleic_acid_test,name:"已检测",itemStyle:{color:"#39f",shadowBlur:200,shadowColor:"rgba(0, 0, 0, 0)"}},{value:t.infos.not_nucleic_acid_test,name:"未检测",itemStyle:{color:"red",shadowBlur:200,shadowColor:"rgba(0, 0, 0, 0)"}}]}]};e.setOption(n)}))},getanalysis1:function(){var t=this,e=s["a"](document.getElementById("main2"));this.$http.post("http://zaoquan.nxjiewei.com:8011/api/workbench/epidemic_situation/nucleic_acid_test_statistics").then((function(o){console.log(o),t.infos1=o.data.data.not_nat_section_list;var n=[],i=[],a=[];for(var s in t.infos1)n.push(t.infos1[s].num),i.push(t.infos1[s].section_fullname),a.push(t.infos1[s].section_id);for(var r=[],c=0;c<n.length;c++)for(var l=0;l<i.length;l++)for(var d={},f=0;f<a.length;f++)c==l&&c==f&&l==f&&(d.name=i[l],d.value=n[c],d.Id=a[f],r.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:r}]};e.setOption(u)}))},onClickLeft:function(){window.history.back()},watchScroll:function(){var t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop,e=document.querySelector("#nav").offsetHeight;console.log("scrollTop=>",t," offsetTop=>",e),this.navBarFixed=t>e}},mounted:function(){document.body.style.backgroundColor="#39f",this.token=Object(a["a"])(window.location.href).token,window.addEventListener("scroll",this.watchScroll),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)}},c=r,l=(o("9e9a"),o("2877")),d=Object(l["a"])(c,n,i,!1,null,"a3369caa",null);e["default"]=d.exports},"9e9a":function(t,e,o){"use strict";o("0905")},accb:function(t,e,o){"use strict";o.d(e,"a",(function(){return n}));o("ac1f"),o("1276"),o("fb6a"),o("841c"),o("5319");var n=function(t){var e=t?t.split("?")[1]:window.location.search.slice(1),o={};if(e){e=e.split("#")[0];for(var n=e.split("&"),i=0;i<n.length;i++){var a=n[i].split("="),s=void 0,r=a[0].replace(/\[\d*\]/,(function(t){return s=t.slice(1,-1),""})),c="undefined"===typeof a[1]||a[1];o[r]?("string"===typeof o[r]&&(o[r]=[o[r]]),"undefined"===typeof s?o[r].push(c):o[r][s]=c):o[r]=c}}return o}}}]);
  2. //# sourceMappingURL=chunk-c05ab27a.12961fc5.js.map