小店通

9.5dbebbd03446b7315a62.js 7.0KB

12
  1. webpackJsonp([9],{jFzF:function(t,e){},xXdY:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={data:function(){return{status:"",statueList:[{key:"计算中",value:0},{key:"已生效",value:1},{key:"已删除",value:2},{key:"推送中",value:3},{key:"已推送",value:4},{key:"计算失败",value:5},{key:"推送失败",value:6},{key:"已失效",value:7}],loadingSet:!1,type:"",typeList:[],numList:[{value:"1~1000",min:1,max:1e3},{value:"1000~10000",min:1e3,max:1e4}],num:"",cover_num_up:"",cover_num_down:"",keyword:"",timeRange:[],list:[],total:1,page_size:1,page:1,pickerOptions:{disabledDate:function(t){return t.getTime()>Date.now()}}}},created:function(){this.getSelect(),this.init(1)},methods:{changeNum:function(){this.cover_num_up=this.num.split("~")[1],this.cover_num_down=this.num.split("~")[0],this.init(1)},reset:function(){this.keyword=this.status=this.type="",this.timeRange=[],this.init(1)},init:function(t){var e=this;this.page=t,this.loadingSet=!0,this.$axios.get(this.URL.BASEURL+this.URL.dmpList,{params:{page:t,page_size:this.page_size,keyword:this.keyword,status:this.status,type:this.type?Number(this.type):"",cover_num_down:this.cover_num_down,cover_num_up:this.cover_num_up,start_date:this.timeRange&&this.timeRange.length>0?this.timeRange[0]:"",end_date:this.timeRange&&this.timeRange.length>1?this.timeRange[1]:""}}).then(function(t){t=t.data;e.loadingSet=!1,t&&0==t.errno?e.list=t.rst.data:e.$message({message:t.err,type:"warning"})}).catch(function(){e.loadingSet=!1})},getSelect:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.dmpSelectType,{}).then(function(e){e=e.data;t.loadingSet=!1,e&&0==e.errno?t.typeList=e.rst:t.$message({message:e.err,type:"warning"})}).catch(function(){t.loadingSet=!1})},del:function(){},handleCurrentChange:function(t){this.init(t)}}},o={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingSet,expression:"loadingSet"}],staticClass:"setting"},[n("div",{staticClass:"selectBox"},[n("label",[t._v("人群名称/ID:")]),t._v(" "),n("el-input",{staticClass:"input",attrs:{placeholder:"请输入人群名称/ID"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.init(1)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}},[n("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"suffix"},on:{click:function(e){return t.init(1)}},slot:"suffix"})]),t._v(" "),n("label",[t._v("人群状态:")]),t._v(" "),n("el-select",{staticStyle:{width:"160px"},attrs:{slot:"prepend",clearable:"",placeholder:"请选择人群类型"},on:{change:function(e){return t.init(1)}},slot:"prepend",model:{value:t.status,callback:function(e){t.status=e},expression:"status"}},t._l(t.statueList,function(t){return n("el-option",{key:t.value,attrs:{label:t.key,value:t.value}})}),1),t._v(" "),n("label",[t._v("人群类型:")]),t._v(" "),n("el-select",{staticStyle:{width:"160px"},attrs:{slot:"prepend",clearable:"",placeholder:"请选择人群类型"},on:{change:function(e){return t.init(1)}},slot:"prepend",model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},t._l(t.typeList,function(t){return n("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})}),1),t._v(" "),n("br"),n("br"),t._v(" "),n("label",[t._v("覆盖人数:")]),t._v(" "),n("el-select",{attrs:{slot:"prepend",clearable:"",placeholder:"请选择筛选人数"},on:{change:t.changeNum},slot:"prepend",model:{value:t.num,callback:function(e){t.num=e},expression:"num"}},t._l(t.numList,function(t){return n("el-option",{key:t.value,attrs:{label:t.value,value:t.value}})}),1),t._v(" "),n("label",{staticStyle:{"margin-left":"20px"}},[t._v("创建时间:")]),t._v(" "),n("el-date-picker",{attrs:{id:"time",type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions,align:"right"},on:{change:function(e){return t.init(1)}},model:{value:t.timeRange,callback:function(e){t.timeRange=e},expression:"timeRange"}}),t._v(" "),n("div",{staticClass:"btn"},[n("button",{staticClass:"button",on:{click:function(e){return t.init(1)}}},[t._v("查询")]),t._v(" "),n("button",{staticClass:"button normal",on:{click:function(e){return t.reset()}}},[t._v("重置")])])],1),t._v(" "),n("div",{staticClass:"data"},[n("el-table",{staticStyle:{width:"98%",margin:"auto"},attrs:{border:"",data:t.list}},[n("el-table-column",{attrs:{align:"center",label:"人群包名称","show-overflow-tooltip":"",prop:"orientation_name"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"人群包ID",prop:"id"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"类型",prop:"name"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.population_type?"上传人群 ":2==e.row.population_type?"广告人群":3==e.row.population_type?"主题专区":4==e.row.population_type?"逻辑规则":5==e.row.population_type?"人群扩展":6==e.row.population_type?"平台定制":7==e.row.population_type?"定制付费":8==e.row.population_type?"网红粉丝类别":9==e.row.population_type?"内容付费行为":10==e.row.population_type?"移动应用安装":11==e.row.population_type?"快手使用活跃度":12==e.row.population_type?"行业分类":13==e.row.population_type?"商业兴趣":14==e.row.population_type?"固化标签":15==e.row.population_type?"行业偏好":16==e.row.population_type?"第三方标签":17==e.row.population_type?"产品关键词":18==e.row.population_type?"排除人群固化标签":19==e.row.population_type?"应用渗透率":20==e.row.population_type?"快手小店":21==e.row.population_type?"流量中台":22==e.row.population_type?"指定网红":23==e.row.population_type?"行业分类":24==e.row.population_type?"广告人群":25==e.row.population_type?"全量网红粉丝":26==e.row.population_type?"移动应用安装":27==e.row.population_type?"平台设备网络":"")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"状态",prop:"name"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.status?"计算中":1==e.row.status?"已生效":2==e.row.status?"已删除":3==e.row.status?"推送中":4==e.row.status?"已推送":5==e.row.status?"计算失败":6==e.row.status?"推送失败":"已失效")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"创建时间",prop:"create_time"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"覆盖数量",prop:"cover_num"}})],1),t._v(" "),t.list.length>0?n("div",{staticClass:"bottom",staticStyle:{position:"relative"}},[n("div"),t._v(" "),n("el-pagination",{attrs:{background:"","current-page":t.page,"page-size":t.page_size,layout:"prev, pager, next",total:t.total},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var i=n("C7Lr")(a,o,!1,function(t){n("jFzF")},"data-v-178a6798",null);e.default=i.exports}});
  2. //# sourceMappingURL=9.5dbebbd03446b7315a62.js.map