chunk-53feedd3.b1c5fa54.js 6.0 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53feedd3"],{"6cff":function(t,n,e){"use strict";e.r(n);var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[t.shows?e("div",{staticClass:"nav",class:{"fix-nav":t.navBarFixed},attrs:{id:"nav"}},[e("van-nav-bar",{attrs:{title:"疫苗接种","left-arrow":"","left-text":"返回"},on:{"click-left":t.onClickLeft}})],1):t._e(),e("div",{staticClass:"contents"},[e("div",{staticStyle:{width:"350px",height:"350px",margin:"12px auto","border-radius":"10px"},attrs:{id:"main"}}),e("div",{staticClass:"contents_p"},[e("p",[t._v("总人数")]),e("p",[t._v(t._s(t.total_number)+" 人")])])]),e("div",{staticClass:"contents_table"},[e("h3",[t._v("未接种疫苗部门")]),e("table",{staticClass:"tables",attrs:{border:"1"}},[e("tbody",{staticClass:"tbody"},[t._m(0),t._l(t.bumen,(function(n){return e("tr",{key:n.id},[e("th",[t._v(t._s(n.section_fullname))]),e("th",[t._v(t._s(n.section_total_number)+" 人")]),e("th",[t._v(t._s(n.section_total_vaccination_second)+" 人")]),e("th",{on:{click:function(e){return t.diyiji(n.section_fullname)}}},[t._v(" "+t._s(n.section_total_vaccination_first)+" 人 ")]),e("th",{on:{click:function(e){return t.weijiezhong(n.section_fullname)}}},[t._v(" "+t._s(n.num)+" 人 ")])])}))],2)])])])},i=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("tr",[e("th",[t._v("部门名称")]),e("th",[t._v("总人数")]),e("th",[t._v("接种第二剂")]),e("th",[t._v("接种第一剂")]),e("th",[t._v("未接种人数")])])}],a=(e("b0c0"),e("99af"),e("accb")),c=e("313e"),r={data:function(){return{shows:!1,infos:[],infos1:[],shows1:"",navBarFixed:!1,bumen:[],total_number:""}},methods:{getanalysis:function(){var t=this,n=c["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:"305px",x:"center",formatter:function(t){for(var n,e=o.series[0].data,i=0;i<e.length;i++)e[i].value,e[i].name==t&&(n=e[i].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="#/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)}}))}))},getbumen:function(){var t=this;this.$http.post("http://zaoquan.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="#/zaoquan/yiqing/yiqing-bumen?its=".concat(n)},diyiji:function(t){var n=t;window.location.href="#/zaoquan/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)}},s=r,l=(e("7737"),e("2877")),d=Object(l["a"])(s,o,i,!1,null,"09425762",null);n["default"]=d.exports},7737:function(t,n,e){"use strict";e("98ff")},"98ff":function(t,n,e){},"99af":function(t,n,e){"use strict";var o=e("23e7"),i=e("d039"),a=e("e8b5"),c=e("861d"),r=e("7b0b"),s=e("50c4"),l=e("8418"),d=e("65f0"),u=e("1dde"),f=e("b622"),h=e("2d00"),v=f("isConcatSpreadable"),m=9007199254740991,w="Maximum allowed index exceeded",b=h>=51||!i((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),p=u("concat"),_=function(t){if(!c(t))return!1;var n=t[v];return void 0!==n?!!n:a(t)},g=!b||!p;o({target:"Array",proto:!0,forced:g},{concat:function(t){var n,e,o,i,a,c=r(this),u=d(c,0),f=0;for(n=-1,o=arguments.length;n<o;n++)if(a=-1===n?c:arguments[n],_(a)){if(i=s(a.length),f+i>m)throw TypeError(w);for(e=0;e<i;e++,f++)e in a&&l(u,f,a[e])}else{if(f>=m)throw TypeError(w);l(u,f++,a)}return u.length=f,u}})},accb:function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));e("ac1f"),e("1276"),e("fb6a"),e("841c"),e("5319");var o=function(t){var n=t?t.split("?")[1]:window.location.search.slice(1),e={};if(n){n=n.split("#")[0];for(var o=n.split("&"),i=0;i<o.length;i++){var a=o[i].split("="),c=void 0,r=a[0].replace(/\[\d*\]/,(function(t){return c=t.slice(1,-1),""})),s="undefined"===typeof a[1]||a[1];e[r]?("string"===typeof e[r]&&(e[r]=[e[r]]),"undefined"===typeof c?e[r].push(s):e[r][c]=s):e[r]=s}}return e}}}]);
  2. //# sourceMappingURL=chunk-53feedd3.b1c5fa54.js.map