webpackJsonp([64],{Egh9:function(e,t){},oqW3:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s("aA9S"),l=s.n(a),n={data:function(){return{au_nums:"",noneDone:!1,hasAuno:!1,page_size:20,loading:!1,keyword:null,infoList:[],total:0,page:1,day:7,timeList:[{value:1,label:"昨天"},{value:3,label:"近3天"},{value:7,label:"近7天"},{value:15,label:"近15天"},{value:30,label:"近30天"},{value:90,label:"近90天"}],salesModel:0,sales:{label:0,value:"销量",min:"",max:""},salesList:[{label:0,value:"不限",min:"",max:""},{label:1,min:"",max:1e5,value:"10万以下"},{label:2,min:1e5,max:5e5,value:"10-50万"},{label:3,min:5e5,max:1e6,value:"50-100万"},{label:4,min:1e6,max:2e6,value:"100-200万"},{label:5,min:2e6,max:"",value:"200万以上"}],salesMoneyModel:0,salesMoney:{label:0,value:"销售额",min:"",max:""},salesMoneyList:[{label:0,value:"不限",min:"",max:""},{label:1,min:"",max:5e5,value:"50万以下"},{label:2,min:5e5,max:1e6,value:"50-100万"},{label:3,min:1e6,max:4e6,value:"100-400万"},{label:4,min:4e6,max:8e6,value:"400-800万"},{label:5,min:8e6,max:12e6,value:"800-1200万"},{label:6,min:12e6,max:"",value:"1200万以上"}],fanModel:0,fan:{label:0,value:"店铺粉丝数",min:"",max:""},fanList:[{label:0,value:"不限",min:"",max:""},{label:1,min:"",max:1e5,value:"10万以下"},{label:2,min:1e5,max:1e6,value:"10-100万"},{label:3,min:1e6,max:5e6,value:"100-500万"},{label:4,min:5e6,max:1e7,value:"500-1000万"},{label:5,min:1e7,max:2e7,value:"1000-2000万"},{label:6,min:2e7,max:"",value:"2000万以上"}],sort_type:1,sort_order:1}},created:function(){this.keyword=this.$store.state.keyword.data,this.init(1)},methods:{sortEvent:function(e){this.sort_type==e||(this.sort_type=e,this.init(1))},handleCurrentChange:function(e){this.init(e)},init:function(e,t){var s=this;if(this.$message.closeAll(),this.hasAuno||this.noneDone)return this.$cookie.getCookie("isLogin")?(this.$message.closeAll(),void this.$message({message:"当前等级暂不支持使用该功能,请升级会员后操作",type:"warning"})):void this.$Login({visible:!0});e=e;var a=this.page_size;if("dataExport"==t){e=1,a=500;var l=this.$loading({lock:!0,text:"加载中...",spinner:"el-icon-loading",background:"rgba(255, 2550, 255, 0.7)"})}else this.infoList=[],this.total=0,this.loading=!0,this.page=e;this.$axios.get(this.URL.BASEURL+this.URL.searchShop,{params:{day:this.day,page:e,page_size:a,keyword:this.keyword,sort:this.sort_type,sell_count_min:this.sales.min,sell_count_max:this.sales.max,sell_money_min:this.salesMoney.min,sell_money_max:this.salesMoney.max,fan_min:this.fan.min,fan_max:this.fan.max,is_export:"dataExport"==t?1:""}}).then(function(e){e=e.data;if(s.loading=!1,"dataExport"==t&&l.close(),4403==e.auno?(s.au_nums=e.au_nums,s.hasAuno=!0):s.hasAuno=!1,s.noneDone=4003==e.errno,e&&0==e.errno){var a=e.rst.data;"dataExport"==t?s.exportToExcel(a):(s.infoList=a,s.total=e.rst.pageInfo.total)}else 4003!=e.errno&&s.$message({message:e.err,type:"warning"})}).catch(function(e){"dataExport"==t&&l.close()})},toUrl:function(e){var t=this.$router.resolve({path:"shoplistDetail/"+e.shop_id});window.open(t.href,"_blank")},followWhEvent:function(e,t){var s=this;this.$exportNumber({type_id:10,cb:function(){s.$axios.get(s.URL.BASEURL+s.URL.followShop,{params:{shop_id:e.shop_id,platform:1,shop_name:e.shop_name}}).then(function(e){(e=e.data)&&0==e.errno?1==e.rst?s.infoList[t].is_follow=1:s.infoList[t].is_follow=0:s.$message({message:e.err,type:"warning"})}).catch(function(e){})}})},getMoreList:function(){var e=this;this.$exportNumber({type_id:2,cb:function(){e.init(1,"dataExport")}})},exportToExcel:function(e){var t=e,s=[];for(var a in t)s.push({shop_name:t[a].shop_name?t[a].shop_name:"",user_count:t[a].user_count?t[a].user_count:"",shop_fan:t[a].shop_fan?t[a].shop_fan:"",show_count:t[a].show_count?t[a].show_count:"",sell_count:t[a].sell_count?t[a].sell_count:"",sell_money:t[a].sell_money?t[a].sell_money:"",goods_num:t[a].goods_num?t[a].goods_num:""});for(var l="店铺名称,关联红人数,店铺粉丝数,关联直播数,销量,销售额,推广商品数\n",n=0;n0&&!e.noneDone?a("li",{staticClass:"common_select_info common_data_export",on:{click:e.getMoreList}},[e._v("导出")]):e._e()])])]),e._v(" "),a("div",{staticClass:"table_div"},[a("table",[a("tr",[a("td",[e._v("店铺名称")]),e._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",1==e.sort_type?"common_selected_down":""],on:{click:function(t){return e.sortEvent(1)}}},[e._v("\n 商品销量\n "),e._m(0)])]),e._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",2==e.sort_type?"common_selected_down":""],on:{click:function(t){return e.sortEvent(2)}}},[e._v("\n 商品销售额\n "),e._m(1)])]),e._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",3==e.sort_type?"common_selected_down":""],on:{click:function(t){return e.sortEvent(3)}}},[e._v("\n 店铺粉丝数\n "),e._m(2)])]),e._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",4==e.sort_type?"common_selected_down":""],on:{click:function(t){return e.sortEvent(4)}}},[e._v("\n 推广商品数\n "),e._m(3)])]),e._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",5==e.sort_type?"common_selected_down":""],on:{click:function(t){return e.sortEvent(5)}}},[e._v("\n 关联达人数\n "),e._m(4)])]),e._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",6==e.sort_type?"common_selected_down":""],on:{click:function(t){return e.sortEvent(6)}}},[e._v("\n 关联直播数\n "),e._m(5)])]),e._v(" "),a("td",[e._v("收藏")])]),e._v(" "),e._l(e.infoList,function(t,l){return a("tr",{key:l,staticStyle:{cursor:"pointer"},on:{click:function(s){return e.toUrl(t)}}},[a("td",{staticStyle:{width:"250px"}},[a("div",{staticClass:"shopImg"},[a("img",{attrs:{src:t.shop_icon}})]),e._v(" "),a("el-tooltip",{attrs:{effect:"dark",content:t.shop_name,placement:"top"}},[a("p",{staticClass:"shopName"},[e._v(e._s(t.shop_name))])])],1),e._v(" "),a("td",{class:1==e.sort_type?"common_selected":""},[e._v(e._s(t.sell_count||0==t.sell_count?e.$NumberHandle(t.sell_count):"-"))]),e._v(" "),a("td",{class:2==e.sort_type?"common_selected":""},[e._v(e._s(t.sell_money||0==t.sell_money?e.$NumberHandle(t.sell_money):"-"))]),e._v(" "),a("td",{class:3==e.sort_type?"common_selected":""},[e._v(e._s(t.shop_fan||0==t.shop_fan?e.$NumberHandle(t.shop_fan):"-"))]),e._v(" "),a("td",{class:4==e.sort_type?"common_selected":""},[e._v(e._s(t.goods_num||0==t.goods_num?e.$NumberHandle(t.goods_num):"-"))]),e._v(" "),a("td",{class:5==e.sort_type?"common_selected":""},[e._v(e._s(t.user_count||0==t.user_count?e.$NumberHandle(t.user_count):"-"))]),e._v(" "),a("td",{class:6==e.sort_type?"common_selected":""},[e._v(e._s(t.show_count||0==t.show_count?e.$NumberHandle(t.show_count):"-"))]),e._v(" "),a("td",[a("div",{on:{click:function(s){return s.stopPropagation(),e.followWhEvent(t,l)}}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:1==t.is_follow?"取消关注":"关注店铺",placement:"top-start"}},[1==t.is_follow?a("img",{staticClass:"followIcon",attrs:{src:s("fXRA"),alt:""}}):a("img",{staticClass:"followIcon",attrs:{src:s("OSUF"),alt:""}})])],1)])])})],2),e._v(" "),e.loading||e.noneDone||0!=e.infoList.length?e._e():a("div",{staticClass:"noHaveDate"},[e._v("暂无数据")]),e._v(" "),!e.hasAuno&&0!=e.total||e.hasAuno&&e.au_nums<=e.total&&e.page>1?a("div",{staticClass:"bottom"},[a("span",{directives:[{name:"show",rawName:"v-show",value:e.total,expression:"total"}],staticClass:"total"},[e._v("共"+e._s(e.total)+"条结果")]),e._v(" "),a("el-pagination",{attrs:{background:"","current-page":e.page,"page-size":e.page_size,layout:"prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1):e._e()]),e._v(" "),!e.noneDone&&e.hasAuno&&!e.loading&&e.infoList.length>0?a("list-permission",{attrs:{au_nums:e.au_nums}}):e._e(),e._v(" "),a("nopermission",{directives:[{name:"show",rawName:"v-show",value:!e.hasAuno&&e.noneDone,expression:"!hasAuno&&noneDone"}]})],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"table_sortable table_sortable_single"},[t("i",{staticClass:"el-icon-caret-bottom"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"table_sortable table_sortable_single"},[t("i",{staticClass:"el-icon-caret-bottom"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"table_sortable table_sortable_single"},[t("i",{staticClass:"el-icon-caret-bottom"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"table_sortable table_sortable_single"},[t("i",{staticClass:"el-icon-caret-bottom"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"table_sortable table_sortable_single"},[t("i",{staticClass:"el-icon-caret-bottom"})])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"table_sortable table_sortable_single"},[t("i",{staticClass:"el-icon-caret-bottom"})])}]};var i=s("C7Lr")(n,o,!1,function(e){s("Egh9")},"data-v-434aa22a",null);t.default=i.exports}});