问星数据dist打包,线上使用; 源码在bigData仓库

59.c45692072160d08be7b8.js 8.5KB

1
  1. webpackJsonp([59],{"7jea":function(t,e){},wygU:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={data:function(){return{loading:!1,timeList:[{name:"昨日",time:[this.getDay(-1,!1),this.getDay(-1,!1)]},{name:"近7天",time:[this.getDay(-7,!1),this.getDay(0,!1)]},{name:"近30天",time:[this.getDay(-30,!1),this.getDay(0,!1)]},{name:"近90天",time:[this.getDay(-90,!1),this.getDay(0,!1)]}],date:[this.getDay(-7,!1),this.getDay(0,!1)],pickerTimes:{disabledDate:function(t){return t>Date.now()}},noneDone:!1,hasAuno:!1,total:0,pageSize:0,page:1,infoList:[],sort_type:1,search_key_word:""}},created:function(){this.init(1)},methods:{sortEvent:function(t){this.sort_type==t||(this.sort_type=t,this.init(1))},handleCurrentChange:function(t){this.init(t)},init:function(t){var e=this;this.loading=!0,this.page=t,this.infoList=[],this.$axios.get(this.URL.BASEURL+this.URL.dou_followBrandList,{params:{page:t,sort:this.sort_type,start_time:this.date[0],end_time:this.date[1],keyword:this.search_key_word}}).then(function(t){if(e.loading=!1,(t=t.data)&&0==t.errno){if(t.rst&&0!=t.rst.length){var s=t.rst.data;s.forEach(function(t){t.is_follow=1}),e.infoList=s,e.total=t.rst.pageInfo.total,e.pageSize=t.rst.pageInfo.size}}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},toDetail:function(t){if(t.brand){var e=this.$router.resolve({path:"brandDetailDou",query:{brand:t.brand}});window.open(e.href,"_blank")}else this.$message({message:"该品牌暂无详情,敬请期待!",type:"warning"})},followWhEvent:function(t,e){var s=this;this.$axios.get(this.URL.BASEURL+this.URL.dou_followBrand,{params:{brand:t.brand}}).then(function(t){(t=t.data)&&0==t.errno?1==t.rst.isFollowed?s.infoList[e].is_follow=1:s.infoList[e].is_follow=0:s.$message({message:t.err,type:"warning"})}).catch(function(t){})}},watch:{date:function(){this.date&&this.date!=[]||(this.date=this.timeList[0].time),this.init(1)}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading"}},[a("div",{staticClass:"search_condition"},[a("div",{staticClass:"common_search_box clear"},[a("img",{staticClass:"icon",attrs:{src:s("AJUD"),alt:""}}),t._v(" "),a("input",{directives:[{name:"model",rawName:"v-model",value:t.search_key_word,expression:"search_key_word"}],staticClass:"search_input",attrs:{placeholder:"请输入品牌名称进行搜索"},domProps:{value:t.search_key_word},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.init(1)},input:function(e){e.target.composing||(t.search_key_word=e.target.value)}}}),t._v(" "),t.search_key_word?a("i",{staticClass:"clearText el-icon-circle-close",on:{click:function(e){t.search_key_word="",t.init(1)}}}):t._e(),t._v(" "),a("img",{staticClass:"search_icon",attrs:{src:s("JWdz"),alt:""},on:{click:function(e){return t.init(1)}}})]),t._v(" "),a("div",{staticClass:"common_screen clear"},[a("div",{staticClass:"common_screen_title"},[t._v("统计时间")]),t._v(" "),a("ul",{staticClass:"common_select_time clear"},t._l(t.timeList,function(e,s){return a("li",{key:"time"+s,class:["common_select_time_item",t.date&&t.date.join(",")==e.time.join(",")?"common_select_time_item_active":""],on:{click:function(s){t.date=e.time}}},[t._v(t._s(e.name))])}),0),t._v(" "),a("el-date-picker",{staticClass:"common_select_li",staticStyle:{width:"250px","margin-top":"7px","margin-left":"8px"},attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"",size:"mini","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerTimes},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1)]),t._v(" "),t.noneDone?t._e():a("div",[a("div",{staticClass:"table_div"},[a("table",[a("tr",[a("td",{staticStyle:{"text-align":"left","padding-left":"25px"}},[t._v("品牌名称")]),t._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",1==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(1)}}},[t._v("\n 销量\n "),t._m(0)])]),t._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",2==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(2)}}},[t._v("\n 销售额\n "),t._m(1)])]),t._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",5==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(5)}}},[t._v("\n 商品数\n "),t._m(2)])]),t._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",3==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(3)}}},[t._v("\n 直播红人\n "),t._m(3)])]),t._v(" "),a("td",[a("div",{staticClass:"th_title",class:["common_select_td",4==t.sort_type?"common_selected_down":""],on:{click:function(e){return t.sortEvent(4)}}},[t._v("\n 关联直播\n "),t._m(4)])]),t._v(" "),a("td",[t._v("操作")])]),t._v(" "),t._l(t.infoList,function(e,n){return a("tr",{key:n,staticStyle:{cursor:"pointer"},on:{click:function(s){return t.toDetail(e)}}},[a("td",{staticStyle:{width:"170px"}},[a("div",{staticClass:"videoBox",staticStyle:{"text-algin":"left"}},[a("div",{staticClass:"videoInfo"},[a("el-tooltip",{attrs:{effect:"dark",content:e.brand?e.brand:"",disabled:!(e.brand.length>10),placement:"bottom-start"}},[a("p",{staticClass:"videoTitle",staticStyle:{color:"#333333","font-weight":"bold"}},[t._v(t._s(e.brand?e.brand:"-"))])])],1)])]),t._v(" "),a("td",{class:1==t.sort_type?"common_selected":""},[t._v(t._s(e.sale_count||0==e.sale_count?t.$NumberHandle(e.sale_count):"-"))]),t._v(" "),a("td",{class:2==t.sort_type?"common_selected":""},[t._v(t._s(e.sale_money||0==e.sale_money?t.$NumberHandle(e.sale_money):"-"))]),t._v(" "),a("td",{class:5==t.sort_type?"common_selected":""},[t._v(t._s(e.goods_num||0==e.goods_num?t.$NumberHandle(e.goods_num):"-"))]),t._v(" "),a("td",{class:3==t.sort_type?"common_selected":""},[t._v(t._s(e.user_count||0==e.user_count?t.$NumberHandle(e.user_count):"-"))]),t._v(" "),a("td",{class:4==t.sort_type?"common_selected":""},[t._v(t._s(e.show_count||0==e.show_count?t.$NumberHandle(e.show_count):"-"))]),t._v(" "),a("td",[a("div",{on:{click:function(s){return s.stopPropagation(),t.followWhEvent(e,n)}}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:1==e.is_follow?"取消关注":"关注品牌",placement:"top-start"}},[1==e.is_follow?a("img",{staticClass:"followIcon",attrs:{src:s("fXRA"),alt:""}}):a("img",{staticClass:"followIcon",attrs:{src:s("OSUF"),alt:""}})])],1)])])})],2)]),t._v(" "),t.loading||0!=t.infoList.length?t._e():a("div",{staticClass:"noHaveDate"},[t._v("暂无数据")])]),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.hasAuno&&0!=t.total,expression:"!hasAuno&&total!=0"}],staticClass:"bottom"},[a("span",{staticClass:"total"},[t._v("共"+t._s(t.total)+"条结果")]),t._v(" "),a("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-size":t.pageSize,total:t.total},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),t.infoList.length>0&&!t.noneDone&&t.hasAuno&&!t.loading?a("list-permission"):t._e(),t._v(" "),!t.hasAuno&&t.noneDone?a("nopermission"):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-arrow-down"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-arrow-down"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-arrow-down"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-arrow-down"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"table_sortable table_sortable_single"},[e("i",{staticClass:"el-icon-arrow-down"})])}]};var i=s("C7Lr")(a,n,!1,function(t){s("7jea")},"data-v-02f0b62e",null);e.default=i.exports}});