1 |
- webpackJsonp([53],{"0jyC":function(e,t){},"4aQL":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Gu7T"),i=a.n(n),r=a("Dd8w"),o=a.n(r),s=a("//Fk"),l=a.n(s),c=a("d7EF"),d=a.n(c),p=a("Xxa5"),u=a.n(p),m=a("u2KI"),f=a.n(m),h=a("exGp"),g=a.n(h),_=a("gzej"),v=a("erru"),x={components:{datePicker:_.a,selfChannel:v.a},data:function(){var e=[this.$getDay(0,!1),this.$getDay(0,!1)];return{default_time:e,reset:!1,pageLoading:!1,height:"",summaryLoading:!1,summaryTableCol:[],detailLoading:!1,detailsTableCol:[],pagination:{page:1,page_size:20,pages:0,total:0},filter:{time:e,operator_id:"",app_id:"",closing_date:"",sort_field:"paid",sort_type:"desc"},updateTime:"",isShowEmpty:!1}},computed:{isShowMpBtn:function(){return!!this.$store.state.dataBoardAuth.mp_auth},isCanExport:function(){return!!this.$store.state.dataBoardAuth.can_export}},methods:{handleCreatedFn:function(){this.initTableHeight(),this.handleGetData()},handleGetData:function(){this.handleGetSummaryList(),this.handleGetList(),this.handleGetUpdateTime()},handleGetList:function(){var e=this;return g()(u.a.mark(function t(){var a,n,i,r,o,s,l;return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.detailLoading=!0,a={start_date:e.filter.time[0],end_date:e.filter.time[1],operator_id:e.filter.operator_id,app_id:e.filter.app_id,closing_date:e.filter.closing_date,sort_field:e.filter.sort_field,sort_type:e.filter.sort_type,page:e.pagination.page,page_size:e.pagination.page_size},n=""+e.URL.BASEURL+e.URL.dataBoard_operator_accountData,t.next=6,e.$axios.get(n,{params:a});case 6:if(i=t.sent,r=i.data,!(o=void 0===r?{}:r)||0!=o.errno){t.next=23;break}return o.rst.extra[0].fixed="left",o.rst.extra[1].fixed="left",s=[],o.rst.extra.forEach(function(e){e.name&&e.name.length>6&&(e.min_width=25*e.name.length),s.push(e)}),e.detailsTableCol=f()(s),t.next=17,e.$nextTick();case 17:l=Array.isArray(o.rst.data)?o.rst.data:[],e.$refs.detailsTable.reloadData(l),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]])}))()},handleGetSummaryList:function(){var e=this;return g()(u.a.mark(function t(){var a,n,i,r,o,s,l;return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.summaryLoading=!0,a={start_date:e.filter.time[0],end_date:e.filter.time[1],operator_id:e.filter.operator_id,app_id:e.filter.app_id,closing_date:e.filter.closing_date},n=""+e.URL.BASEURL+e.URL.dataBoard_operator_accountDataSummary,t.next=6,e.$axios.get(n,{params:a});case 6:if(i=t.sent,r=i.data,!(o=void 0===r?{}:r)||0!=o.errno){t.next=21;break}return s=[],o.rst.header.forEach(function(e){e.name&&e.name.length>6&&(e.min_width=25*e.name.length),s.push(e)}),s.unshift({name:"公众号",column:"account_name"}),e.summaryTableCol=f()(s),t.next=16,e.$nextTick();case 16:(l=Array.isArray(o.rst.data)?o.rst.data:[o.rst.data]).forEach(function(e){e.account_name="汇总"}),e.$refs.summaryTable.reloadData(l),t.next=22;break;case 21:4002!=o.errno&&(e.$message.warning(o.err),e.$refs.summaryTable.reloadData([]));case 22:t.next=28;break;case 24:t.prev=24,t.t0=t.catch(0),console.log(t.t0),e.$refs.summaryTable.reloadData([]);case 28:return t.prev=28,e.summaryLoading=!1,t.finish(28);case 31:case"end":return t.stop()}},t,e,[[0,24,28,31]])}))()},handleGetUpdateTime:function(){var e=this;return g()(u.a.mark(function t(){var a,n,i,r;return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a={type:"operate_data_trend"},t.next=4,e.$axios.get(""+e.URL.BASEURL+e.URL.dataBoard_uptime,{params:a});case 4:n=t.sent,i=n.data,(r=void 0===i?{}:i)&&0==r.errno?e.updateTime=r.rst.uptime:4002!=r.errno&&(e.$message.warning(r.err),e.updateTime=""),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),e.updateTime="";case 13:case"end":return t.stop()}},t,e,[[0,10]])}))()},onChangeTime:function(e){this.filter.time=Array.isArray(e)?e:[],this.pagination.page=1,this.handleGetData()},onChangeOperatorId:function(e){this.filter.operator_id=e,this.pagination.page=1,this.handleGetData()},onChangeAccountId:function(e){this.filter.app_id=e,this.pagination.page=1,this.handleGetData()},onChangeClosingDate:function(e){this.filter.closing_date=e||"",this.pagination.page=1,this.handleGetData()},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,this.handleGetData()},handleCurrentChange:function(e){this.pagination.page=e,this.handleGetData()},handleSizeChange:function(e){this.pagination.page_size=e,this.pagination.page=1,this.handleGetData()},onClickReset:function(){this.reset=!this.reset,this.filter.time=this.default_time,this.filter.operator_id="",this.filter.app_id="",this.filter.closing_date="",this.filter.sort_field="paid",this.filter.sort_type="desc",this.pagination.page=1,this.handleGetData()},onClickExport:function(){var e=this;return g()(u.a.mark(function t(){var a,n,i,r,s,c,p,m;return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.pagination.total){t.next=2;break}return t.abrupt("return",e.$message.warning("暂无数据可导出"));case 2:return t.prev=2,e.pageLoading=!0,a={summary:""+e.URL.BASEURL+e.URL.dataBoard_operator_accountDataSummary,detail:""+e.URL.BASEURL+e.URL.dataBoard_operator_accountData},n={start_date:e.filter.time[0],end_date:e.filter.time[1],operator_id:e.filter.operator_id,app_id:e.filter.app_id,closing_date:e.filter.closing_date},t.next=8,l.a.all([e.$axios.get(a.summary,{params:n}),e.$axios.get(a.detail,{params:o()({},n,{sort_field:e.filter.sort_field,sort_type:e.filter.sort_type,page:1,page_size:e.$store.state.exportNumber})})]);case 8:i=t.sent,r=d()(i,2),s=r[0].data,c=void 0===s?{}:s,p=r[1].data,m=void 0===p?{}:p,c&&0==c.errno&&m&&0==m.errno?e.handleExport({summaryData:c.rst,detailData:m.rst}):4002==c.errno&&4002==m.errno||(e.$message.warning(c.err),e.$message.warning(m.err)),t.next=21;break;case 17:t.prev=17,t.t0=t.catch(2),console.log(t.t0),e.$message.warning("导出失败,请重试");case 21:return t.prev=21,e.pageLoading=!1,t.finish(21);case 24:case"end":return t.stop()}},t,e,[[2,17,21,24]])}))()},handleExport:function(e){var t=e.summaryData,a=void 0===t?{}:t,n=e.detailData,r=void 0===n?{}:n;["account_name","operator_name","operate_days"].forEach(function(e){a.data[e]="汇总"});var o=[{tHeader:[].concat(i()(r.extra.map(function(e){return e.name}))),filterVal:[].concat(i()(r.extra.map(function(e){return e.column}))),tableDatas:[a.data].concat(i()(r.data)),sheetName:""}];this.$exportOrder({excelDatas:o,name:"运营公众号数据(导出时间:"+this.$getDay(0)+")"})},getHeaderCellStyle:function(){return{backgroundColor:"#FFFFFF !important",border:"none!important"}},initTableHeight:function(){this.height=document.documentElement.clientHeight-260>400?document.documentElement.clientHeight-260:400}}},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:"operatorWxAccount-wrap"},[a("div",{staticClass:"screenBox"},[a("div",{staticClass:"flex-align-center",staticStyle:{"flex-wrap":"wrap","margin-right":"40px"}},[a("datePicker",{staticStyle:{"margin-right":"30px"},attrs:{title:"自定义",quickFlag:!0,afferent_time:e.default_time,clearFlag:!1,reset:e.reset},on:{changeTime:e.onChangeTime}}),e._v(" "),a("selfChannel",{staticStyle:{"margin-left":"-30px","margin-right":"30px"},attrs:{title:"运营",type:"circleCreate",placeholder:"请选择",labelWidth:!0,reset:e.reset},on:{channelDefine:e.onChangeOperatorId}}),e._v(" "),a("selfChannel",{staticStyle:{"margin-left":"-30px","margin-right":"30px"},attrs:{title:"公众号",type:"officialAccount",placeholder:"请选择",labelWidth:!0,reset:e.reset},on:{channelDefine:e.onChangeAccountId}}),e._v(" "),a("div",{staticClass:"common-screen-item"},[a("label",{staticClass:"common-screen-label"},[e._v("收益截止日期")]),e._v(" "),a("el-date-picker",{staticStyle:{width:"150px"},attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",size:"small"},on:{change:e.onChangeClosingDate},model:{value:e.filter.closing_date,callback:function(t){e.$set(e.filter,"closing_date",t)},expression:"filter.closing_date"}})],1)],1),e._v(" "),a("div",{staticClass:"reset",on:{click:e.onClickReset}},[e._v("重置")]),e._v(" "),e.isCanExport?a("el-button",{staticClass:"export-btn",attrs:{type:"primary",size:"mini"},on:{click:e.onClickExport}},[e._v("导出Excel")]):e._e()],1),e._v(" "),a("div",{staticClass:"update-time"},[a("i",{staticClass:"el-icon-warning-outline"}),e._v("数据更新时间:"+e._s(e.updateTime||"-"))]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.summaryLoading,expression:"summaryLoading"}]},[a("ux-grid",{ref:"summaryTable",staticClass:"summaryTable",attrs:{border:!1,"header-cell-style":e.getHeaderCellStyle,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini"},on:{"row-click":function(){}}},e._l(e.summaryTableCol,function(t,n){return a("ux-table-column",{key:t.column+t.name,attrs:{resizable:!0,field:t.column,title:t.name,"min-width":t.min_width?t.min_width:160,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()],1)]},proxy:!0},{key:"default",fn:function(n){var i=n.row;return[a("span",[e._v(e._s(i[t.column]||0==i[t.column]?e.$formatNum(i[t.column]):"-"))])]}}],null,!0)})}),1)],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,n){return a("ux-table-column",{key:t.column+t.name,attrs:{resizable:!0,field:t.column,title:t.name,"min-width":t.min_width?t.min_width:160,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(n){var i=n.row;return[a("span",[e._v(e._s(i[t.column]||0==i[t.column]?e.$formatNum(i[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, sizes, jumper","page-sizes":[20,50,100],"page-count":Number(e.pagination.pages)},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)])},staticRenderFns:[]};var C=a("VU/8")(x,y,!1,function(e){a("Kiz+")},"data-v-952fab32",null).exports,b={components:{datePicker:_.a,selfChannel:v.a},data:function(){var e=[this.$getDay(0,!1),this.$getDay(0,!1)];return{default_time:e,reset:!1,pageLoading:!1,height:"",summaryLoading:!1,summaryTableCol:[],detailLoading:!1,detailsTableCol:[],pagination:{page:1,page_size:20,pages:0,total:0},filter:{time:e,operator_id:"",closing_date:"",sort_field:"paid",sort_type:"desc"},updateTime:"",isShowEmpty:!1}},computed:{isShowMpBtn:function(){return!!this.$store.state.dataBoardAuth.mp_auth},isCanExport:function(){return!!this.$store.state.dataBoardAuth.can_export}},methods:{handleCreatedFn:function(){this.initTableHeight(),this.handleGetData()},handleGetData:function(){this.handleGetSummaryList(),this.handleGetList(),this.handleGetUpdateTime()},handleGetList:function(){var e=this;return g()(u.a.mark(function t(){var a,n,i,r,o,s,l;return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.detailLoading=!0,a={start_date:e.filter.time[0],end_date:e.filter.time[1],operator_id:e.filter.operator_id,closing_date:e.filter.closing_date,sort_field:e.filter.sort_field,sort_type:e.filter.sort_type,page:e.pagination.page,page_size:e.pagination.page_size},n=""+e.URL.BASEURL+e.URL.dataBoard_operator_data,t.next=6,e.$axios.get(n,{params:a});case 6:if(i=t.sent,r=i.data,!(o=void 0===r?{}:r)||0!=o.errno){t.next=22;break}return o.rst.extra[0].fixed="left",s=[],o.rst.extra.forEach(function(e){e.name&&e.name.length>6&&(e.min_width=25*e.name.length),s.push(e)}),e.detailsTableCol=f()(s),t.next=16,e.$nextTick();case 16:l=Array.isArray(o.rst.data)?o.rst.data:[],e.$refs.detailsTable.reloadData(l),e.pagination.total=o.rst.pageInfo.total,e.pagination.pages=o.rst.pageInfo.pages,t.next=23;break;case 22:4002!=o.errno&&(e.$message.warning(o.err),e.$refs.detailsTable.reloadData([]),e.pagination.total=0,e.pagination.pages=0);case 23:t.next=31;break;case 25:t.prev=25,t.t0=t.catch(0),console.log(t.t0),e.$refs.detailsTable.reloadData([]),e.pagination.total=0,e.pagination.pages=0;case 31:return t.prev=31,e.detailLoading=!1,t.finish(31);case 34:case"end":return t.stop()}},t,e,[[0,25,31,34]])}))()},handleGetSummaryList:function(){var e=this;return g()(u.a.mark(function t(){var a,n,i,r,o,s,l;return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.summaryLoading=!0,a={start_date:e.filter.time[0],end_date:e.filter.time[1],operator_id:e.filter.operator_id,closing_date:e.filter.closing_date},n=""+e.URL.BASEURL+e.URL.dataBoard_operator_dataSummary,t.next=6,e.$axios.get(n,{params:a});case 6:if(i=t.sent,r=i.data,!(o=void 0===r?{}:r)||0!=o.errno){t.next=21;break}return s=[],o.rst.header.forEach(function(e){e.name&&e.name.length>6&&(e.min_width=25*e.name.length),s.push(e)}),s.unshift({name:"运营",column:"operator_name"}),e.summaryTableCol=f()(s),t.next=16,e.$nextTick();case 16:(l=Array.isArray(o.rst.data)?o.rst.data:[o.rst.data]).forEach(function(e){e.operator_name="汇总"}),e.$refs.summaryTable.reloadData(l),t.next=22;break;case 21:4002!=o.errno&&(e.$message.warning(o.err),e.$refs.summaryTable.reloadData([]));case 22:t.next=28;break;case 24:t.prev=24,t.t0=t.catch(0),console.log(t.t0),e.$refs.summaryTable.reloadData([]);case 28:return t.prev=28,e.summaryLoading=!1,t.finish(28);case 31:case"end":return t.stop()}},t,e,[[0,24,28,31]])}))()},handleGetUpdateTime:function(){var e=this;return g()(u.a.mark(function t(){var a,n,i,r;return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a={type:"operate_data_trend"},t.next=4,e.$axios.get(""+e.URL.BASEURL+e.URL.dataBoard_uptime,{params:a});case 4:n=t.sent,i=n.data,(r=void 0===i?{}:i)&&0==r.errno?e.updateTime=r.rst.uptime:4002!=r.errno&&(e.$message.warning(r.err),e.updateTime=""),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),e.updateTime="";case 13:case"end":return t.stop()}},t,e,[[0,10]])}))()},onChangeTime:function(e){this.filter.time=Array.isArray(e)?e:[],this.pagination.page=1,this.handleGetData()},onChangeOperatorId:function(e){this.filter.operator_id=e,this.pagination.page=1,this.handleGetData()},onChangeClosingDate:function(e){this.filter.closing_date=e||"",this.pagination.page=1,this.handleGetData()},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,this.handleGetData()},handleCurrentChange:function(e){this.pagination.page=e,this.handleGetData()},handleSizeChange:function(e){this.pagination.page_size=e,this.pagination.page=1,this.handleGetData()},onClickReset:function(){this.reset=!this.reset,this.filter.time=this.default_time,this.filter.operator_id="",this.filter.closing_date="",this.filter.sort_field="paid",this.filter.sort_type="desc",this.pagination.page=1,this.handleGetData()},onClickExport:function(){var e=this;return g()(u.a.mark(function t(){var a,n,i,r,s,c,p,m;return u.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.pagination.total){t.next=2;break}return t.abrupt("return",e.$message.warning("暂无数据可导出"));case 2:return t.prev=2,e.pageLoading=!0,a={summary:""+e.URL.BASEURL+e.URL.dataBoard_operator_dataSummary,detail:""+e.URL.BASEURL+e.URL.dataBoard_operator_data},n={start_date:e.filter.time[0],end_date:e.filter.time[1],operator_id:e.filter.operator_id,closing_date:e.filter.closing_date},t.next=8,l.a.all([e.$axios.get(a.summary,{params:n}),e.$axios.get(a.detail,{params:o()({},n,{sort_field:e.filter.sort_field,sort_type:e.filter.sort_type,page:1,page_size:e.$store.state.exportNumber})})]);case 8:i=t.sent,r=d()(i,2),s=r[0].data,c=void 0===s?{}:s,p=r[1].data,m=void 0===p?{}:p,c&&0==c.errno&&m&&0==m.errno?e.handleExport({summaryData:c.rst,detailData:m.rst}):4002==c.errno&&4002==m.errno||(e.$message.warning(c.err),e.$message.warning(m.err)),t.next=21;break;case 17:t.prev=17,t.t0=t.catch(2),console.log(t.t0),e.$message.warning("导出失败,请重试");case 21:return t.prev=21,e.pageLoading=!1,t.finish(21);case 24:case"end":return t.stop()}},t,e,[[2,17,21,24]])}))()},handleExport:function(e){var t=e.summaryData,a=void 0===t?{}:t,n=e.detailData,r=void 0===n?{}:n;a.header.forEach(function(e){"时间"===e.name?e.column="ref_date":"账户"===e.name&&(e.column="app_name")});["operator_name","operate_days"].forEach(function(e){a.data[e]="汇总"});var o=[{tHeader:[].concat(i()(r.extra.map(function(e){return e.name}))),filterVal:[].concat(i()(r.extra.map(function(e){return e.column}))),tableDatas:[a.data].concat(i()(r.data)),sheetName:""}];this.$exportOrder({excelDatas:o,name:"运营数据(导出时间:"+this.$getDay(0)+")"})},getHeaderCellStyle:function(){return{backgroundColor:"#FFFFFF !important",border:"none!important"}},initTableHeight:function(){this.height=document.documentElement.clientHeight-260>400?document.documentElement.clientHeight-260:400}}},w={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:"operatorData-wrap"},[a("div",{staticClass:"screenBox"},[a("div",{staticClass:"flex-align-center",staticStyle:{"flex-wrap":"wrap","margin-right":"40px"}},[a("datePicker",{staticStyle:{"margin-right":"30px"},attrs:{title:"自定义",quickFlag:!0,afferent_time:e.default_time,clearFlag:!1,reset:e.reset},on:{changeTime:e.onChangeTime}}),e._v(" "),a("selfChannel",{staticStyle:{"margin-left":"-30px","margin-right":"30px"},attrs:{title:"运营",type:"circleCreate",placeholder:"请选择",labelWidth:!0,reset:e.reset},on:{channelDefine:e.onChangeOperatorId}}),e._v(" "),a("div",{staticClass:"common-screen-item"},[a("label",{staticClass:"common-screen-label"},[e._v("收益截止日期")]),e._v(" "),a("el-date-picker",{staticStyle:{width:"150px"},attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",size:"small"},on:{change:e.onChangeClosingDate},model:{value:e.filter.closing_date,callback:function(t){e.$set(e.filter,"closing_date",t)},expression:"filter.closing_date"}})],1)],1),e._v(" "),a("div",{staticClass:"reset",on:{click:e.onClickReset}},[e._v("重置")]),e._v(" "),e.isCanExport?a("el-button",{staticClass:"export-btn",attrs:{type:"primary",size:"mini"},on:{click:e.onClickExport}},[e._v("导出Excel")]):e._e()],1),e._v(" "),a("div",{staticClass:"update-time"},[a("i",{staticClass:"el-icon-warning-outline"}),e._v("数据更新时间:"+e._s(e.updateTime||"-"))]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.summaryLoading,expression:"summaryLoading"}]},[a("ux-grid",{ref:"summaryTable",staticClass:"summaryTable",attrs:{border:!1,"header-cell-style":e.getHeaderCellStyle,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini"},on:{"row-click":function(){}}},e._l(e.summaryTableCol,function(t,n){return a("ux-table-column",{key:t.column+t.name,attrs:{resizable:!0,field:t.column,title:t.name,"min-width":t.min_width?t.min_width:160,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()],1)]},proxy:!0},{key:"default",fn:function(n){var i=n.row;return[a("span",[e._v(e._s(i[t.column]||0==i[t.column]?e.$formatNum(i[t.column]):"-"))])]}}],null,!0)})}),1)],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,n){return a("ux-table-column",{key:t.column+t.name,attrs:{resizable:!0,field:t.column,title:t.name,"min-width":t.min_width?t.min_width:160,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(n){var i=n.row;return[a("span",[e._v(e._s(i[t.column]||0==i[t.column]?e.$formatNum(i[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, sizes","page-sizes":[20,50,100],"page-count":Number(e.pagination.pages)},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)])},staticRenderFns:[]};var k={components:{operatorWxAccount:C,operatorData:a("VU/8")(b,w,!1,function(e){a("oh47")},"data-v-f8d4e49e",null).exports},data:function(){return{tabList:[{label:"运营公众号数据",comp:"operatorWxAccount"},{label:"运营数据",comp:"operatorData"}],currentComp:"operatorWxAccount"}},mounted:function(){this.handleGetData()},methods:{handleGetData:function(){this.$refs[this.currentComp]&&this.$refs[this.currentComp].handleCreatedFn()},onClickTab:function(e){this.currentComp=e,this.handleGetData()}}},D={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"},e._l(e.tabList,function(t){return a("div",{key:t.comp,class:["tagItem",e.currentComp===t.comp?"tagItem_active":""],on:{click:function(a){return e.onClickTab(t.comp)}}},[e._v(e._s(t.label))])}),0)]),e._v(" "),a("operatorWxAccount",{directives:[{name:"show",rawName:"v-show",value:"operatorWxAccount"===e.currentComp,expression:"currentComp === 'operatorWxAccount'"}],ref:"operatorWxAccount"}),e._v(" "),a("operatorData",{directives:[{name:"show",rawName:"v-show",value:"operatorData"===e.currentComp,expression:"currentComp === 'operatorData'"}],ref:"operatorData"})],1)},staticRenderFns:[]};var L=a("VU/8")(k,D,!1,function(e){a("0jyC")},"data-v-51426a67",null);t.default=L.exports},"Kiz+":function(e,t){},oh47:function(e,t){}});
|