chunk-2b312022.a5c12d33.js 6.4 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b312022"],{"145c":function(t,n,i){"use strict";i.r(n);var o=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("div",[t.shows?i("div",{staticClass:"nav",class:{"fix-nav":t.navBarFixed},attrs:{id:"nav"}},[i("van-nav-bar",{attrs:{title:"疫苗接种","left-arrow":"","left-text":"返回"},on:{"click-left":t.onClickLeft}})],1):t._e(),i("div",{staticClass:"contents"},[i("div",{staticStyle:{width:"350px",height:"350px",margin:"12px auto","border-radius":"10px"},attrs:{id:"main"}}),i("div",{staticClass:"contents_p"},[i("p",[t._v("总人数")]),i("p",[t._v(t._s(t.total_number)+" 人")])])]),i("div",{staticClass:"contents_table"},[i("h3",[t._v("疫苗接种明细")]),i("div",{staticClass:"list"},[t._m(0),t._l(t.bumen,(function(n){return i("div",{key:n.id,staticClass:"item"},[i("div",{staticClass:"fullname"},[t._v(t._s(n.section_fullname))]),i("div",{staticClass:"total_number"},[t._v(t._s(n.section_total_number)+" 人")]),i("div",{staticClass:"total_vaccination_second"},[t._v(t._s(n.section_total_vaccination_second)+" 人")]),i("div",{staticClass:"total_vaccination_first",on:{click:function(i){return t.diyiji(n.section_fullname)}}},[t._v(t._s(n.section_total_vaccination_first)+" 人")]),i("div",{staticClass:"num",on:{click:function(i){return t.weijiezhong(n.section_fullname)}}},[t._v(t._s(n.num)+" 人")])])}))],2)])])},e=[function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("div",{staticClass:"item",staticStyle:{"border-bottom":"2px solid #009FE8"}},[i("div",{staticClass:"fullname"},[t._v("部门名称")]),i("div",{staticClass:"total_number"},[t._v("总人数")]),i("div",{staticClass:"total_vaccination_second",staticStyle:{color:"#000"}},[t._v("接种 第二剂")]),i("div",{staticClass:"total_vaccination_first",staticStyle:{color:"#000"}},[t._v("接种 第一剂")]),i("div",{staticClass:"num",staticStyle:{color:"#000"}},[t._v("未接种")])])}],a=(i("b0c0"),i("99af"),i("accb")),s=i("313e"),c={data:function(){return{shows:!1,infos:[],infos1:[],shows1:"",navBarFixed:!1,bumen:[],total_number:""}},methods:{getanalysis:function(){var t=this,n=s["a"](document.getElementById("main"));this.$http.post("http://ningdongyunying.nxjiewei.com:8011/api/workbench/epidemic_situation/vaccination_statistics").then((function(i){console.log(i),t.infos=i.data.data;var o={backgroundColor:"#fff",borderRadius:[20,20,20,20],title:{text:"疫苗接种统计",x:"25px",y:"15px"},tooltip:{show:!0,trigger:"item"},legend:{y:"305px",x:"center",formatter:function(t){for(var n,i=o.series[0].data,e=0;e<i.length;e++)i[e].value,i[e].name==t&&(n=i[e].value);var a=n;return"".concat(t," (").concat(a,"人)")}},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(o),n.on("legendselectchanged",(function(t){if("未接种疫苗"==t.name&&(window.location.href="#/ningdongyunying/yiqing/yiqing-weijiezhong"),"接种第一剂"==t.name){var n=t.name;window.location.href="#/ningdongyunying/yiqing/yiqing-diyiji?itsname=".concat(n)}})),n.on("click",(function(t){if(console.log(t.data.name),"未接种疫苗"==t.data.name&&(window.location.href="#/ningdongyunying/yiqing/yiqing-weijiezhong"),"接种第一剂"==t.data.name){var n=t.data.name;window.location.href="#/ningdongyunying/yiqing/yiqing-diyiji?itsname=".concat(n)}}))}))},getbumen:function(){var t=this;this.$http.post("http://ningdongyunying.nxjiewei.com:8011/api/workbench/epidemic_situation/vaccination_statistics").then((function(n){console.log(n),t.total_number=n.data.data.total_number,t.bumen=n.data.data.not_nat_section_list}))},weijiezhong:function(t){var n=t;window.location.href="#/ningdongyunying/yiqing/yiqing-bumen?its=".concat(n)},diyiji:function(t){var n=t;window.location.href="#/ningdongyunying/yiqing/yiqing-bumenone?itsname=".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.getbumen()},destroyed:function(){window.removeEventListener("scroll",this.watchScroll)}},r=c,l=(i("b475"),i("2877")),d=Object(l["a"])(r,o,e,!1,null,"7e974f4b",null);n["default"]=d.exports},9425:function(t,n,i){},"99af":function(t,n,i){"use strict";var o=i("23e7"),e=i("d039"),a=i("e8b5"),s=i("861d"),c=i("7b0b"),r=i("50c4"),l=i("8418"),d=i("65f0"),u=i("1dde"),f=i("b622"),v=i("2d00"),h=f("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",w=v>=51||!e((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),_=u("concat"),b=function(t){if(!s(t))return!1;var n=t[h];return void 0!==n?!!n:a(t)},y=!w||!_;o({target:"Array",proto:!0,forced:y},{concat:function(t){var n,i,o,e,a,s=c(this),u=d(s,0),f=0;for(n=-1,o=arguments.length;n<o;n++)if(a=-1===n?s:arguments[n],b(a)){if(e=r(a.length),f+e>g)throw TypeError(m);for(i=0;i<e;i++,f++)i in a&&l(u,f,a[i])}else{if(f>=g)throw TypeError(m);l(u,f++,a)}return u.length=f,u}})},accb:function(t,n,i){"use strict";i.d(n,"a",(function(){return o}));i("ac1f"),i("1276"),i("fb6a"),i("841c"),i("5319");var o=function(t){var n=t?t.split("?")[1]:window.location.search.slice(1),i={};if(n){n=n.split("#")[0];for(var o=n.split("&"),e=0;e<o.length;e++){var a=o[e].split("="),s=void 0,c=a[0].replace(/\[\d*\]/,(function(t){return s=t.slice(1,-1),""})),r="undefined"===typeof a[1]||a[1];i[c]?("string"===typeof i[c]&&(i[c]=[i[c]]),"undefined"===typeof s?i[c].push(r):i[c][s]=r):i[c]=r}}return i}},b475:function(t,n,i){"use strict";i("9425")}}]);
  2. //# sourceMappingURL=chunk-2b312022.a5c12d33.js.map