chunk-11973a09.44575030.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-11973a09"],{"3d21":function(t,e,a){"use strict";a("ea60")},"6bbe":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},r=[],i=a("313e"),l=a.n(i),s=a("f42c");a("817d");var o={mixins:[s["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:.7*document.body.offsetWidth+"px"},type:{type:String,default:"line"},chartData:{type:Object,default:function(){return{top:[],tj:[],time:[]}}}},data:function(){return{chart:null}},watch:{chartData:{handler:function(){this.initChart()},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=l.a.init(this.$el,"macarons"),this.chart.setOption({title:{text:"最新报名趋势图",top:8,textStyle:{color:"#000000",fontSize:16,fontWeight:"bold"}},grid:{left:4,right:12,bottom:8,containLabel:!0},color:["#4C9ECD","#D970D0","#5AC4B6"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{top:8,right:0,data:["销售经理","销售主管","代理公司"]},toolbox:{show:!1},calculable:!0,xAxis:[{name:"时间",nameTextStyle:{fontSize:12},type:"category",axisTick:{show:!1},data:this.chartData.time}],yAxis:[{type:"value",name:"人"}],series:[{name:"销售经理",type:this.type,barGap:0,data:this.chartData.top},{name:"销售主管",type:this.type,data:this.chartData.tj},{name:"代理公司",type:this.type,data:this.chartData.crown}],animation:!0})}}},c=o,u=a("2877"),d=Object(u["a"])(c,n,r,!1,null,null,null);e["a"]=d.exports},"7e1e":function(t,e,a){"use strict";a.d(e,"m",(function(){return r})),a.d(e,"n",(function(){return i})),a.d(e,"o",(function(){return l})),a.d(e,"q",(function(){return s})),a.d(e,"r",(function(){return o})),a.d(e,"s",(function(){return c})),a.d(e,"p",(function(){return u})),a.d(e,"t",(function(){return d})),a.d(e,"l",(function(){return h})),a.d(e,"u",(function(){return p})),a.d(e,"a",(function(){return m})),a.d(e,"b",(function(){return f})),a.d(e,"c",(function(){return _})),a.d(e,"d",(function(){return v})),a.d(e,"e",(function(){return b})),a.d(e,"f",(function(){return w})),a.d(e,"v",(function(){return g})),a.d(e,"w",(function(){return y})),a.d(e,"x",(function(){return x})),a.d(e,"h",(function(){return C})),a.d(e,"g",(function(){return j})),a.d(e,"i",(function(){return D})),a.d(e,"k",(function(){return O})),a.d(e,"j",(function(){return k}));var n=a("b775"),r=function(t){return Object(n["a"])({url:"/data/location",method:"get",params:t})},i=function(t){return Object(n["a"])({url:"/data/province",method:"get",params:t})},l=function(t){return Object(n["a"])({url:"/data/province_time",method:"get",params:t})},s=function(t){return Object(n["a"])({url:"/data/sale_location",method:"get",params:t})},o=function(t){return Object(n["a"])({url:"/data/sale_province",method:"get",params:t})},c=function(t){return Object(n["a"])({url:"/data/sale_province_time",method:"get",params:t})},u=function(t){return Object(n["a"])({url:"/data/sale_type",method:"get",params:t})},d=function(t){return Object(n["a"])({url:"/data/rank",method:"get",params:t})},h=function(t){return Object(n["a"])({url:"/data/all_data",method:"get",params:t})},p=function(t){return Object(n["a"])({url:"/data/service_sale",method:"get",params:t})},m=function(t){return Object(n["a"])({url:"/data/sign_up",method:"get",params:t})},f=function(t){return Object(n["a"])({url:"/season/season_sale",method:"get",params:t})},_=function(t){return Object(n["a"])({url:"/data/per_capita",method:"get",params:t})},v=function(t){return Object(n["a"])({url:"/data/sale_per_capita",method:"get",params:t})},b=function(t){return Object(n["a"])({url:"/data/level_capita",method:"get",params:t})},w=function(){return Object(n["a"])({url:"/data/get_info",method:"get"})};function g(t){return Object(n["a"])({method:"get",url:"/challenge/index_current_data",params:t})}function y(t){return Object(n["a"])({method:"get",url:"/challenge/guess_current_data",params:t})}function x(){return Object(n["a"])({method:"get",url:"/data/crown_rank"})}function C(){return Object(n["a"])({method:"get",url:"/data/get_area_location"})}function j(t){return Object(n["a"])({method:"get",url:"/data/get_enroll_detail_info",params:t})}function D(t){return Object(n["a"])({method:"get",url:"/data/get_sales_detail_info",params:t})}function O(t){return Object(n["a"])({method:"get",url:"/data/challenge_rank",params:t})}function k(t){return Object(n["a"])({method:"get",url:"/challenge/guess_list_info",params:t})}},a5b1:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-screen2"},[t.mapChartData.length>0?[a("el-backtop"),t._v(" "),a("div",{staticClass:"top_container"},[a("div",{staticClass:"title"},[t._v("争霸赛报名数据实时追踪")]),t._v(" "),a("div",{staticClass:"total"},[a("p",{staticClass:"text"},[t._v(t._s(t.total))]),t._v(" "),a("p",[t._v("累计报名")])]),t._v(" "),a("div",{staticClass:"team_bottom"},[a("div",{staticClass:"item"},[a("p",{staticClass:"text"},[t._v(t._s(t.superNum))]),t._v(" "),a("p",[t._v("销售主管")])]),t._v(" "),a("div",{staticClass:"item"},[a("p",{staticClass:"text"},[t._v(t._s(t.topNum))]),t._v(" "),a("p",[t._v("销售经理")])]),t._v(" "),a("div",{staticClass:"item"},[a("p",{staticClass:"text"},[t._v(t._s(t.crownNum))]),t._v(" "),a("p",[t._v("代理公司")])])])]),t._v(" "),a("div",{staticClass:"map"},[a("p",{staticClass:"title"},[t._v("全国数据报名情况")]),t._v(" "),a("div",{staticClass:"map_box"},[t.mapChartData.length>0?a("div",{staticStyle:{width:"100%",height:"100%"},attrs:{id:"china2"}}):t._e()]),t._v(" "),a("div",{staticClass:"map_bottom"},[a("p",{staticClass:"rank"},[a("span",{staticStyle:{"margin-right":"13px"}},[t._v("省份:"+t._s(t.mapInfo.name))]),t._v(" "),a("span",[t._v("排名:"+t._s(t.mapInfo.i))])]),t._v(" "),a("p",{staticClass:"total"},[t._v("总报名人数:"+t._s(t.mapInfo.value))]),t._v(" "),a("p",{staticClass:"team"},[a("span",[t._v("销售主管:"+t._s(t.mapInfo.tj))]),t._v(" "),a("span",[t._v("销售经理:"+t._s(t.mapInfo.top))]),t._v(" "),a("span",[t._v("代理公司:"+t._s(t.mapInfo.crown))])])])]),t._v(" "),t.lineChartData.top?a("signup-line-chart1",{attrs:{"chart-data":t.lineChartData}}):t._e(),t._v(" "),a("div",{staticClass:"header"},[a("span",[t._v("各省报名情况")]),t._v(" "),t.opened?a("el-button",{attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:t.refresh}}):t._e()],1),t._v(" "),a("div",{staticClass:"table-wrapper",attrs:{id:"table-wrapper"}},[a("el-table",{ref:"table",staticStyle:{width:"100%"},attrs:{data:t.tabbleChartData,"header-cell-class-name":"fsdfasdfas"},on:{"expand-change":t.open}},[a("el-table-column",{attrs:{label:"排名",width:t.width/13*2,type:"index",align:"center",index:function(t){return t+1}}}),t._v(" "),a("el-table-column",{attrs:{label:"地区",width:t.width/13*2,prop:"name",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"销售主管",width:t.width/13*2,prop:"tj",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"销售经理",width:t.width/13*2,prop:"top",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"代理公司",width:t.width/13*2,prop:"crown",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"合计",width:t.width/13*2,align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.top+e.row.tj))]}}],null,!1,2839995267)}),t._v(" "),a("el-table-column",{attrs:{type:"expand",width:t.width/13*1},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.chart?a("signup-line-chart1",{attrs:{"chart-data":e.row.chart}}):t._e(),t._v(" "),e.row.list?a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.row.list,border:""}},[a("el-table-column",{attrs:{label:"排名",type:"index",align:"center",width:(t.width-16)/6,index:function(t){return t+1}}}),t._v(" "),a("el-table-column",{attrs:{label:"城市",prop:"name",align:"center",width:(t.width-16)/6}}),t._v(" "),a("el-table-column",{attrs:{label:"销售主管",prop:"tj",align:"center",width:(t.width-16)/6}}),t._v(" "),a("el-table-column",{attrs:{label:"销售经理",prop:"top",align:"center",width:(t.width-16)/6}}),t._v(" "),a("el-table-column",{attrs:{label:"代理公司",prop:"crown",align:"center",width:(t.width-16)/6}}),t._v(" "),a("el-table-column",{attrs:{label:"合计",prop:"value",align:"center",width:(t.width-16)/6}})],1):t._e()]}}],null,!1,134818964)})],1)],1),t._v(" "),a("div",{staticClass:"title finally"},[t._v("争霸赛最终数据分析")]),t._v(" "),t._m(0),t._v(" "),a("el-table",{attrs:{data:t.dddd,border:""}},[a("el-table-column",{attrs:{label:"代理身份",prop:"level",align:"center",width:t.width/5}}),t._v(" "),a("el-table-column",{attrs:{label:"人数",prop:"num",align:"center",width:t.width/5}}),t._v(" "),a("el-table-column",{attrs:{label:"百分比",prop:"percent",align:"center",width:t.width/5}}),t._v(" "),a("el-table-column",{attrs:{label:"男性人数",prop:"male",align:"center",width:t.width/5}}),t._v(" "),a("el-table-column",{attrs:{label:"女性人数",prop:"female",align:"center",width:t.width/5}})],1),t._v(" "),t._m(1),t._v(" "),a("el-table",{attrs:{data:t.res.list6,border:""}},[a("el-table-column",{attrs:{label:"地区级别",prop:"name",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"人数",prop:"num",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"百分比",prop:"percent",align:"center"}})],1),t._v(" "),t._m(2),t._v(" "),a("columnar-chart",{attrs:{phone:"phone","chart-data":t.cityLevelChart,title:"参赛人员所在城市级别柱状图"}}),t._v(" "),a("el-table",{attrs:{data:t.res.list4,border:""}},[a("el-table-column",{attrs:{label:"城市级别",prop:"name",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"人数",prop:"num",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"占比",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s((e.row.num/t.total*100).toFixed(2)+"%"))]}}],null,!1,3706855298)}),t._v(" "),a("el-table-column",{attrs:{label:"详情",type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("columnar-chart",{attrs:{phone:"phone","chart-data":{city:e.row.city.map((function(t){return t.name})),data:e.row.city.map((function(t){return t.num}))},title:e.row.name+"参赛人员所在城市详情"}}),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.row.city,border:""}},[a("el-table-column",{attrs:{label:"排名",type:"index",align:"center",index:function(t){return t+1}}}),t._v(" "),a("el-table-column",{attrs:{label:"城市",prop:"name",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"数量",prop:"num",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{label:"占比",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s((e.row.num/t.total*100).toFixed(2)+"%"))]}}],null,!0)})],1)]}}],null,!1,93642082)})],1),t._v(" "),t._m(3),t._v(" "),a("el-table",{attrs:{data:t.res.list5,border:""}},[a("el-table-column",{attrs:{label:"人员",prop:"level",align:"center",width:t.width/5}}),t._v(" "),a("el-table-column",{attrs:{label:"本届",prop:"now",align:"center",width:t.width/5}}),t._v(" "),a("el-table-column",{attrs:{label:"上届",prop:"pre",align:"center",width:t.width/5}}),t._v(" "),a("el-table-column",{attrs:{label:"增加",prop:"add",align:"center",width:t.width/5}}),t._v(" "),a("el-table-column",{attrs:{label:"包含上届",prop:"include",align:"center",width:t.width/5}})],1),t._v(" "),a("div",{staticClass:"header"})]:t._e(),t._v(" "),t.dataPasswordVis?a("div",{staticClass:"data_password"},[a("el-input",{staticStyle:{width:"300px","margin-bottom":"20px"},attrs:{type:"text",placeholder:"请输入密码"},model:{value:t.dataPassword,callback:function(e){t.dataPassword=e},expression:"dataPassword"}}),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.checkDataPassword}},[t._v("确定")])],1):t._e()],2)},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"header"},[a("span",[t._v("参赛人员数据")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"header"},[a("span",[t._v("参赛人员所在城市级别")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"header"},[a("span",[t._v("参赛人员所在城市级别")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"header"},[a("span",[t._v("参赛人员数据对比")])])}],i=(a("55dd"),a("7f7f"),a("ac6a"),a("5df3"),a("96cf"),a("1da1")),l=(a("a481"),a("ed08")),s=a("a941"),o=a("6bbe"),c=a("7e1e");document.title="争霸赛—报名数据实时追踪";var u={name:"DataScreen2",components:{SignupLineChart1:o["a"],ColumnarChart:s["a"]},props:{},data:function(){return{width:document.body.offsetWidth,total:0,topNum:0,crownNum:0,superNum:0,timer:null,opened:!1,mapChartData:[],lineChartData:{},tabbleChartData:[],cityLevelChart:{},eeee:[{name:"地级市",num:"1234",percent:"50.00%"},{name:"县级市",num:"1234",percent:"50.00%"},{name:"乡镇",num:"1234",percent:"50.00%"}],mapInfo:null,mapPosition:{x:"",y:""},dataPasswordVis:!0,dataPassword:""}},computed:{dddd:function(){return[{level:"销售主管",num:this.topNum,percent:(this.topNum/this.total*100).toFixed(2)+"%",male:"/",female:"/"},{level:"销售经理",num:this.superNum,percent:(this.superNum/this.total*100).toFixed(2)+"%",male:"/",female:"/"},{level:"代理公司",num:this.superNum,percent:(this.crownNum/this.total*100).toFixed(2)+"%",male:"/",female:"/"},{level:"合计",num:this.total,percent:(this.total/this.total*100).toFixed(2)+"%",male:"/",female:"/"}]}},watch:{dataPasswordVis:function(t){!t&&this.init()}},created:function(){Object(l["e"])()&&this.$router.replace({path:"/1"})},beforeDestroy:function(){clearInterval(this.timer)},methods:{init:function(){var t=this;this.loading=this.$loading(),this.request(),this.timer=setInterval((function(){return t.request()}),3e4)},checkDataPassword:function(){"000"===this.dataPassword?this.dataPasswordVis=!1:this.dataPassword?this.$message.error("密码错误"):this.$message.error("请输入密码")},refresh:function(){this.loading=this.$loading(),clearInterval(this.timer),this.opened=!1,this.request()},open:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(e,a){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(void 0!==e.list){t.next=12;break}return this.loading=this.$loading(),t.next=4,Promise.all([Object(c["o"])({province:e.name}),Object(c["n"])({province:e.name})]);case 4:n=t.sent,this.opened=!0,this.loading.close(),e.chart=n[0].data,e.list=n[1].data.list.sort((function(t,e){return e.value-t.value})),this.dispatchClick&&(this.dispatchClick=!1,this.$emit("scroll")),this.$refs.table.toggleRowExpansion(e),this.$refs.table.toggleRowExpansion(e);case 12:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}(),openScroll:function(t){var e=this;function a(t){var e={left:0,top:0},a=t.offsetParent;e.left+=t.offsetLeft,e.top+=t.offsetTop;while(a&&!/html|body/i.test(a.tagName))e.left+=a.offsetLeft,e.top+=a.offsetTop,a=a.offsetParent;return e}this.tabbleChartData=Object(l["c"])(this.mapChartData),this.dispatchClick=!0,this.$nextTick((function(){var n=document.getElementsByClassName("el-table__row")[t];n.getElementsByClassName("el-table__expand-icon")[0].click(),e.$on("scroll",(function(){e.$nextTick((function(){window.scrollTo(0,a(n).top)}))}))}))},request:function(){var t=this;Object(c["m"])().then((function(e){t.loading.close(),e.data.status||clearInterval(t.timer),t.mapChartData=e.data.list.sort((function(t,e){return e.value-t.value})),t.mapChartData.forEach((function(t,e){t.i=e+1})),t.mapInfo=t.mapChartData[0],t.lineChartData={top:e.data.list1,tj:e.data.list2,crown:e.data.list7,time:e.data.list3},t.opened||(t.tabbleChartData=e.data.list.sort((function(t,e){return e.value-t.value}))),t.topNum=e.data.top,t.crownNum=e.data.crown,t.superNum=e.data.tj,t.total=e.data.total,e.data.list4.forEach((function(t){t.city.sort((function(t,e){return e.num-t.num}))})),t.cityLevelChart.data=e.data.list4.map((function(t){return t.num})),t.cityLevelChart.city=e.data.list4.map((function(t){return t.name})),t.res=e.data;var a=0,n=0;t.mapChartData.forEach((function(t,e){t.value>a&&(a=t.value,n=e)})),t.$nextTick((function(){t.echarts=window.echarts.init(document.getElementById("china2")),t.echarts.setOption({tooltip:{trigger:"item",enterable:!1,position:"inside",alwaysShowContent:!0,formatter:function(e){return t.$emit("renderDetail",e.dataIndex),'<div id="echart_bot" class="bot"></div>'}},series:[{name:"报名人数",type:"map",mapType:"china",aspectScale:1,zoom:1.25,data:t.mapChartData}]}),t.click||(t.click=!0,t.echarts.on("click",(function(e){console.log(e),t.mapInfo=e.data,t.mapPosition.x=e.event.offsetX,t.mapPosition.y=e.event.offsetY}))),t.echarts.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:n}),t.$nextTick((function(){document.querySelector("#echart_bot").parentNode.classList.add("spec_bot")}))}))}))}}},d=u,h=(a("3d21"),a("2877")),p=Object(h["a"])(d,n,r,!1,null,"15280a8a",null);e["default"]=p.exports},a941:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.phone?"300px":t.height,width:t.width}})},r=[],i=(a("55dd"),a("313e")),l=a.n(i),s=a("f42c");a("817d");var o={mixins:[s["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"540px"},title:{type:String,default:""},phone:{type:Boolean,default:!1},chartData:{type:Object,default:function(){return{city:[],data:[]}}}},data:function(){return{chart:null}},watch:{chartData:{handler:function(){this.initChart()},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=l.a.init(this.$el,"macarons"),this.chart.setOption({color:["#4C9ECD","#D970D0","#5AC4B6"].sort((function(t,e){return.5-Math.random()})),title:{text:this.title,x:"center",top:18,textStyle:{color:"#000000",fontWeight:"bold"}},grid:{left:0,right:0,bottom:8,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},toolbox:{show:!1},calculable:!0,xAxis:[{name:"城市",nameTextStyle:{fontSize:12},type:"category",axisTick:{show:!1},data:this.chartData.city}],yAxis:[{type:"value",name:"人"}],series:[{name:"参赛人数",type:"bar",barGap:0,data:this.chartData.data}]})}}},c=o,u=a("2877"),d=Object(u["a"])(c,n,r,!1,null,null,null);e["a"]=d.exports},ea60:function(t,e,a){},f42c:function(t,e,a){"use strict";var n=a("ed08");e["a"]={data:function(){return{$_sidebarElm:null}},mounted:function(){var t=this;this.__resizeHandler=Object(n["b"])((function(){t.chart&&t.chart.resize()}),100),window.addEventListener("resize",this.__resizeHandler),this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.__resizeHandler),this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)},methods:{$_sidebarResizeHandler:function(t){"width"===t.propertyName&&this.__resizeHandler()}}}}}]);