1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-518eb00d"],{"0325":function(t,e,a){var r,o,i;(function(n,s){o=[e,a("4d28")],r=s,i="function"===typeof r?r.apply(e,o):r,void 0===i||(t.exports=i)})(0,(function(t,e){var a=function(t){"undefined"!==typeof console&&console&&console.error&&console.error(t)};if(e){var r=["#C1232B","#27727B","#FCCE10","#E87C25","#B5C334","#FE8463","#9BCA63","#FAD860","#F3A43B","#60C0DD","#D7504B","#C6E579","#F4E001","#F0805A","#26C0C0"],o={color:r,title:{textStyle:{fontWeight:"normal",color:"#27727B"}},visualMap:{color:["#C1232B","#FCCE10"]},toolbox:{iconStyle:{normal:{borderColor:r[0]}}},tooltip:{backgroundColor:"rgba(50,50,50,0.5)",axisPointer:{type:"line",lineStyle:{color:"#27727B",type:"dashed"},crossStyle:{color:"#27727B"},shadowStyle:{color:"rgba(200,200,200,0.3)"}}},dataZoom:{dataBackgroundColor:"rgba(181,195,52,0.3)",fillerColor:"rgba(181,195,52,0.2)",handleColor:"#27727B"},categoryAxis:{axisLine:{lineStyle:{color:"#27727B"}},splitLine:{show:!1}},valueAxis:{axisLine:{show:!1},splitArea:{show:!1},splitLine:{lineStyle:{color:["#ccc"],type:"dashed"}}},timeline:{itemStyle:{color:"#27727B"},lineStyle:{color:"#27727B"},controlStyle:{color:"#27727B",borderColor:"#27727B"},symbol:"emptyCircle",symbolSize:3},line:{itemStyle:{borderWidth:2,borderColor:"#fff",lineStyle:{width:3},emphasis:{borderWidth:0}},symbol:"circle",symbolSize:3.5},candlestick:{itemStyle:{color:"#c1232b",color0:"#b5c334"},lineStyle:{width:1,color:"#c1232b",color0:"#b5c334"},areaStyle:{color:"#c1232b",color0:"#27727b"}},graph:{itemStyle:{color:"#c1232b"},linkStyle:{color:"#b5c334"}},map:{itemStyle:{color:"#f2385a",areaColor:"#ddd",borderColor:"#eee"},areaStyle:{color:"#fe994e"},label:{color:"#c1232b"}},gauge:{axisLine:{lineStyle:{color:[[.2,"#B5C334"],[.8,"#27727B"],[1,"#C1232B"]]}},axisTick:{splitNumber:2,length:5,lineStyle:{color:"#fff"}},axisLabel:{textStyle:{color:"#fff"}},splitLine:{length:"5%",lineStyle:{color:"#fff"}},title:{offsetCenter:[0,-20]}}};e.registerTheme("infographic",o)}else a("ECharts is not Loaded")}))},d343:function(t,e,a){"use strict";a.d(e,"c",(function(){return i})),a.d(e,"h",(function(){return n})),a.d(e,"a",(function(){return s})),a.d(e,"e",(function(){return c})),a.d(e,"b",(function(){return l})),a.d(e,"f",(function(){return m})),a.d(e,"d",(function(){return d})),a.d(e,"g",(function(){return u}));var r=a("b775"),o={commerIncStat:"/statistics.Commission/commerIncStat",exportZx:"/statistics.Commission/exportZx",commerBaseStat:"/statistics.Commission/commerBaseStat",exportBaseStat:"/statistics.Commission/exportBaseStat",commerBonusStat:"/statistics.Commission/commerBonusStat",exportBonusStat:"/statistics.Commission/exportBonusStat",commerVolumeRank:"/statistics.Commission/commerVolumeRank",exportCommerRank:"/statistics.Commission/exportCommerRank"};function i(t){return Object(r["b"])({url:o.commerIncStat,method:"get",params:t})}function n(t){return Object(r["b"])({url:o.exportZx,method:"get",params:t})}function s(t){return Object(r["b"])({url:o.commerBaseStat,method:"get",params:t})}function c(t){return Object(r["b"])({url:o.exportBaseStat,method:"get",params:t})}function l(t){return Object(r["b"])({url:o.commerBonusStat,method:"get",params:t})}function m(t){return Object(r["b"])({url:o.exportBonusStat,method:"get",params:t})}function d(t){return Object(r["b"])({url:o.commerVolumeRank,method:"get",params:t})}function u(t){return Object(r["b"])({url:o.exportCommerRank,method:"get",params:t})}},d6f9:function(t,e,a){"use strict";var r=function(){var t=this,e=t._self._c;return e("a-radio-group",{staticStyle:{"margin-bottom":"30px"},attrs:{"button-style":"solid"},on:{change:t.chooseTab},model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e("a-radio-button",{attrs:{value:"peoper"}},[t._v("推荐官人数增长")]),e("a-radio-button",{attrs:{value:"officerBase"}},[t._v("推荐官基础数据")]),e("a-radio-button",{attrs:{value:"incentive"}},[t._v("奖励金数据")]),e("a-radio-button",{attrs:{value:"rank"}},[t._v("推荐官业绩排名")])],1)},o=[],i=(a("aa8b"),{data:function(){return{tab:"peoper"}},props:["name"],created:function(){this.tab=this.name},methods:{chooseTab:function(){"peoper"!=this.tab?"officerBase"!=this.tab?"incentive"!=this.tab?"rank"!=this.tab||this.$router.push("/dataCenter/sales/rank"):this.$router.push("/dataCenter/sales/incentive"):this.$router.push("/dataCenter/sales/officerBase"):this.$router.push("/dataCenter/sales/peoper")}}}),n=i,s=a("829d"),c=Object(s["a"])(n,r,o,!1,null,"ba29afd8",null);e["a"]=c.exports},ea30:function(t,e,a){"use strict";a.r(e);a("aa8b");var r=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{bordered:!1}},[e("tab",{attrs:{name:t.name}}),e("a-row",{staticClass:"row-item-search"},[e("a-form",{staticClass:"search-form",attrs:{form:t.searchFormTrend,layout:"inline"},on:{submit:t.handleSearchTrend}},[e("a-radio-group",{staticStyle:{"margin-right":"30px"},model:{value:t.tabTime,callback:function(e){t.tabTime=e},expression:"tabTime"}},[e("a-radio-button",{attrs:{value:"day"},on:{click:function(e){return t.chooseTab("day")}}},[t._v("按日")]),e("a-radio-button",{attrs:{value:"weekend"},on:{click:function(e){return t.chooseTab("weekend")}}},[t._v("按周")]),e("a-radio-button",{attrs:{value:"month"},on:{click:function(e){return t.chooseTab("month")}}},[t._v("按月")])],1),e("a-form-item",{staticStyle:{"margin-right":"5px"},attrs:{label:"时间范围"}},[e("a-range-picker",{directives:[{name:"decorator",rawName:"v-decorator",value:["betweenTimeTrend"],expression:"['betweenTimeTrend']"}],staticClass:"inputW220",attrs:{format:"YYYY-MM-DD"}})],1),e("a-form-item",{staticClass:"search-btn"},[e("a-button",{attrs:{type:"primary","html-type":"submit"}},[t._v("搜索")])],1),e("a-form-item",{staticClass:"search-btn"},[e("a-button",{attrs:{icon:"sync","html-type":"submit"},on:{click:t.reloadList}},[t._v("重置")])],1),e("a-form-item",{staticClass:"search-btn"},[e("a-button",{attrs:{type:"primary"},on:{click:t.exportData}},[t._v("导出")])],1)],1)],1),e("div",{staticClass:"echartsOrder"},[e("div",{staticStyle:{width:"100%",height:"500px"},attrs:{id:"orderMain"}})])],1)},o=[],i=a("753f"),n=(a("9f29"),a("d343")),s=a("d6f9"),c=a("4d28"),l=a.n(c),m=(a("0325"),a("2f42")),d=a.n(m),u={components:{tab:s["a"]},data:function(){return{searchFormTrend:this.$form.createForm(this),isLoading:!1,queryParam:{},tabTime:"day",orderX:[],orderdata:[],name:"peoper"}},created:function(){this.getTrendList()},methods:{moment:d.a,handleSearchTrend:function(t){var e=this;t.preventDefault(),this.searchFormTrend.validateFields((function(t,a){a.ftype="day"==e.tabTime?1:"weekend"==e.tabTime?2:3,t||(e.queryParam=Object(i["a"])(Object(i["a"])({},e.queryParam),a),e.getTrendList())}))},handleSearch:function(t){var e=this;t.preventDefault(),this.searchFormTrend.validateFields((function(t,a){t||(e.queryParam=Object(i["a"])(Object(i["a"])({},e.queryParam),a))}))},reloadList:function(){this.searchFormTrend.resetFields(),this.queryParam={},this.getTrendList()},getTrendList:function(){var t=this;this.loading=!0,n["c"]({ftype:"day"==this.tabTime?1:"weekend"==this.tabTime?2:3,betweenTime:this.queryParam.betweenTimeTrend}).then((function(e){t.orderX=e.data.xes,t.orderdata=e.data.volumes,t.$nextTick((function(){t.echartsTrend()}))})).finally((function(){t.isLoading=!1}))},echartsTrend:function(){var t,e=document.getElementById("orderMain"),a=l.a.init(e,"infographic");t={color:["#5b9bd5"],title:{left:"center",text:"推荐官人数增长趋势",textStyle:{color:"#333"}},legend:{data:["推荐官人数增长趋势"],y:"bottom"},tooltip:{trigger:"axis"},xAxis:{type:"category",data:this.orderX,axisLine:{show:!0,lineStyle:{color:"#333",width:1,type:"solid"}}},yAxis:{type:"value"},series:[{data:this.orderdata,name:"推荐官人数增长趋势",type:"line",smooth:!0,symbol:"circle",symbolSize:10,itemStyle:{color:"#5b9bd5"}}]},t&&a.setOption(t)},chooseTab:function(t){this.tabTime=t,this.searchFormTrend.resetFields(),this.queryParam={},this.getTrendList()},exportData:function(){var t=this;n["h"]({ftype:"day"==this.tabTime?1:"weekend"==this.tabTime?2:3,betweenTime:this.queryParam.betweenTimeTrend}).then((function(e){t.$message.success(e.message,1.5);var a=document.createElement("a");a.href=e.data.file,a.setAttribute("download",e.data.filename),a.click(),a=null})).finally((function(){}))}}},b=u,h=a("829d"),f=Object(h["a"])(b,r,o,!1,null,"a1179320",null);e["default"]=f.exports}}]);
|