chunk-04990504.76a5ef20.js 26 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-04990504"],{"0f3f":function(t,e,a){},"1a33":function(t,e,a){},"365c":function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return i})),a.d(e,"e",(function(){return n})),a.d(e,"d",(function(){return o})),a.d(e,"a",(function(){return c}));var r=a("b6bd");function s(){return Object(r.a)({url:"home/header",method:"get"})}function i(t){return Object(r.a)({url:"home/order",method:"get",params:t})}function n(){return Object(r.a)({url:"home/user",method:"get"})}function o(){return Object(r.a)({url:"home/rank",method:"get"})}function c(){return Object(r.a)({url:"check_auth",method:"get"})}},"37c8d":function(t,e,a){"use strict";var r=a("545f");a.n(r).a},"545f":function(t,e,a){},"5b56":function(t,e,a){"use strict";var r=a("1a33");a.n(r).a},"5ee2":function(t,e,a){"use strict";var r=a("8cc2");a.n(r).a},"8a5c":function(t,e,a){},"8cc2":function(t,e,a){},"8ff4":function(t,e,a){},9452:function(t,e,a){"use strict";var r=a("8ff4");a.n(r).a},9901:function(t,e,a){"use strict";var r=a("313e"),s=a.n(r),i={name:"index",props:{infoList:{type:Object,default:null},styles:{type:Object,default:null},series:Array,echartsTitle:{type:String,default:""},yAxisData:{type:Array,default:function(){return[]}},bingXdata:Array},data:function(){return{infoLists:this.infoList,seriesArray:this.series}},watch:{infoList:{handler:function(t,e){this.infoLists=t,this.handleSetVisitChart()},deep:!0},series:{handler:function(t,e){this.seriesArray=t,this.handleSetVisitChart()},deep:!0}},computed:{echarts:function(){return"echarts"+Math.ceil(100*Math.random())}},mounted:function(){var t=this,e=this;e.$nextTick((function(){e.handleSetVisitChart(),window.addEventListener("resize",t.wsFunc)}))},methods:{wsFunc:function(){this.myChart.resize()},handleSetVisitChart:function(){var t=this;this.myChart=s.a.init(document.getElementById(this.echarts));var e=null;e="circle"===this.echartsTitle?{tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{orient:"vertical",left:"left",data:this.infoLists.bing_xdata||[]},series:[{name:"",type:"pie",radius:"60%",center:["50%","50%"],data:this.infoLists.bing_data||[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}:"circle1"===this.echartsTitle?{tooltip:{trigger:"item",formatter:"{b} : {c} ({d}%)"},legend:{icon:"circle",top:"5%",left:"center",fontSize:"12",data:this.infoLists.bing_xdata||[]},series:[{name:"访问来源",type:"pie",radius:["30%","60%"],avoidLabelOverlap:!1,label:{show:!0,formatter:"{d}%",position:"inner",fontSize:"12"},emphasis:{label:{show:!0,fontSize:"15",fontWeight:"bold"}},labelLine:{show:!1},data:this.infoLists.bing_data||[]}]}:"inlie"===this.echartsTitle?{tooltip:{trigger:"axis"},toolbox:{},legend:{icon:"line",left:"left",fontWeight:"100",data:this.infoLists.legend||[]},color:["#1495EB","#00CC66","#F9D249","#ff9900","#9860DF"],grid:{left:16,right:25,bottom:10,top:40,containLabel:!0},xAxis:[{type:"category",axisLine:{lineStyle:{color:"#D7DDE4"}},axisTick:{alignWithLabel:!0,lineStyle:{color:"#D7DDE4"}},splitLine:{show:!1,lineStyle:{color:"#F5F7F9"}},axisLabel:{interval:0,rotate:40,textStyle:{color:"#7F8B9C"}},data:this.infoLists.xAxis}],yAxis:this.yAxisData.length?this.yAxisData:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}},type:"value"},series:this.seriesArray}:{tooltip:{trigger:"axis"},toolbox:{},legend:{data:this.infoLists.legend||[]},color:["#1495EB","#00CC66","#F9D249","#ff9900","#9860DF"],grid:{left:16,right:25,bottom:10,top:40,containLabel:!0},xAxis:[{type:"category",axisLine:{lineStyle:{color:"#D7DDE4"}},axisTick:{alignWithLabel:!0,lineStyle:{color:"#D7DDE4"}},splitLine:{show:!1,lineStyle:{color:"#F5F7F9"}},axisLabel:{interval:0,rotate:40,textStyle:{color:"#7F8B9C"}},data:this.infoLists.xAxis}],yAxis:this.yAxisData.length?this.yAxisData:{axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}},type:"value"},series:this.seriesArray},setTimeout((function(){t.wsFunc(),t.myChart.setOption(e,!0)}),200)},handleResize:function(){this.myChart.resize()}},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)}},n=(a("df86"),a("2877")),o=Object(n.a)(i,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"styles",style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"7b0883a1",null);e.a=o.exports},aab1:function(t,e,a){},bbe4:function(t,e,a){"use strict";var r=a("aab1");a.n(r).a},c3c6:function(t,e,a){},c49a:function(t,e,a){"use strict";var r=a("8a5c");a.n(r).a},df86:function(t,e,a){"use strict";var r=a("0f3f");a.n(r).a},e217:function(t,e,a){"use strict";var r=a("c3c6");a.n(r).a},f75a:function(t,e,a){"use strict";a.r(e);var r=a("a34a"),s=a.n(r),i=a("313e"),n=a.n(i),o=a("365c");function c(t,e,a,r,s,i,n){try{var o=t[i](n),c=o.value}catch(t){return void a(t)}o.done?e(c):Promise.resolve(c).then(r,s)}var l={data:function(){return{infoList:[],grid:{xl:6,lg:12,md:12,sm:12,xs:24},excessStyle:{color:"#f56a00",backgroundColor:"#fde3cf"},avatarList:[]}},methods:{getStatistics:function(){var t=this;Object(o.b)().then(function(){var e,a=(e=s.a.mark((function e(a){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.infoList=r.info;case 2:case"end":return e.stop()}}),e)})),function(){var t=this,a=arguments;return new Promise((function(r,s){var i=e.apply(t,a);function n(t){c(i,r,s,n,o,"next",t)}function o(t){c(i,r,s,n,o,"throw",t)}n(void 0)}))});return function(t){return a.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}},mounted:function(){this.getStatistics()}},u=(a("c49a"),a("2877")),d=Object(u.a)(l,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Row",{attrs:{gutter:24}},t._l(t.infoList,(function(e,r){return a("Col",t._b({key:r,staticClass:"ivu-mb"},"Col",t.grid,!1),[a("Card",{attrs:{bordered:!1,"dis-hover":"",padding:12}},[a("p",{attrs:{slot:"title"},slot:"title"},[a("span",{domProps:{textContent:t._s(e.title)}})]),a("Tag",{attrs:{slot:"extra",color:"green"},slot:"extra"},[t._v(t._s(e.date))]),a("div",[a("Numeral",{directives:[{name:"font",rawName:"v-font",value:30,expression:"30"}],attrs:{value:e.today}}),a("div",{directives:[{name:"height",rawName:"v-height",value:42,expression:"42"}],staticClass:"ivu-pt-8"},[a("span",{directives:[{name:"display",rawName:"v-display",value:"inline-block",expression:"'inline-block'"}]},[t._v("\r\n\t\t\t\t\t\t 昨日 "+t._s(Number(e.yesterday))+" "),a("span",{staticClass:"nl"})]),a("span",{directives:[{name:"display",rawName:"v-display",value:"inline-block",expression:"'inline-block'"}],staticClass:"ivu-mr"},[t._v("\r\n 日环比 "+t._s(Number(e.today_ratio))+"% "),a("Icon",{staticClass:"iconColor",class:Number(e.today_ratio)>=0?" ":"on",attrs:{type:Number(e.today_ratio)>=0?"md-arrow-dropup":"md-arrow-dropdown"}})],1)]),a("Divider",{staticStyle:{margin:"8px 0"}}),a("div",[a("Row",[a("Col",{attrs:{span:"12"},domProps:{textContent:t._s(e.total_name)}}),a("Col",{staticClass:"ivu-text-right",attrs:{span:"12"}},[t._v(t._s(e.total))])],1)],1)],1)],1)],1)})),1)}),[],!1,null,null,null).exports,h=a("d708"),f={data:function(){return{roterPre:h.a.roterPre,grid:{xl:3,lg:6,md:6,sm:8,xs:8}}}},v=(a("5b56"),Object(u.a)(f,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("Row",{staticClass:"dashboard-console-grid",attrs:{gutter:24}},[a("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[a("Card",{attrs:{bordered:!1}},[a("router-link",{attrs:{to:{path:t.roterPre+"/user/list"}}},[a("Icon",{attrs:{type:"md-people",color:"#69c0ff"}}),a("p",[t._v("用户管理")])],1)],1)],1),a("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[a("Card",{attrs:{bordered:!1}},[a("router-link",{attrs:{to:{path:t.roterPre+"/setting/shop/base"}}},[a("Icon",{attrs:{type:"md-settings",color:"#95de64"}}),a("p",[t._v("系统设置")])],1)],1)],1),a("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[a("Card",{attrs:{bordered:!1}},[a("router-link",{attrs:{to:{path:t.roterPre+"/product/product_list"}}},[a("Icon",{attrs:{type:"md-cart",color:"#ff9c6e"}}),a("p",[t._v("商品")])],1)],1)],1),a("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[a("Card",{attrs:{bordered:!1}},[a("router-link",{attrs:{to:{path:t.roterPre+"/order/list"}}},[a("Icon",{attrs:{type:"md-clipboard",color:"#b37feb"}}),a("p",[t._v("订单管理")])],1)],1)],1),a("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[a("Card",{attrs:{bordered:!1}},[a("router-link",{attrs:{to:{path:t.roterPre+"/setting/notification/index"}}},[a("Icon",{attrs:{type:"md-chatboxes",color:"#ffd666"}}),a("p",[t._v("消息配置")])],1)],1)],1),a("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[a("Card",{attrs:{bordered:!1}},[a("router-link",{attrs:{to:{path:t.roterPre+"/cms/article/index"}}},[a("Icon",{attrs:{type:"md-card",color:"#5cdbd3"}}),a("p",[t._v("文章管理")])],1)],1)],1),a("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[a("Card",{attrs:{bordered:!1}},[a("router-link",{attrs:{to:{path:t.roterPre+"/agent/agent_manage/index"}}},[a("Icon",{attrs:{type:"md-pricetags",color:"#ff85c0"}}),a("p",[t._v("分销管理")])],1)],1)],1),a("Col",t._b({staticClass:"ivu-mb"},"Col",t.grid,!1),[a("Card",{attrs:{bordered:!1}},[a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/store_coupon_issue/index"}}},[a("Icon",{attrs:{type:"md-cash",color:"#ffc069"}}),a("p",[t._v("优惠券")])],1)],1)],1)],1)}),[],!1,null,null,null).exports),m=a("9901");function g(t,e,a,r,s,i,n){try{var o=t[i](n),c=o.value}catch(t){return void a(t)}o.done?e(c):Promise.resolve(c).then(r,s)}var p={components:{echartsFrom:m.a},data:function(){return{infoList:null,visitDate:"thirtyday",series:[],yAxisData:[]}},methods:{getStatistics:function(){var t=this,e={cycle:this.visitDate};Object(o.c)(e).then(function(){var e,a=(e=s.a.mark((function e(a){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.infoList=a.data||{},t.series=t.infoList.series||[],t.yAxisData=[{type:"value",name:"金额",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}},{type:"value",name:"数量",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}}];case 2:case"end":return e.stop()}}),e)})),function(){var t=this,a=arguments;return new Promise((function(r,s){var i=e.apply(t,a);function n(t){g(i,r,s,n,o,"next",t)}function o(t){g(i,r,s,n,o,"throw",t)}n(void 0)}))});return function(t){return a.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},handleChangeVisitType:function(){this.getStatistics()},handleResize:function(){this.infoList&&this.$refs.visitChart.handleResize()}},created:function(){var t=this;this.$nextTick((function(){t.getStatistics()}))}},b=(a("5ee2"),Object(u.a)(p,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{on:{resize:t.handleResize}},[a("Row",{attrs:{gutter:24}},[a("Col",{staticClass:"ivu-mb",attrs:{span:"24"}},[a("Card",{staticClass:"dashboard-console-visit",attrs:{bordered:!1,"dis-hover":""}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("Row",{attrs:{type:"flex",justify:"center",align:"middle"}},[a("Col",{attrs:{span:"8"}},[a("Avatar",{staticStyle:{color:"#1890ff","background-color":"#e6f7ff"},attrs:{icon:"ios-podium",size:"small"}}),a("span",{staticClass:"ivu-pl-8"},[t._v("订单")])],1),a("Col",{staticClass:"ivu-text-right",attrs:{span:"16"}},[a("RadioGroup",{staticClass:"ivu-mr-8",attrs:{type:"button"},on:{"on-change":t.handleChangeVisitType},model:{value:t.visitDate,callback:function(e){t.visitDate=e},expression:"visitDate"}},[a("Radio",{attrs:{label:"thirtyday"}},[t._v("30天")]),a("Radio",{attrs:{label:"week"}},[t._v("周")]),a("Radio",{attrs:{label:"month"}},[t._v("月")]),a("Radio",{attrs:{label:"year"}},[t._v("年")])],1)],1)],1)],1),a("h4",[t._v("订单量趋势")]),a("Row",{attrs:{gutter:24}},[a("Col",{attrs:{xl:24,lg:24,md:24,sm:24,xs:24}},[t.infoList?a("echarts-from",{ref:"visitChart",attrs:{series:t.series,infoList:t.infoList,yAxisData:t.yAxisData}}):t._e()],1)],1)],1)],1)],1)],1)}),[],!1,null,"cbc1c094",null).exports);function y(t,e,a,r,s,i,n){try{var o=t[i](n),c=o.value}catch(t){return void a(t)}o.done?e(c):Promise.resolve(c).then(r,s)}function x(t){return function(){var e=this,a=arguments;return new Promise((function(r,s){var i=t.apply(e,a);function n(t){y(i,r,s,n,o,"next",t)}function o(t){y(i,r,s,n,o,"throw",t)}n(void 0)}))}}var w={name:"user-chart",components:{echartsFrom:m.a},data:function(){return{line:"line",circle:"circle",infoList:{},series:[],xData:[],y1Data:[],y2Data:[],lists:[],bing_data:[],bing_xdata:[]}},methods:{getStatistics:function(){var t=this;Object(o.e)().then(function(){var e=x(s.a.mark((function e(a){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.infoList=a.data,t.series=[{data:a.data.series,name:"人数(人)",type:"line",tooltip:!0,smooth:!0,symbol:"none",areaStyle:{normal:{opacity:.2}}}],t.bing_data=a.bing_data,t.bing_xdata=a.bing_xdata;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getRank:function(){var t=this;Object(o.d)().then(function(){var e=x(s.a.mark((function e(a){var r;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=a.data,t.lists=r.list;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},handleResize:function(){this.infoList&&0!==this.series.length&&this.$refs.userChart.handleResize(),this.infoList&&this.$refs.visitChart.handleResize()}},mounted:function(){this.getStatistics(),this.getRank()},beforeDestroy:function(){this.visitChart&&(this.visitChart.dispose(),this.visitChart=null)}},C=(a("9452"),Object(u.a)(w,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"resize",rawName:"v-resize",value:t.handleResize,expression:"handleResize"}]},[a("Row",{attrs:{gutter:24}},[a("Col",{staticClass:"ivu-mb dashboard-console-visit",attrs:{xl:16,lg:12,md:24,sm:24,xs:24}},[a("Card",{attrs:{bordered:!1,"dis-hover":""}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("Avatar",{directives:[{name:"color",rawName:"v-color",value:"#1890ff",expression:"'#1890ff'"},{name:"bg-color",rawName:"v-bg-color",value:"#e6f7ff",expression:"'#e6f7ff'"}],attrs:{icon:"ios-pulse",size:"small"}}),a("span",{staticClass:"ivu-pl-8"},[t._v("用户")])],1),t.infoList&&0!==t.series.length?a("echarts-from",{ref:"userChart",attrs:{echartsTitle:t.line,infoList:t.infoList,series:t.series}}):t._e()],1)],1),a("Col",{attrs:{xl:8,lg:12,md:24,sm:24,xs:24}},[a("Card",{staticClass:"dashboard-console-visit",attrs:{bordered:!1,"dis-hover":""}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("Avatar",{directives:[{name:"color",rawName:"v-color",value:"#1890ff",expression:"'#1890ff'"},{name:"bg-color",rawName:"v-bg-color",value:"#e6f7ff",expression:"'#e6f7ff'"}],attrs:{icon:"ios-analytics",size:"small"}}),a("span",{staticClass:"ivu-pl-8"},[t._v("购买用户统计")])],1),a("echarts-from",{ref:"visitChart",attrs:{infoList:t.infoList,echartsTitle:t.circle}})],1)],1)],1)],1)}),[],!1,null,"4cbd4b9c",null).exports);function k(t){return function(t){if(Array.isArray(t)){for(var e=0,a=new Array(t.length);e<t.length;e++)a[e]=t[e];return a}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var _={data:function(){return{current:1,size:5,loading:!1,sortType:"normal",sortKey:"",column:[{title:"排名",key:"index",width:80},{title:"搜索关键词",key:"keyword",slot:"keyword",minWidth:120},{title:"用户数",key:"count",sortable:"custom",minWidth:100},{title:"周涨幅",key:"range",slot:"range",width:100,align:"right",sortable:"custom"}],data:[]}},computed:{limitData:function(){var t=this,e=k(this.data);return"asc"===this.sortType&&(e=e.sort((function(e,a){return e[t.sortKey]>a[t.sortKey]?1:-1}))),"desc"===this.sortType&&(e=e.sort((function(e,a){return e[t.sortKey]<a[t.sortKey]?1:-1}))),e},dataWithPage:function(){var t=this.limitData,e=this.current*this.size-this.size,a=e+this.size;return k(t).slice(e,a)}},methods:{handleSortChange:function(t){var e=t.key,a=t.order;this.sortKey=e,this.sortType=a,this.current=1},getData:function(){var t=[{index:1,keyword:"搜索关键词-0",count:257,range:69,status:0},{index:2,keyword:"搜索关键词-1",count:711,range:57,status:0},{index:3,keyword:"搜索关键词-2",count:766,range:24,status:1},{index:4,keyword:"搜索关键词-3",count:597,range:31,status:1},{index:5,keyword:"搜索关键词-4",count:133,range:30,status:0},{index:6,keyword:"搜索关键词-5",count:845,range:16,status:0},{index:7,keyword:"搜索关键词-6",count:454,range:35,status:1},{index:8,keyword:"搜索关键词-7",count:884,range:96,status:1},{index:9,keyword:"搜索关键词-8",count:725,range:30,status:1},{index:10,keyword:"搜索关键词-9",count:778,range:46,status:0},{index:11,keyword:"搜索关键词-10",count:414,range:69,status:1},{index:12,keyword:"搜索关键词-11",count:927,range:41,status:0},{index:13,keyword:"搜索关键词-12",count:128,range:54,status:0},{index:14,keyword:"搜索关键词-13",count:169,range:77,status:0},{index:15,keyword:"搜索关键词-14",count:764,range:8,status:0},{index:16,keyword:"搜索关键词-15",count:178,range:23,status:1},{index:17,keyword:"搜索关键词-16",count:32,range:94,status:0},{index:18,keyword:"搜索关键词-17",count:183,range:34,status:1},{index:19,keyword:"搜索关键词-18",count:988,range:5,status:0},{index:20,keyword:"搜索关键词-19",count:324,range:15,status:0},{index:21,keyword:"搜索关键词-20",count:832,range:42,status:0},{index:22,keyword:"搜索关键词-21",count:336,range:99,status:0},{index:23,keyword:"搜索关键词-22",count:23,range:1,status:1},{index:24,keyword:"搜索关键词-23",count:557,range:84,status:0},{index:25,keyword:"搜索关键词-24",count:894,range:62,status:1},{index:26,keyword:"搜索关键词-25",count:610,range:73,status:1},{index:27,keyword:"搜索关键词-26",count:810,range:1,status:1},{index:28,keyword:"搜索关键词-27",count:83,range:13,status:1},{index:29,keyword:"搜索关键词-28",count:734,range:11,status:1},{index:30,keyword:"搜索关键词-29",count:6,range:97,status:0},{index:31,keyword:"搜索关键词-30",count:112,range:88,status:0},{index:32,keyword:"搜索关键词-31",count:978,range:92,status:0},{index:33,keyword:"搜索关键词-32",count:674,range:86,status:0},{index:34,keyword:"搜索关键词-33",count:632,range:42,status:1},{index:35,keyword:"搜索关键词-34",count:0,range:23,status:1},{index:36,keyword:"搜索关键词-35",count:965,range:94,status:0},{index:37,keyword:"搜索关键词-36",count:758,range:86,status:0},{index:38,keyword:"搜索关键词-37",count:857,range:34,status:0},{index:39,keyword:"搜索关键词-38",count:72,range:95,status:0},{index:40,keyword:"搜索关键词-39",count:69,range:74,status:1},{index:41,keyword:"搜索关键词-40",count:553,range:21,status:1},{index:42,keyword:"搜索关键词-41",count:430,range:2,status:1},{index:43,keyword:"搜索关键词-42",count:86,range:23,status:1},{index:44,keyword:"搜索关键词-43",count:626,range:2,status:1},{index:45,keyword:"搜索关键词-44",count:266,range:8,status:1},{index:46,keyword:"搜索关键词-45",count:943,range:61,status:0},{index:47,keyword:"搜索关键词-46",count:417,range:17,status:1},{index:48,keyword:"搜索关键词-47",count:151,range:92,status:1},{index:49,keyword:"搜索关键词-48",count:197,range:63,status:0},{index:50,keyword:"搜索关键词-49",count:578,range:18,status:1}];this.total=t.length,this.data=t}},mounted:function(){this.getData()}},L={components:{searchTable:Object(u.a)(_,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"i-table-no-border"},[a("Table",{attrs:{columns:t.column,data:t.dataWithPage,loading:t.loading,size:"small"},on:{"on-sort-change":t.handleSortChange},scopedSlots:t._u([{key:"keyword",fn:function(e){var r=e.row;return[a("a",{attrs:{href:"/",target:"_blank"}},[t._v(t._s(r.keyword))])]}},{key:"range",fn:function(e){var r=e.row;return[t._v("\n "+t._s(r.range)+"%\n "),a("Trend",{attrs:{flag:r.status?"up":"down"}})]}}])}),a("div",{staticClass:"ivu-text-right ivu-mt-8"},[a("Page",{attrs:{size:"small","page-size":5,total:t.limitData.length,current:t.current},on:{"update:current":function(e){t.current=e},"on-change":t.getData}})],1)],1)}),[],!1,null,null,null).exports},data:function(){return{}},methods:{handleSetSearchChart:function(){this.searchUserChart=n.a.init(this.$refs.searchUserChart),this.searchCountChart=n.a.init(this.$refs.searchCountChart);var t={xAxis:{data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],type:"category",show:!1},yAxis:{show:!1,type:"value"},series:[{data:[120,300,150,350,70,210,130],type:"line",tooltip:!0,smooth:!0,symbol:"none",areaStyle:{normal:{opacity:.2}}}],color:["#1495EB","#00CC66","#F9D249","#ff9900","#9860DF"],grid:{left:-60,right:-20,bottom:-20,top:0,containLabel:!0},tooltip:{trigger:"axis"}};this.searchUserChart.setOption(t),this.searchCountChart.setOption(t)},handleResize:function(){this.searchUserChart&&this.searchUserChart.resize(),this.searchCountChart&&this.searchCountChart.resize()}},mounted:function(){this.handleSetSearchChart()},beforeDestroy:function(){this.searchUserChart&&(this.searchUserChart.dispose(),this.searchUserChart=null),this.searchCountChart&&(this.searchCountChart.dispose(),this.searchCountChart=null)}},S=Object(u.a)(L,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("Row",{attrs:{gutter:24}},[e("Col",{attrs:{span:"12"}},[e("NumberInfo",{attrs:{total:"23,378","sub-total":"16.8",status:"up"}},[e("span",{attrs:{slot:"subTitle"},slot:"subTitle"},[this._v("\n 搜索用户数\n "),e("Tooltip",{attrs:{content:"指标说明",placement:"top"}},[e("Icon",{attrs:{type:"ios-information-circle-outline"}})],1)],1)]),e("div",{directives:[{name:"height",rawName:"v-height",value:50,expression:"50"}],ref:"searchUserChart"})],1),e("Col",{attrs:{span:"12"}},[e("NumberInfo",{attrs:{total:"3.1","sub-total":"8.5",status:"down"}},[e("span",{attrs:{slot:"subTitle"},slot:"subTitle"},[this._v("\n 人均搜索次数\n "),e("Tooltip",{attrs:{content:"指标说明",placement:"top"}},[e("Icon",{attrs:{type:"ios-information-circle-outline"}})],1)],1)]),e("div",{directives:[{name:"height",rawName:"v-height",value:50,expression:"50"}],ref:"searchCountChart"})],1)],1),e("div",{staticClass:"ivu-mt"},[e("search-table")],1)],1)}),[],!1,null,null,null).exports,D={data:function(){return{}}},A=(a("e217"),{components:{userGender:Object(u.a)(D,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"dashboard-console-user-gender"},[e("Row",{attrs:{type:"flex",justify:"center",align:"middle"}},[e("Col",{directives:[{name:"color",rawName:"v-color",value:"#3399ff",expression:"'#3399ff'"}],staticClass:"ivu-text-center",attrs:{span:"8"}},[e("Avatar",{directives:[{name:"color",rawName:"v-color",value:"#3399ff",expression:"'#3399ff'"},{name:"bg-color",rawName:"v-bg-color",value:"#d6f0ff",expression:"'#d6f0ff'"}],attrs:{icon:"ios-man",size:"large"}}),e("div",{staticClass:"ivu-mt-8"},[this._v("男性 65%")])],1),e("Col",{directives:[{name:"color",rawName:"v-color",value:"#be6be0",expression:"'#be6be0'"}],staticClass:"ivu-text-center",attrs:{span:"8"}},[e("Avatar",{directives:[{name:"color",rawName:"v-color",value:"#be6be0",expression:"'#be6be0'"},{name:"bg-color",rawName:"v-bg-color",value:"#fdf0ff",expression:"'#fdf0ff'"}],attrs:{icon:"ios-woman",size:"large"}}),e("div",{staticClass:"ivu-mt-8"},[this._v("女性 25%")])],1),e("Col",{directives:[{name:"color",rawName:"v-color",value:"#babdc3",expression:"'#babdc3'"}],staticClass:"ivu-text-center",attrs:{span:"8"}},[e("Avatar",{directives:[{name:"color",rawName:"v-color",value:"#babdc3",expression:"'#babdc3'"},{name:"bg-color",rawName:"v-bg-color",value:"#e6edf5",expression:"'#e6edf5'"}],attrs:{icon:"md-man",size:"large"}}),e("div",{staticClass:"ivu-mt-8"},[this._v("未知 10%")])],1)],1),e("div",{staticClass:"dashboard-console-user-gender-grid ivu-mt-8"},[e("Grid",{attrs:{center:"",square:"",col:25,padding:"2px",border:!1}},this._l(100,(function(t){return e("GridItem",{key:t},[e("span",t<=65?{directives:[{name:"bg-color",rawName:"v-bg-color",value:"#3399ff",expression:"'#3399ff'"}]}:t<=90?{directives:[{name:"bg-color",rawName:"v-bg-color",value:"#be6be0",expression:"'#be6be0'"}]}:{directives:[{name:"bg-color",rawName:"v-bg-color",value:"#babdc3",expression:"'#babdc3'"}]})])})),1)],1)],1)}),[],!1,null,null,null).exports}}),F=(a("37c8d"),Object(u.a)(A,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{directives:[{name:"height",rawName:"v-height",value:200,expression:"200"}]},[e("user-gender")],1),e("div",{directives:[{name:"height",rawName:"v-height",value:210,expression:"210"}]},[e("div",{staticClass:"dashboard-console-user-preference"})])])}),[],!1,null,null,null).exports),z=a("8593"),T=(a("e069"),a("c276")),N={name:"index",components:{baseInfo:d,gridMenu:v,visitChart:b,userChart:C,hotSearch:S,userPreference:F},data:function(){return{visitType:"day",visitDate:[new Date,new Date]}},mounted:function(){T.a.cookies.get("auth")||Object(o.a)().then((function(t){})).catch((function(t){})),this.getAuth()},methods:{getAuth:function(){var t=this;Object(z.a)().then((function(e){var a=e.data||{};a.auth_code&&a.auth&&(t.authCode=a.auth_code,t.auth=!0)})).catch((function(t){}))}}},O=(a("bbe4"),Object(u.a)(N,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("base-info",{ref:"baseInfo"}),e("grid-menu"),e("visit-chart",{ref:"visitChart"}),e("user-chart",{ref:"userChart"})],1)}),[],!1,null,null,null));e.default=O.exports}}]);