企微助手 ,仓库名 短剧

48.79c724aea0b5759cb0b6.js 18KB

1
  1. webpackJsonp([48],{"/057":function(e,t){},EDBh:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),l=a("u2KI"),r=a.n(l),s=a("exGp"),o=a.n(s),c=a("gzej"),p=a("erru"),d=a("McOJ"),g={components:{selfChannel:p.a,selfInput:d.a},props:["value"],data:function(){return{dialogVisible:!1,height:500,loading:!1,pagination:{page:1,page_size:20,pages:0,total:0},filter:{platform_id:"",keyword:""},list:[]}},computed:{playletRes:{get:function(){return this.value},set:function(e){this.$emit("input",e),this.$emit("change",e)}}},watch:{dialogVisible:function(e){e&&(this.pagination.page=1,this.filter.platform_id="",this.filter.keyword="",this.handleInitList(),this.handleGetList())}},methods:{onClickClear:function(){this.playletRes=""},handleShowList:function(){this.dialogVisible=!0},handleSelect:function(e){this.playletRes=e.name,this.dialogVisible=!1},handleGetList:function(){var e=this;return o()(n.a.mark(function t(){var a,i,l,r,s;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,a=""+e.URL.BASEURL+e.URL.playletManage_playletList,i={platform_id:e.filter.platform_id,keyword:e.filter.keyword,account_id:"",page:e.pagination.page,page_size:e.pagination.page_size},t.next=6,e.$axios.get(a,{params:i});case 6:l=t.sent,r=l.data,(s=void 0===r?{}:r)&&0==s.errno&&Array.isArray(s.rst.data)?(e.list=s.rst.data,e.pagination.total=s.rst.pageInfo.total,e.pagination.pages=s.rst.pageInfo.pages,e.$refs.tableDom.bodyWrapper.scrollTop=0):4002!=s.errno&&(e.$message.warning(s.err),e.handleInitList()),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),console.log(t.t0),e.handleInitList();case 16:return t.prev=16,e.loading=!1,t.finish(16);case 19:case"end":return t.stop()}},t,e,[[0,12,16,19]])}))()},handleCurrentChange:function(e){this.pagination.page=e,this.handleGetList()},onChangePlatform:function(e){this.filter.platform_id=e||"",this.pagination.page=1,this.handleGetList()},onInputKeyword:function(e){this.filter.keyword=e||"",this.pagination.page=1,this.handleGetList()},handleInitList:function(){this.list=[],this.pagination.total=0,this.pagination.pages=0},handleCancel:function(){this.dialogVisible=!1}}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"select-playlet"},[a("div",{staticClass:"common-screen-item"},[a("label",{staticClass:"common-screen-label"},[e._v("剧集")]),e._v(" "),a("div",{class:["common-screen-self-box","common-input-select"],on:{click:e.handleShowList}},[a("div",{class:["common-screen-self-con"]},[a("div",{staticClass:"common-screen-self-con-div",class:{none:!e.playletRes}},[a("span",[e._v(e._s(e.playletRes?e.playletRes:"请选择剧集"))])]),e._v(" "),e.playletRes?a("i",{staticClass:"el-icon-circle-close clear-btn",on:{click:function(t){return t.stopPropagation(),e.onClickClear.apply(null,arguments)}}}):e._e()]),e._v(" "),e._m(0)])]),e._v(" "),a("el-dialog",{staticClass:"selectPlaylet-dialog",attrs:{visible:e.dialogVisible,"before-close":e.handleCancel,title:"筛选剧集",width:"900px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"filter-wrap"},[a("selfChannel",{attrs:{title:"平台",type:"platform",labelWidth:""},on:{channelDefine:e.onChangePlatform}}),e._v(" "),a("selfInput",{attrs:{label_name:"搜索剧集"},on:{inputChange:e.onInputKeyword}})],1),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"form-wrap"},[a("el-table",{ref:"tableDom",staticStyle:{width:"100%"},attrs:{height:e.height,data:e.list,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"剧名",prop:"name","min-width":"160",align:"center",fixed:"left"}}),e._v(" "),a("el-table-column",{attrs:{label:"封面",prop:"name","min-width":"160",align:"center"},scopedSlots:e._u([{key:"default",fn:function(e){var t=e.row;return[a("el-image",{staticStyle:{width:"40px",height:"60px"},attrs:{src:t.cover_url,"preview-src-list":[t.cover_url]}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"平台",prop:"platform_name","min-width":"160",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s(i.platform_name))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"账号",prop:"account","min-width":"160",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"分类",prop:"category","min-width":"160",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",[e._v(e._s(i.category||"-"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"集数",prop:"section_count","min-width":"160",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"发布时间",prop:"create_date","min-width":"160",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"160",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.finish_state?a("span",{staticClass:"status"},[e._v("已完结")]):a("span",{staticClass:"status"},[e._v("连载中")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"","min-width":"60",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[e.playletRes===i.name?a("span",{staticStyle:{color:"#999"},on:{click:function(t){return e.handleSelect(i)}}},[e._v("已选")]):a("span",{staticClass:"btn",on:{click:function(t){return e.handleSelect(i)}}},[e._v("选择")])]}}])})],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.pagination.total>0,expression:"pagination.total > 0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":e.pagination.page,layout:"prev, pager, next","page-count":Number(e.pagination.pages)},on:{"current-change":e.handleCurrentChange}})],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})])],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-screen-self-icon"},[t("i",{staticClass:"el-icon-arrow-down"})])}]};var u=a("VU/8")(g,f,!1,function(e){a("rRFd")},"data-v-2266c9b0",null).exports,h=(a("M4fF"),{components:{datePicker:c.a,selfChannel:p.a,selectPlaylet:u},data:function(){var e=[this.$getDay(-30,!1),this.$getDay(0,!1)];return{default_time:e,reset:!1,height:"",pageLoading:!1,detailLoading:!1,detailsTableCol:[],pagination:{page:1,page_size:20,pages:0,total:0},filter:{time:e,creator_id:"",playlet:"",sort_field:"paid",sort_type:"desc"}}},created:function(){this.initTableHeight()},methods:{initTableHeight:function(){this.height=document.documentElement.clientHeight-200>400?document.documentElement.clientHeight-200:400},handleGetList:function(){var e=this;return o()(n.a.mark(function t(){var a,i,l,s,o,c,p;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.detailLoading=!0,a={page:e.pagination.page,page_size:e.pagination.page_size,start_date:e.filter.time[0],end_date:e.filter.time[1],creator_id:e.filter.creator_id,playlet:e.filter.playlet,sort_field:e.filter.sort_field,sort_type:e.filter.sort_type},i=""+e.URL.BASEURL+e.URL.dataBoard_loseUser_account,t.next=6,e.$axios.get(i,{params:a});case 6:if(l=t.sent,s=l.data,!(o=void 0===s?{}:s)||0!=o.errno){t.next=23;break}return o.rst.extra[0].fixed="left",o.rst.extra[1].fixed="left",c=[],o.rst.extra.forEach(function(e){e.name&&e.name.length>6&&(e.min_width=20*e.name.length),c.push(e)}),e.detailsTableCol=r()(c),t.next=17,e.$nextTick();case 17:p=Array.isArray(o.rst.data)?o.rst.data:[],e.$refs.detailsTable.reloadData(p),e.pagination.total=o.rst.pageInfo.total,e.pagination.pages=o.rst.pageInfo.pages,t.next=24;break;case 23:4002!=o.errno&&(e.$message.warning(o.err),e.$refs.detailsTable.reloadData([]),e.pagination.total=0,e.pagination.pages=0);case 24:t.next=32;break;case 26:t.prev=26,t.t0=t.catch(0),console.log(t.t0),e.$refs.detailsTable.reloadData([]),e.pagination.total=0,e.pagination.pages=0;case 32:return t.prev=32,e.detailLoading=!1,t.finish(32);case 35:case"end":return t.stop()}},t,e,[[0,26,32,35]])}))()},onChangeTime:function(e){this.filter.time=Array.isArray(e)?e:[],this.pagination.page=1},onChangePlaylet:function(e){this.filter.playlet=e,this.pagination.page=1},onChangeCreatorId:function(e){this.filter.creator_id=e,this.pagination.page=1},handleCurrentChange:function(e){this.pagination.page=e},onClickSearch:function(){this.pagination.page=1},onClickSort:function(e,t){this.filter.sort_field===e?this.filter.sort_type===t?(this.filter.sort_field="paid",this.filter.sort_type="desc"):this.filter.sort_type=t:(this.filter.sort_field=e,this.filter.sort_type=t),this.pagination.page=1},onClickReset:function(){this.reset=!this.reset,this.filter.time=this.default_time,this.filter.creator_id="",this.filter.playlet="",this.filter.sort_field="paid",this.filter.sort_type="desc",this.pagination.page=1},getHeaderCellStyle:function(){return{backgroundColor:"#FFFFFF !important",border:"none!important"}}}}),m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pageLoading,expression:"pageLoading"}],staticClass:"promoteLink-wrap"},[a("div",{staticClass:"screenBox flex"}),e._v(" "),a("div",{staticClass:"screenBox filter-wrap"},[a("datePicker",{staticStyle:{"margin-right":"30px"},attrs:{reset:e.reset,title:"自定义",quickFlag:!0,afferent_time:e.default_time,clearFlag:!1},on:{changeTime:e.onChangeTime}}),e._v(" "),a("selectPlaylet",{staticStyle:{"margin-right":"30px","margin-left":"-60px"},on:{change:e.onChangePlaylet},model:{value:e.filter.playlet,callback:function(t){e.$set(e.filter,"playlet",t)},expression:"filter.playlet"}}),e._v(" "),a("selfChannel",{staticStyle:{"margin-right":"30px","margin-left":"-30px"},attrs:{reset:e.reset,title:"创建人",type:"circleCreate",labelWidth:""},on:{channelDefine:e.onChangeCreatorId}})],1),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.detailLoading,expression:"detailLoading"}]},[a("ux-grid",{ref:"detailsTable",staticClass:"detailsTable",attrs:{border:!1,"header-cell-style":e.getHeaderCellStyle,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini",height:e.height},on:{"row-click":function(){}}},e._l(e.detailsTableCol,function(t,i){return a("ux-table-column",{key:t.column+i,attrs:{resizable:!0,field:t.column,title:t.name,"min-width":t.min_width?t.min_width:140,fixed:t.fixed?t.fixed:"",align:"center"},scopedSlots:e._u([{key:"header",fn:function(){return[a("div",{staticClass:"flex-align-jus-center"},[e._v("\n "+e._s(t.name)+"\n "),t.notes?a("el-tooltip",{attrs:{content:t.notes,placement:"top"}},[a("div",[a("i",{staticClass:"el-icon-question"})])]):e._e(),e._v(" "),t.enable_to_sort?a("div",{staticClass:"sort-wrap"},[a("i",{staticClass:"el-icon-caret-top",class:{active:e.filter.sort_field===t.column&&"asc"===e.filter.sort_type},on:{click:function(a){return e.onClickSort(t.column,"asc")}}}),e._v(" "),a("i",{staticClass:"el-icon-caret-bottom",class:{active:e.filter.sort_field===t.column&&"desc"===e.filter.sort_type},on:{click:function(a){return e.onClickSort(t.column,"desc")}}})]):e._e()],1)]},proxy:!0},{key:"default",fn:function(i){var n=i.row;return["ref_date"===t.column?a("div",[a("span",[e._v(e._s(n.expense_date))]),n.expense_date_end?a("span",[e._v(" ~ "+e._s(n.expense_date_end))]):e._e()]):a("span",[e._v(e._s(n[t.column]?e.$formatNum(n[t.column]):"-"))])]}}],null,!0)})}),1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.pagination.total>0,expression:"pagination.total > 0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":e.pagination.page,layout:"prev, pager, next","page-count":Number(e.pagination.pages)},on:{"current-change":e.handleCurrentChange}})],1)],1)])},staticRenderFns:[]};var _=a("VU/8")(h,m,!1,function(e){a("/057")},"data-v-96e81130",null).exports,v={components:{datePicker:c.a,selfChannel:p.a,selectPlaylet:u},data:function(){var e=[this.$getDay(-30,!1),this.$getDay(0,!1)];return{default_time:e,reset:!1,height:"",pageLoading:!1,detailLoading:!1,detailsTableCol:[],pagination:{page:1,page_size:20,pages:0,total:0},filter:{time:e,playlet:"",sort_field:"paid",sort_type:"desc"}}},created:function(){this.initTableHeight()},methods:{initTableHeight:function(){this.height=document.documentElement.clientHeight-200>400?document.documentElement.clientHeight-200:400},handleGetList:function(){var e=this;return o()(n.a.mark(function t(){var a,i,l,s,o,c,p;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.detailLoading=!0,a={page:e.pagination.page,page_size:e.pagination.page_size,start_date:e.filter.time[0],end_date:e.filter.time[1],playlet:e.filter.playlet,sort_field:e.filter.sort_field,sort_type:e.filter.sort_type},i=""+e.URL.BASEURL+e.URL.dataBoard_loseUser_account,t.next=6,e.$axios.get(i,{params:a});case 6:if(l=t.sent,s=l.data,!(o=void 0===s?{}:s)||0!=o.errno){t.next=23;break}return o.rst.extra[0].fixed="left",o.rst.extra[1].fixed="left",c=[],o.rst.extra.forEach(function(e){e.name&&e.name.length>6&&(e.min_width=20*e.name.length),c.push(e)}),e.detailsTableCol=r()(c),t.next=17,e.$nextTick();case 17:p=Array.isArray(o.rst.data)?o.rst.data:[],e.$refs.detailsTable.reloadData(p),e.pagination.total=o.rst.pageInfo.total,e.pagination.pages=o.rst.pageInfo.pages,t.next=24;break;case 23:4002!=o.errno&&(e.$message.warning(o.err),e.$refs.detailsTable.reloadData([]),e.pagination.total=0,e.pagination.pages=0);case 24:t.next=32;break;case 26:t.prev=26,t.t0=t.catch(0),console.log(t.t0),e.$refs.detailsTable.reloadData([]),e.pagination.total=0,e.pagination.pages=0;case 32:return t.prev=32,e.detailLoading=!1,t.finish(32);case 35:case"end":return t.stop()}},t,e,[[0,26,32,35]])}))()},onChangeTime:function(e){this.filter.time=Array.isArray(e)?e:[],this.pagination.page=1},onChangePlaylet:function(e){this.filter.playlet=e,this.pagination.page=1},handleCurrentChange:function(e){this.pagination.page=e},onClickSearch:function(){this.pagination.page=1},onClickSort:function(e,t){this.filter.sort_field===e?this.filter.sort_type===t?(this.filter.sort_field="paid",this.filter.sort_type="desc"):this.filter.sort_type=t:(this.filter.sort_field=e,this.filter.sort_type=t),this.pagination.page=1},onClickReset:function(){this.reset=!this.reset,this.filter.time=this.default_time,this.filter.playlet="",this.filter.sort_field="paid",this.filter.sort_type="desc",this.pagination.page=1},getHeaderCellStyle:function(){return{backgroundColor:"#FFFFFF !important",border:"none!important"}}}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pageLoading,expression:"pageLoading"}],staticClass:"promotePlaylet-wrap"},[a("div",{staticClass:"screenBox flex"}),e._v(" "),a("div",{staticClass:"screenBox filter-wrap"},[a("datePicker",{staticStyle:{"margin-right":"30px"},attrs:{reset:e.reset,title:"自定义",quickFlag:!0,afferent_time:e.default_time,clearFlag:!1},on:{changeTime:e.onChangeTime}}),e._v(" "),a("selectPlaylet",{staticStyle:{"margin-right":"30px","margin-left":"-60px"},on:{change:e.onChangePlaylet},model:{value:e.filter.playlet,callback:function(t){e.$set(e.filter,"playlet",t)},expression:"filter.playlet"}})],1),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.detailLoading,expression:"detailLoading"}]},[a("ux-grid",{ref:"detailsTable",staticClass:"detailsTable",attrs:{border:!1,"header-cell-style":e.getHeaderCellStyle,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini",height:e.height},on:{"row-click":function(){}}},e._l(e.detailsTableCol,function(t,i){return a("ux-table-column",{key:t.column+i,attrs:{resizable:!0,field:t.column,title:t.name,"min-width":t.min_width?t.min_width:140,fixed:t.fixed?t.fixed:"",align:"center"},scopedSlots:e._u([{key:"header",fn:function(){return[a("div",{staticClass:"flex-align-jus-center"},[e._v("\n "+e._s(t.name)+"\n "),t.notes?a("el-tooltip",{attrs:{content:t.notes,placement:"top"}},[a("div",[a("i",{staticClass:"el-icon-question"})])]):e._e(),e._v(" "),t.enable_to_sort?a("div",{staticClass:"sort-wrap"},[a("i",{staticClass:"el-icon-caret-top",class:{active:e.filter.sort_field===t.column&&"asc"===e.filter.sort_type},on:{click:function(a){return e.onClickSort(t.column,"asc")}}}),e._v(" "),a("i",{staticClass:"el-icon-caret-bottom",class:{active:e.filter.sort_field===t.column&&"desc"===e.filter.sort_type},on:{click:function(a){return e.onClickSort(t.column,"desc")}}})]):e._e()],1)]},proxy:!0},{key:"default",fn:function(i){var n=i.row;return["ref_date"===t.column?a("div",[a("span",[e._v(e._s(n.expense_date))]),n.expense_date_end?a("span",[e._v(" ~ "+e._s(n.expense_date_end))]):e._e()]):a("span",[e._v(e._s(n[t.column]?e.$formatNum(n[t.column]):"-"))])]}}],null,!0)})}),1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.pagination.total>0,expression:"pagination.total > 0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":e.pagination.page,layout:"prev, pager, next","page-count":Number(e.pagination.pages)},on:{"current-change":e.handleCurrentChange}})],1)],1)])},staticRenderFns:[]};var C={components:{promoteLink:_,promotePlaylet:a("VU/8")(v,y,!1,function(e){a("d+QM")},"data-v-6c4139a0",null).exports},data:function(){return{type:1}},methods:{changeType:function(e){this.type=e}}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"topTagBox flex"},[a("div",{staticClass:"left flex-align-center"},[a("div",{class:["tagItem",1===e.type?"tagItem_active":""],on:{click:function(t){return e.changeType(1)}}},[e._v("平台推广链接")]),e._v(" "),a("div",{class:["tagItem",2===e.type?"tagItem_active":""],on:{click:function(t){return e.changeType(2)}}},[e._v("平台推广剧集")])])]),e._v(" "),1===e.type?a("promoteLink"):e._e(),e._v(" "),2===e.type?a("promotePlaylet"):e._e()],1)},staticRenderFns:[]};var x=a("VU/8")(C,b,!1,function(e){a("iXkl")},"data-v-0b21da35",null);t.default=x.exports},"d+QM":function(e,t){},iXkl:function(e,t){},rRFd:function(e,t){}});