12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70d64dd6"],{"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"}})])},a=[],i=(o("b0c0"),o("99af"),o("accb")),r=o("313e"),c={data:function(){return{shows:!1,infos:[],infos1:[],shows1:"",navBarFixed:!1}},methods:{getanalysis:function(){var t=this,e=r["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",formatter:function(t){for(var e,o=n.series[0].data,a=0;a<o.length;a++)o[a].value,o[a].name==t&&(e=o[a].value);var i=e;return"".concat(t," (").concat(i,")人")}},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)}))},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(i["a"])(window.location.href).token,window.addEventListener("scroll",this.watchScroll),this.tabbar=Boolean(Object(i["a"])(window.location.href).tabbar),this.shows=this.tabbar,this.getanalysis()},destroyed:function(){window.removeEventListener("scroll",this.watchScroll)}},s=c,l=(o("bb83"),o("2877")),d=Object(l["a"])(s,n,a,!1,null,"2bc4784f",null);e["default"]=d.exports},"99af":function(t,e,o){"use strict";var n=o("23e7"),a=o("d039"),i=o("e8b5"),r=o("861d"),c=o("7b0b"),s=o("50c4"),l=o("8418"),d=o("65f0"),f=o("1dde"),u=o("b622"),h=o("2d00"),b=u("isConcatSpreadable"),p=9007199254740991,w="Maximum allowed index exceeded",v=h>=51||!a((function(){var t=[];return t[b]=!1,t.concat()[0]!==t})),m=f("concat"),g=function(t){if(!r(t))return!1;var e=t[b];return void 0!==e?!!e:i(t)},y=!v||!m;n({target:"Array",proto:!0,forced:y},{concat:function(t){var e,o,n,a,i,r=c(this),f=d(r,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(i=-1===e?r:arguments[e],g(i)){if(a=s(i.length),u+a>p)throw TypeError(w);for(o=0;o<a;o++,u++)o in i&&l(f,u,i[o])}else{if(u>=p)throw TypeError(w);l(f,u++,i)}return f.length=u,f}})},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("&"),a=0;a<n.length;a++){var i=n[a].split("="),r=void 0,c=i[0].replace(/\[\d*\]/,(function(t){return r=t.slice(1,-1),""})),s="undefined"===typeof i[1]||i[1];o[c]?("string"===typeof o[c]&&(o[c]=[o[c]]),"undefined"===typeof r?o[c].push(s):o[c][r]=s):o[c]=s}}return o}},bb83:function(t,e,o){"use strict";o("d21b")},d21b:function(t,e,o){}}]);
- //# sourceMappingURL=chunk-70d64dd6.90dee5d4.js.map
|