1 |
- webpackJsonp([29],{"+Ev6":function(t,e){},"7Q+U":function(t,e){},HsCP:function(t,e){},YIzr:function(t,e){},bGIL:function(t,e){},cCFX:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("Gu7T"),s=i.n(a),n=i("erru"),l=i("gzej"),r={props:["gzhData","editPitcher"],components:{selfChannel:n.a,datePicker:l.a},data:function(){return{drama_id:"",user_id:"",time:[],loading:!1,enable:!0}},created:function(){this.editPitcher&&(this.drama_id=this.editPitcher.drama_id?this.editPitcher.drama_id:"",this.user_id=this.editPitcher.user_id?this.editPitcher.user_id:"",this.time=this.editPitcher.start_date&&this.editPitcher.end_date?[this.editPitcher.start_date,this.editPitcher.end_date]:[],this.enable=1==this.editPitcher.enable)},methods:{changeTime:function(t){!t||t&&0==t.length?this.time=[]:this.time=t},submitEvent:function(){var t=this;if(""!=this.drama_id)if(""!=this.user_id)if(this.time&&""!=this.time&&0!=this.time.length){this.loading=!0;var e=this.URL.pitcher_bind,i={drama_id:this.drama_id,user_id:this.user_id,start_date:this.time[0],end_date:this.time[1]};this.editPitcher&&this.editPitcher.drama_id?(e=this.URL.pitcher_relaEdit,i.rela_id=this.editPitcher.id,i.enable=this.enable?1:0):i.app_id=this.gzhData.wechat_account_id,this.$axios.post(this.URL.BASEURL+e,i).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?t.$emit("returnAddPitcher","update"):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}else this.$message({message:"请选择起止时间",type:"warning"});else this.$message({message:"请选择投手",type:"warning"});else this.$message({message:"请选择短剧",type:"warning"})}}},o={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",{staticClass:"dialogCon"},[i("div",{staticClass:"itemBox"},[t._m(0),t._v(" "),i("self-channel",{attrs:{title:"",width:"250px",type:"dramaList",afferent_value:t.drama_id},on:{channelDefine:function(e){t.drama_id=e}}})],1),t._v(" "),i("div",{staticClass:"itemBox"},[t._m(1),t._v(" "),i("self-channel",{attrs:{title:"",width:"250px",type:"pitcher",afferent_value:t.user_id,afferent_params:{user_id:""}},on:{channelDefine:function(e){t.user_id=e}}})],1),t._v(" "),i("div",{staticClass:"itemBox"},[t._m(2),t._v(" "),i("date-picker",{attrs:{title:"",width:"250px",pickerOptions:{},afferent_time:t.time},on:{changeTime:t.changeTime}})],1),t._v(" "),t.editPitcher?i("div",{staticClass:"itemBox",staticStyle:{"margin-top":"15px"}},[t._m(3),t._v(" "),i("el-switch",{attrs:{"active-color":"#43B083","inactive-color":"#ccc"},model:{value:t.enable,callback:function(e){t.enable=e},expression:"enable"}})],1):t._e()]),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.$emit("returnAddPitcher")}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.submitEvent}},[t._v("确 定")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"name"},[e("em",[this._v("*")]),this._v("短剧:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"name"},[e("em",[this._v("*")]),this._v("选择投手:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"name"},[e("em",[this._v("*")]),this._v("起止时间:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"name"},[e("em",[this._v("*")]),this._v("是否启用:")])}]};var c=i("VU/8")(r,o,!1,function(t){i("bGIL")},"data-v-0c0caac2",null).exports,d={props:["gzhData"],components:{addPitcher:c},data:function(){return{infoList:[],loading:!1,page:1,pages:0,total:0,page_size:40,editTsFlag:!1,editPitcher:{}}},created:function(){this.init(1)},methods:{enableEvent:function(t,e){var i=this;this.loading=!0;var a={drama_id:t.drama_id,user_id:t.user_id,start_date:t.start_date,end_date:t.end_date,rela_id:t.id,enable:e};this.$axios.post(this.URL.BASEURL+this.URL.pitcher_relaEdit,a).then(function(t){t=t.data;i.loading=!1,t&&0==t.errno?i.init(i.page):4002!=t.errno&&i.$message({message:t.err,type:"warning"})}).catch(function(t){i.loading=!1})},editEvent:function(t){this.editPitcher=t,this.editTsFlag=!0},returnAddPitcher:function(t){this.editTsFlag=!1,"update"==t&&this.init(this.page)},init:function(t){var e=this;this.page=t||this.page,this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.pitcher_index,{params:{app_id:this.gzhData.wechat_account_id}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?(e.infoList=t.rst.data,e.total=t.rst.pageInfo.total,e.pages=t.rst.pageInfo.pages):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},handleCurrentChange:function(t){this.init(t)},headerColor:function(t){return{background:"#ebeef5"}}}},h={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"container"},[i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.infoList,"tooltip-effect":"dark","header-cell-style":t.headerColor}},[i("el-table-column",{attrs:{prop:"drama_name",label:"短剧","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"user_name","min-width":"160",label:"推手","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{"min-width":"200",label:"日期",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(e.row.start_date+" - "+e.row.end_date))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.enable?i("span",{staticClass:"c-448AFF"},[t._v("启用")]):i("span",{staticClass:"c-F03F5C"},[t._v("禁用")])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"操作","min-width":"160",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return t.editEvent(e.row)}}},[t._v("编辑")]),t._v(" "),1==e.row.enable?i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return t.enableEvent(e.row,0)}}},[t._v("禁用")]):i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return t.enableEvent(e.row,1)}}},[t._v("启用")])]}}])})],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination"},[i("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),i("el-dialog",{staticClass:"dialogCon_permission",attrs:{title:"编辑投手",visible:t.editTsFlag,"append-to-body":!0,width:"400px"},on:{"update:visible":function(e){t.editTsFlag=e}}},[t.editTsFlag?i("addPitcher",{attrs:{gzhData:t.gzhData,editPitcher:t.editPitcher},on:{returnAddPitcher:t.returnAddPitcher}}):t._e()],1)],1)},staticRenderFns:[]};var u=i("VU/8")(d,h,!1,function(t){i("k/Pv")},"data-v-ee8ffc60",null).exports,_={props:["app_ids","editData"],components:{selfChannel:n.a},data:function(){return{report_type:"",user_id:"",time:[],loading:!1,enable:!0,purchase_enable:!0,miss_enable:!1,miss_setvale:3}},created:function(){this.editData&&this.editData.wechat_account_id&&(this.report_type=this.editData.report_type?this.editData.report_type:"",this.purchase_enable=1==this.editData.purchase_enable,this.miss_enable=1==this.editData.miss_enable,this.miss_setvale=this.editData.miss_setvale,this.enable=1==this.editData.report_enable)},methods:{submitEvent:function(){var t=this;if(""!=this.report_type)if(!this.miss_enable||this.miss_setvale&&""!=this.miss_setvale){this.loading=!0;var e=this.URL.pitcher_setReportRule,i={report_type:this.report_type,app_ids:this.app_ids,enable:this.enable?1:0,purchase_enable:this.purchase_enable?1:0,miss_enable:this.miss_enable?1:0,miss_setvale:this.miss_setvale};this.$axios.post(this.URL.BASEURL+e,i).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?t.$emit("returnReportRule","update"):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}else this.$message({message:"请输入漏单回传单数!",type:"warning"});else this.$message({message:"请选择回传方式",type:"warning"})}}},p={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-top":"-10px"}},[i("div",{staticClass:"dialogCon"},[i("div",{staticClass:"itemBox"},[t._m(0),t._v(" "),i("self-channel",{attrs:{title:"",width:"250px",type:"wx_reportRule",afferent_value:t.report_type},on:{channelDefine:function(e){t.report_type=e}}})],1),t._v(" "),i("div",{staticClass:"itemBox",staticStyle:{"margin-top":"15px"}},[t._m(1),t._v(" "),i("el-switch",{attrs:{"active-color":"#43B083","inactive-color":"#ccc"},model:{value:t.enable,callback:function(e){t.enable=e},expression:"enable"}})],1),t._v(" "),i("div",{staticClass:"itemBox",staticStyle:{"margin-top":"15px"}},[t._m(2),t._v(" "),i("el-switch",{attrs:{"active-color":"#43B083","inactive-color":"#ccc"},model:{value:t.purchase_enable,callback:function(e){t.purchase_enable=e},expression:"purchase_enable"}})],1),t._v(" "),i("div",{staticClass:"itemBox",staticStyle:{"margin-top":"15px","align-items":"baseline"}},[i("div",{staticClass:"name"},[i("em",[t._v("*")]),t._v("漏单回传\n "),i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[t._v("按照下单顺序,传3个单漏一个单"),i("br"),t._v("被漏单的用户进入回传黑名单,以后不参与任何形式的回传,并且在漏单回传的计数规则中不计数")]),t._v(" "),i("i",{staticClass:"el-icon-question"})]),t._v(":\n ")],1),t._v(" "),i("div",[i("el-switch",{attrs:{"active-color":"#43B083","inactive-color":"#ccc"},model:{value:t.miss_enable,callback:function(e){t.miss_enable=e},expression:"miss_enable"}}),t._v(" "),t.miss_enable?i("div",{staticClass:"flex-align-center f13"},[t._v("每"),i("el-input",{staticClass:"miss_input",staticStyle:{width:"60px",margin:"8px 4px"},attrs:{size:"mini",type:"number",placeholder:"单数"},model:{value:t.miss_setvale,callback:function(e){t.miss_setvale=e},expression:"miss_setvale"}}),t._v("单 漏1单")],1):t._e()],1)])]),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.$emit("returnReportRule")}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.submitEvent}},[t._v("确 定")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"name"},[e("em",[this._v("*")]),this._v("回传方式:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"name"},[e("em",[this._v("*")]),this._v("是否启用:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"name"},[e("em",[this._v("*")]),this._v("是否全量回传:")])}]};var v=i("VU/8")(_,p,!1,function(t){i("7Q+U"),i("YIzr")},"data-v-5c68374e",null).exports,m={props:["editData"],components:{selfChannel:n.a},data:function(){return{corpid:"",user_id:"",time:[],loading:!1,user_action_set_id:"",channel:"",is_provisional_stat:0}},created:function(){this.editData&&this.editData.wechat_account_id&&(this.corpid=this.editData.corp_id?this.editData.corp_id:"",this.user_action_set_id=this.editData.user_action_set_id?this.editData.user_action_set_id:"",this.channel=this.editData.channel?this.editData.channel:"",this.is_provisional_stat=this.editData.is_provisional_stat||0===this.editData.is_provisional_stat?this.editData.is_provisional_stat:0)},methods:{submitEvent:function(){var t=this;if(""!=this.user_action_set_id)if(""!=this.corpid){this.loading=!0;var e=this.URL.pitcher_setAccountReportConf,i={user_action_set_id:this.user_action_set_id,corpid:this.corpid,app_id:this.editData.wechat_account_id,channel:this.channel,is_provisional_stat:this.is_provisional_stat};this.$axios.post(this.URL.BASEURL+e,i).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?t.$emit("returnReportRule","update"):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}else this.$message({message:"请选择关联企微",type:"warning"});else this.$message({message:"请输入数据源ID",type:"warning"})}}},g={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"margin-top":"-10px"}},[i("div",{staticClass:"dialogCon"},[i("div",{staticClass:"itemBox"},[t._m(0),t._v(" "),i("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入数据源ID",size:"small",clearable:""},model:{value:t.user_action_set_id,callback:function(e){t.user_action_set_id="string"==typeof e?e.trim():e},expression:"user_action_set_id"}})],1),t._v(" "),i("div",{staticClass:"itemBox"},[t._m(1),t._v(" "),i("self-channel",{attrs:{title:"",width:"250px",type:"corpIdList",afferent_value:t.corpid},on:{channelDefine:function(e){t.corpid=e}}})],1),t._v(" "),i("div",{staticClass:"itemBox"},[i("div",{staticClass:"name"},[t._v("渠道编号:")]),t._v(" "),i("el-input",{staticStyle:{width:"250px"},attrs:{placeholder:"请输入渠道编号",size:"small",clearable:""},model:{value:t.channel,callback:function(e){t.channel="string"==typeof e?e.trim():e},expression:"channel"}})],1),t._v(" "),i("div",{staticClass:"itemBox",staticStyle:{"margin-top":"20px"}},[i("div",{staticClass:"name"},[t._v("临时统计:")]),t._v(" "),i("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.is_provisional_stat,callback:function(e){t.is_provisional_stat=e},expression:"is_provisional_stat"}})],1)]),t._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){return t.$emit("returnReportRule")}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.submitEvent}},[t._v("确 定")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"name"},[e("em",[this._v("*")]),this._v("数据源ID:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"name"},[e("em",[this._v("*")]),this._v("关联企微:")])}]};var f={components:{pitcherList:u,addPitcher:c,reportRule:v,accountReportConf:i("VU/8")(m,g,!1,function(t){i("HsCP")},"data-v-df22f444",null).exports},data:function(){return{loading:!1,page:1,pages:0,total:0,page_size:40,input_keyword:"",gzhData:[],bindTsFlag:!1,tsFalg:!1,tsData:{},multipleSelection:{},multipleArr:[],reportRuleFlag:!1,app_ids:[],editData:{},accountReportConfFlag:!1,heigth:""}},created:function(){this.height=document.documentElement.clientHeight-220>400?document.documentElement.clientHeight-220:400,this.search_change()},mounted:function(){var t=this;window.onresize=function(){t.css_reset()}},methods:{clearSelect:function(){this.multipleArr=[],this.multipleSelection={},this.$refs.multipleTable.clearSelection()},checkSelectable:function(t,e){return!0},handleSelectionChange:function(t){this.multipleSelection[this.page]=t&&0!=t.length?t:[];var e=[];for(var i in this.multipleSelection){var a;e=(a=e).concat.apply(a,s()(this.multipleSelection[i]))}this.multipleArr=e},drawerClose:function(){this.tsFalg=!1,this.gzh_init(this.page)},returnAddPitcher:function(t){"update"==t&&(this.gzh_init(this.page),this.reportRuleFlag&&this.clearSelect()),this.bindTsFlag=!1,this.reportRuleFlag=!1,this.accountReportConfFlag=!1},lookTs:function(t){this.tsData=t,this.tsFalg=!0},bindGzhTs:function(t){this.tsData=t,this.bindTsFlag=!0},editEvent:function(t,e){this.editData=t,"reportRule"==e&&(this.app_ids=[t.wechat_account_id],this.reportRuleFlag=!0,this.clearSelect()),"edit"==e&&(this.accountReportConfFlag=!0)},pl_reportRuleEvent:function(){this.multipleArr&&0!=this.multipleArr.length?(this.app_ids=this.multipleArr.map(function(t){return t.wechat_account_id}),this.editData={},this.reportRuleFlag=!0):this.$message({message:"请选择公众号!",type:"warning"})},search_change:function(){this.gzh_init(1)},changeType:function(t){this.type=t,this.search_change()},gzhCode:function(){var t=this;this.$loading(this.$loadingConfig),this.$axios.get(this.URL.BASEURL+this.URL.wxad_getAuthUrl,{}).then(function(e){e=e.data;var i=document.createElement("a");i.setAttribute("href",e),i.setAttribute("target","_blank"),i.setAttribute("id","gzh_startTelMedicine"),document.body.appendChild(i),i.click(),document.body.removeChild(document.getElementById("gzh_startTelMedicine")),t.$loading(t.$loadingConfig).close()}).catch(function(){t.$loading(t.$loadingConfig).close()})},css_reset:function(){Array.prototype.slice.call(document.getElementsByClassName("corpItemCon")).forEach(function(t,e){t.getElementsByClassName("corpName")[0].offsetHeight>26&&t.classList.add("corpItemConMoreFont")})},resetCorp:function(t){var e=this;this.$loading(this.$loadingConfig),this.$axios.get(this.URL.BASEURL+this.URL.getCorCustomerList,{params:{corpid:t.corpid}}).then(function(t){t=t.data;e.$loading(e.$loadingConfig).close(),t&&0==t.errno?e.$message({message:"同步企业信息成功!",type:"warning"}):e.$message({message:t.err,type:"warning"})}).catch(function(){e.$loading(e.$loadingConfig).close()})},handleCurrentChange:function(t){this.gzh_init(t)},gzh_init:function(t){var e=this;this.page=t||this.page,this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.pitcher_wxAccountList,{params:{page:this.page,page_size:this.page_size}}).then(function(t){t=t.data;if(e.loading=!1,t&&0==t.errno){e.gzhData=t.rst.data,e.total=t.rst.pageInfo.total,e.pages=t.rst.pageInfo.pages;var i=[],a=e.multipleSelection[e.page]?e.multipleSelection[e.page].map(function(t){return t.wechat_account_id}):[];e.gzhData.forEach(function(t){-1!=a.indexOf(t.wechat_account_id)&&i.push(t)}),e.$nextTick(function(){i.forEach(function(t){e.$refs.multipleTable.toggleRowSelection(t,!0)})})}else 4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})}}},b={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[i("div",{staticClass:"tableInfo"},[i("div",{staticClass:"flex"},[i("div",[i("div",{staticClass:"flex"},[i("div",{staticClass:"totalCustom"},[t._v("已授权"),i("span",[t._v(t._s(t.total))]),t._v("个公众号")])]),t._v(" "),i("div",{staticClass:"selectCustom",staticStyle:{"margin-left":"0","margin-top":"6px"}},[t._v("已择"+t._s(t.multipleArr.length)+"个公众号\n "),i("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:t.clearSelect}},[t._v("清空选中")])],1)]),t._v(" "),i("div",{staticClass:"c-FF604D f14 lMar28"},[t._v("重要提示:公众号完成后请及时编辑渠道编号、数据源ID与企微主体")])]),t._v(" "),i("div",{staticClass:"flex"},[i("el-popover",{attrs:{placement:"bottom",width:"600",trigger:"click"}},[i("div",{staticClass:"gzh_why_box"},[i("div",{staticClass:"self-hint",staticStyle:{border:"none"}},[i("div",[i("p",{staticClass:"fbolder f15",staticStyle:{"margin-bottom":"8px"}},[t._v("为什么要进行公众号授权?")]),t._v(" "),i("p",[t._v("授权成功的账号,数据看板才可以提供数据回传和广告数据日报数据,为了获得更好的数据服务,请完成账号授权!")])])])]),t._v(" "),i("div",{staticClass:"why",attrs:{slot:"reference"},slot:"reference"},[t._v("为什么要授权公众号?")])]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.gzhCode}},[t._v("公众号授权")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.pl_reportRuleEvent}},[t._v("批量广告回传设置")])],1)]),t._v(" "),i("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:t.height,data:t.gzhData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",selectable:t.checkSelectable,width:"55",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"account_name","min-width":"160",label:"公众号","show-overflow-tooltip":"",align:"center",fixed:"left"}}),t._v(" "),i("el-table-column",{attrs:{prop:"channel","min-width":"140",label:"渠道编号","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"user_action_set_id","min-width":"160",label:"数据源ID","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"created_at","min-width":"180",label:"授权时间","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"corp_name","min-width":"160",label:"关联企微","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{prop:"drama_count","min-width":"120",label:"关联剧集数量","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{label:"投手","min-width":"120",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"c-00B38A pointer table_button",on:{click:function(i){return t.lookTs(e.row)}}},[t._v("查看投手")])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"rule_name","min-width":"200",label:"下单回传方式","show-overflow-tooltip":"",align:"center"}}),t._v(" "),i("el-table-column",{attrs:{label:"是否全量回传","min-width":"120","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(1==e.row.purchase_enable?"是":"否"))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"漏单回传","min-width":"120",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.miss_enable?i("div",[t._v("已开启("),i("span",{staticClass:"c-00B38A"},[t._v(t._s(e.row.miss_setvale)+"单")]),t._v(")")]):i("div",[t._v("未开启")])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"是否启用","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",[t._v(t._s(1==e.row.report_enable?"是":"否"))])]}}])}),t._v(" "),i("el-table-column",{attrs:{label:"操作","min-width":"220",align:"center",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"flex-align-jus-center"},[i("div",{staticClass:"c-00B38A pointer table_button",on:{click:function(i){return t.bindGzhTs(e.row)}}},[t._v("绑定投手")]),t._v(" "),i("div",{staticClass:"button_line"}),t._v(" "),i("div",{staticClass:"c-00B38A pointer table_button",on:{click:function(i){return t.editEvent(e.row,"reportRule")}}},[t._v("广告回传")]),t._v(" "),i("div",{staticClass:"button_line"}),t._v(" "),i("div",{staticClass:"c-00B38A pointer table_button",on:{click:function(i){return t.editEvent(e.row,"edit")}}},[t._v("编辑")])])]}}])})],1),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination"},[i("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),i("el-dialog",{attrs:{title:"绑定投手",visible:t.bindTsFlag,"append-to-body":!0,width:"400px"},on:{"update:visible":function(e){t.bindTsFlag=e}}},[t.bindTsFlag?i("addPitcher",{attrs:{gzhData:t.tsData},on:{returnAddPitcher:t.returnAddPitcher}}):t._e()],1),t._v(" "),i("el-drawer",{attrs:{size:"60%",title:t.tsData&&t.tsData.account_name?"公众号 - "+t.tsData.account_name:"",visible:t.tsFalg,"before-close":t.drawerClose},on:{"update:visible":function(e){t.tsFalg=e}}},[t.tsFalg?i("pitcherList",{attrs:{gzhData:t.tsData}}):t._e()],1),t._v(" "),i("el-dialog",{attrs:{title:t.editData&&t.editData.wechat_account_id?t.editData.account_name+" - 广告回传设置":"批量广告回传设置",visible:t.reportRuleFlag,"append-to-body":!0,width:"400px"},on:{"update:visible":function(e){t.reportRuleFlag=e}}},[t.reportRuleFlag?i("reportRule",{attrs:{app_ids:t.app_ids,editData:t.editData},on:{returnReportRule:t.returnAddPitcher}}):t._e()],1),t._v(" "),i("el-dialog",{attrs:{title:t.editData.account_name+" - 编辑",visible:t.accountReportConfFlag,"append-to-body":!0,width:"400px"},on:{"update:visible":function(e){t.accountReportConfFlag=e}}},[t.accountReportConfFlag?i("accountReportConf",{attrs:{editData:t.editData},on:{returnReportRule:t.returnAddPitcher}}):t._e()],1)],1)},staticRenderFns:[]};var w=i("VU/8")(f,b,!1,function(t){i("+Ev6")},"data-v-a17ba6cc",null);e.default=w.exports},"k/Pv":function(t,e){}});
|