webpackJsonp([23],{"GvF+":function(t,e){},IXDg:function(t,e){},P3VX:function(t,e){},e2C1:function(t,e,a){"use strict";var i={name:"dateOnly",props:["dateProps"],data:function(){return{time:[this.$getDay(-31,!1),this.$getDay(-1,!1)],timeList:[{id:1,name:"昨日",start_time:this.$getDay(-1,!1),end_time:this.$getDay(-1,!1)},{id:7,name:"近7日",start_time:this.$getDay(-8,!1),end_time:this.$getDay(-1,!1)},{id:30,name:"近30日",start_time:this.$getDay(-31,!1),end_time:this.$getDay(-1,!1)}],pickerTimes:{disabledDate:function(t){return t>Date.now()}},start_time:this.$getDay(this.dateProps.st?this.dateProps.st:-31,!1),end_time:this.$getDay(this.dateProps.et?this.dateProps.et:-1,!1)}},methods:{changeInit:function(t){this.start_time=t.start_time,this.end_time=t.end_time,this.time=[t.start_time,t.end_time],this.dateProps&&"accountList"==this.dateProps.pageName&&this.$parent.init(1,this.dateProps.pageName),this.dateProps&&"accountAnalysis"==this.dateProps.pageName&&this.$parent.accAnadataTrend()},timeChange:function(t){t&&0!=t.length&&(this.start_time=t[0],this.end_time=t[1],this.dateProps&&"accountList"==this.dateProps.pageName&&this.$parent.init(1,this.dateProps.pageName),this.dateProps&&"accountAnalysis"==this.dateProps.pageName&&this.$parent.accAnadataTrend())}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{staticClass:"commonInfoName"},[t._v(t._s(t.dateProps.name))]),t._v(" "),a("ul",{staticClass:"commonTimeList flex"},[t._l(t.timeList,function(e){return a("li",{key:e.id,class:t.start_time==e.start_time&&t.end_time==e.end_time?"active":"",on:{click:function(a){return t.changeInit(e)}}},[t._v(t._s(e.name))])}),t._v(" "),a("li",{staticClass:"commonTime_container"},[t._v("\n "+t._s(t.time&&0!=t.time.length?t.time[0]+"  ~  "+t.time[1]:"开始时间  -  结束时间")+"\n "),a("i",{staticClass:"iconfont icon-rili_icon"}),t._v(" "),a("el-date-picker",{staticClass:"commonTime_picker",attrs:{size:"small",clearable:!1,"value-format":"yyyy-MM-dd",type:"daterange","picker-options":t.pickerTimes,"range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.timeChange},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}})],1)],2)])},staticRenderFns:[]};var n=a("VU/8")(i,s,!1,function(t){a("GvF+")},"data-v-66ad164c",null);e.a=n.exports},tGvm:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),s=a.n(i),n=a("e2C1"),o=a("S3Xj"),l={name:"authAccountList",components:{dateOnly:n.a,planSetup:o.a},data:function(){return{teamFlag:!1,planFlag:!1,loading:!1,infoList:[],accountInfo:{},qrCodeLoading:!1,qrCodeShow:!1,first_timestamp:"",code_img:"",code_status:"",goKwaiUrl:"",platform:1,teamInfo:{},teamList:[],teamValue:[],teamLoading:!1,personnelAllotmentFlag:!1,personnelAllotmentLoading:!1,personneModel:[],userList:[],sellerUserList:[],userInfo:{},ksCodeShow:!1,ksCodeLoading:!1,ks_code_status:"",ks_code_img:"",ks_xd_seller_id:""}},created:function(){this.userInfo=JSON.parse(this.$localSelfStore.getLocal("userInfo")),this.getTeamListEvent(),this.init(),this.getUrl(),this.getUserListV2()},methods:{goDetail:function(t){var e="快手"==t.platform?"/accountDetial/":"/accountDetialDou/",a=this.$router.resolve({path:e+t.seller_id});window.open(a.href,"_blank")},submitTeamSetup:function(){var t=this;this.teamValue&&""!=this.teamValue&&0!=this.teamValue.length?(this.teamLoading=!0,this.$axios.post(this.URL.BASEURL+this.URL.teamAccountSave,{account_id:this.teamInfo.account_id,platform:this.teamInfo.platform,team_ids:this.teamValue}).then(function(e){e=e.data;t.teamLoading=!1,e&&0==e.errno?(t.$message({message:"团队设置成功",type:"success"}),t.teamInit()):t.$message({message:e.err,type:"warning"})}).catch(function(e){t.teamLoading=!1})):this.$message({message:"请选择团队",type:"warning"})},teamInit:function(){this.teamFlag=!1,this.teamValue=[]},closeTag:function(t,e){this.sellerUserList[e]=this.sellerUserList[e].filter(function(e){return t.admin_id!=e.admin_id}),this.personneModel=this.personneModel.filter(function(e){return e!=t.admin_id})},personneChange:function(){var t=this,e={"主播":[],"工作人员":[]};this.personneModel.forEach(function(a){var i=t.userList.filter(function(t){return t.id==a})[0];-1!=i.position_str.indexOf("主播")?e["主播"].push({admin_id:i.id,admin_name:i.real_name,position_name:i.position_str}):e["工作人员"].push({admin_id:i.id,admin_name:i.real_name,position_name:i.position_str})}),this.sellerUserList=e},submitPersonneSetup:function(){var t=this;this.personneModel&&0!=this.personneModel.length?(this.personnelAllotmentLoading=!0,this.$axios.post(this.URL.BASEURL+this.URL.user_sellerUserOperate,{seller_id:this.teamInfo.account_id,platform:this.teamInfo.platform,admin_ids:s()(this.personneModel)}).then(function(e){e=e.data;t.personnelAllotmentLoading=!1,e&&0==e.errno?t.personnelAllotmentFlag=!1:t.$message({message:e.err,type:"warning"})}).catch(function(e){t.personnelAllotmentLoading=!1})):this.$message({message:"请选择关联工作人员!",type:"warning"})},personnelAllotmentClick:function(t){var e=this;this.teamInfo={account_id:t.seller_id,platform:"快手"==t.platform?1:2,name:t.name,head:t.head},this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.user_sellerUserIndex,{params:{seller_id:this.teamInfo.account_id,platform:this.teamInfo.platform}}).then(function(t){t=t.data;if(e.loading=!1,t&&0==t.errno){e.personnelAllotmentFlag=!0,e.sellerUserList=t.rst;var a=e.sellerUserList["主播"].map(function(t){return t.admin_id}),i=e.sellerUserList["工作人员"].map(function(t){return t.admin_id});e.personneModel=[].concat(a,i)}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},teamSetUp:function(t){var e=this;this.teamInfo={account_id:t.seller_id,platform:"快手"==t.platform?1:2,name:t.name,head:t.head},this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.teamAccountIndex,{params:{account_id:this.teamInfo.account_id,platform:this.teamInfo.platform}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?(e.teamFlag=!0,e.teamValue=t.rst.map(function(t){return t.team_id})):e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},getTeamListEvent:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.team_select,{}).then(function(e){(e=e.data)&&0==e.errno?t.teamList=e.rst:e.errno}).catch(function(t){})},platInit:function(){this.init()},getUrl:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.getAuthorizeUrl,{}).then(function(e){(e=e.data)&&0==e.errno?t.goKwaiUrl=e.rst.url:t.$message({message:e.err,type:"warning"})}).catch(function(t){})},codeClosed:function(){this.qrCodeShow=!1},codeKsClosed:function(){this.ksCodeShow=!1},ksCheckCode:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.kwai_bind_status,{params:{seller_id:this.ks_xd_seller_id}}).then(function(e){e=e.data;t.ks_code_status=e.errno,e&&0==e.errno?(t.ksCodeShow=!1,t.$message({message:"授权成功!",type:"success"}),t.init()):1500==e.errno||1501==e.errno?1501==e.errno&&(t.ksCodeShow=!1,t.$alert(e.err,"提示",{confirmButtonText:"确定"})):4001!=e.errno&&4002!=e.errno&&t.ksCodeShow&&setTimeout(function(){t.ksCheckCode()},1e3)}).catch(function(e){t.ksCodeShow=!1,t.$alert("服务器错误","提示",{confirmButtonText:"确定"})})},addKsAcc:function(){var t=this;this.ks_code_status="",this.$axios.get(this.URL.BASEURL+this.URL.kwai_bind_wrcode,{params:{seller_id:this.ks_xd_seller_id}}).then(function(e){t.ksCodeLoading=!1,(e=e.data)&&0==e.errno?(t.ks_code_img=e.rst.imageData,t.ksCheckCode()):t.$message({message:e.err,type:"warning"})}).catch(function(e){t.ksCodeLoading=!1,t.$message({message:e,type:"warning"})})},addDouAcc:function(){var t=this;this.first_timestamp=Date.parse(new Date),this.$axios.get(this.URL.BASEURL+this.URL.getQrcode,{params:{qrcode_timestamp:this.first_timestamp}}).then(function(e){t.qrCodeLoading=!1,(e=e.data)&&0==e.errno?(t.code_img=e.rst.qrcode,t.checkCode(e.rst.token)):t.$message({message:e.err,type:"warning"})}).catch(function(e){t.qrCodeLoading=!1,t.$message({message:e,type:"warning"})})},checkCode:function(t){var e=this;this.$axios.get(this.URL.BASEURL+this.URL.checkQrcode,{params:{token:t}}).then(function(a){(a=a.data)&&0==a.errno?(e.code_status=a.rst.status,"expired"!=e.code_status&&"confirmed"!=e.code_status&&e.qrCodeShow&&setTimeout(function(){e.checkCode(t)},1e3),"confirmed"==e.code_status&&e.authLogin(a.rst.code)):(e.qrCodeShow=!1,e.$alert(a.err,"提示",{confirmButtonText:"确定"}))}).catch(function(t){e.qrCodeShow=!1,e.$alert("服务器错误","提示",{confirmButtonText:"确定"})})},authLogin:function(t){var e=this;this.$axios.get(this.URL.BASEURL+this.URL.authLogin,{params:{qrcode_timestamp:this.first_timestamp,code:t}}).then(function(t){(t=t.data)&&0==t.errno?(e.qrCodeShow=!1,e.$message({message:"添加成功",type:"success"}),e.init()):(e.qrCodeShow=!1,e.$alert(t.err,"提示",{confirmButtonText:"确定"}))}).catch(function(t){e.$message({message:t,type:"warning"})})},getQianchuanUrl:function(t){var e=this;this.$loading(this.$loadingConfig),this.$axios.get(this.URL.BASEURL+this.URL.getQianchuanAuthorizeUrl,{params:{douyin_uid:t}}).then(function(t){t=t.data;if(e.$loading(e.$loadingConfig).close(),t&&0==t.errno){var a=document.createElement("a");a.setAttribute("href",t.rst.url),a.setAttribute("target","_blank"),a.click(),a.remove()}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.$loading(e.$loadingConfig).close()})},getJinniuUrl:function(t){var e=this;this.$loading(this.$loadingConfig),this.$axios.get(this.URL.BASEURL+this.URL.getJinniuAuthorizeUrl,{params:{ks_id:t}}).then(function(t){t=t.data;if(e.$loading(e.$loadingConfig).close(),t&&0==t.errno){var a=document.createElement("a");a.setAttribute("href",t.rst.url),a.setAttribute("target","_blank"),a.click(),a.remove()}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.$loading(e.$loadingConfig).close()})},getkaifangPingtaiUrl:function(t){var e=this;this.$loading(this.$loadingConfig),this.$axios.get(this.URL.BASEURL+this.URL.getDouyinOpenAuthorizeUrl,{params:{douyin_uid:t}}).then(function(t){t=t.data;if(e.$loading(e.$loadingConfig).close(),t&&0==t.errno){var a=document.createElement("a");a.setAttribute("href",t.rst.url),a.setAttribute("target","_blank"),a.click(),a.remove()}else e.$message({message:t.err,type:"warning"})}).catch(function(t){e.$loading(e.$loadingConfig).close()})},liveSetUp:function(t){this.accountInfo={head:t.head,name:t.name,ruled:t.ruled,sellerId:t.seller_id,type:"抖音"==t.platform?2:1},this.planFlag=!0},closeDialog:function(t){this.planFlag=!1,t&&this.init()},init:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.authAccountList,{params:{platform:this.platform}}).then(function(e){t.loading=!1,(e=e.data)&&0==e.errno?t.infoList=e.rst:4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})},getUserListV2:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.userListForFilter,{params:{is_pos:1}}).then(function(e){(e=e.data)&&0==e.errno?t.userList=e.rst:4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(t){})}}},r={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:"accountPage"},[i("div",{staticClass:"operation_container flex"},[i("div",{staticClass:"commonn_switchBox",staticStyle:{width:"150px"}},[i("button",{class:1==t.platform?"active":"",on:{click:function(e){t.platform=1,t.platInit()}}},[t._v("快手")]),t._v(" "),i("button",{class:2==t.platform?"active":"",on:{click:function(e){t.platform=2,t.platInit()}}},[t._v("抖音")])]),t._v(" "),i("div",{staticClass:"lMarauto"},[i("button",{staticClass:"addButton",on:{click:function(e){t.addDouAcc(),t.qrCodeShow=!0,t.qrCodeLoading=!0}}},[t._v("\n 添加抖音账号\n ")]),t._v(" "),i("button",{staticClass:"addButton"},[i("a",{attrs:{href:t.goKwaiUrl,target:"_blank"}},[t._v("添加快手账号")])])])]),t._v(" "),i("el-dialog",{staticClass:"self_loading_mask_write",attrs:{title:"添加抖音账号",visible:t.qrCodeShow,width:"30%"},on:{"update:visible":function(e){t.qrCodeShow=e},closed:t.codeClosed}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.qrCodeLoading,expression:"qrCodeLoading"}],staticClass:"text-center"},[i("div",[t._v("请使用抖音APP扫码")]),t._v(" "),i("img",{staticClass:"tMar10",staticStyle:{margin:"0 auto"},attrs:{src:"data:image/png;base64,"+t.code_img,alt:""}}),t._v(" "),i("div",{staticClass:"fWeight600 f16 ",class:"new"==t.code_status?"c-FFB055":"scanned"==t.code_status?"c-999":"expired"==t.code_status?"c-555":"confirmed"==t.code_status?"c-58BCA6":""},["scanned"==t.code_status||"confirmed"==t.code_status?i("i",{staticClass:"el-icon-circle-check",class:"confirmed"==t.code_status?"c-58BCA6":"c-999"}):t._e(),t._v("\n "+t._s("new"==t.code_status?"待扫码":"scanned"==t.code_status?"已扫码待确认":"expired"==t.code_status?"已过期":"confirmed"==t.code_status?"已确认":"")+"\n ")]),t._v(" "),"expired"==t.code_status?i("div",{staticClass:"tMar10 pointer c-999",on:{click:function(e){t.qrCodeLoading=!0,t.addDouAcc()}}},[t._v("\n 点击刷新 "),i("i",{staticClass:"el-icon-refresh-right"})]):t._e()])]),t._v(" "),i("el-dialog",{staticClass:"self_loading_mask_write",attrs:{title:"快手小店授权",visible:t.ksCodeShow,width:"30%"},on:{"update:visible":function(e){t.ksCodeShow=e},closed:t.codeKsClosed}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.ksCodeLoading,expression:"ksCodeLoading"}],staticClass:"text-center"},[i("div",[t._v("请使用快手APP扫码")]),t._v(" "),i("img",{staticClass:"tMar10",staticStyle:{margin:"0 auto",width:"200px"},attrs:{src:"data:image/png;base64,"+t.ks_code_img,alt:""}}),t._v(" "),"1500"==t.ks_code_status?i("div",{staticClass:"tMar10 pointer c-F56C6C",on:{click:function(e){t.ksCodeLoading=!0,t.addKsAcc()}}},[t._v("\n 二维码已过期,点击刷新 "),i("i",{staticClass:"el-icon-refresh-right"})]):t._e()])]),t._v(" "),i("div",{staticClass:"table_div"},[i("table",[i("thead",[i("tr",{staticStyle:{"background-color":"#1E2135"}},[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),i("th",{class:1==t.platform?"":"textAlignLeft",staticStyle:{width:"10%","min-width":"160px"},style:1==t.platform?"width:7%;min-width:auto":""},[i("div",{staticClass:"th_title"},[t._v("账号授权")])]),t._v(" "),t._m(3),t._v(" "),1==t.platform?i("th",{staticClass:"textAlignLeft",staticStyle:{width:"17%","min-width":"160px","padding-left":"10px"}},[i("div",{staticClass:"th_title"},[t._v("小店授权")])]):t._e(),t._v(" "),t._m(4),t._v(" "),1==t.userInfo.is_edit?i("th",{staticStyle:{width:"20%","min-width":"160px"}},[i("div",{staticClass:"th_title"},[t._v("操作")])]):t._e()])]),t._v(" "),i("tbody",t._l(t.infoList,function(e){return i("tr",{key:e.seller_id},[i("td",{staticClass:"f13",staticStyle:{"text-align":"left"}},[i("div",{staticClass:"brand_name_icon",on:{click:function(a){return a.stopPropagation(),t.goDetail(e)}}},[i("img",{staticClass:"brand_name_img",attrs:{src:e.head,alt:""}}),t._v(" "),i("div",{staticClass:"line21"},[t._v(t._s(e.name))])])]),t._v(" "),i("td",["快手"==e.platform?i("img",{staticClass:"platImg",attrs:{src:a("FxTv"),alt:""}}):t._e(),t._v(" "),"抖音"==e.platform?i("img",{staticClass:"platImg",attrs:{src:a("AJUD"),alt:""}}):t._e()]),t._v(" "),i("td",[i("span",[t._v(t._s(e.create_time?e.create_time:"-"))])]),t._v(" "),i("td",["抖音"==e.platform?i("div",{staticClass:"authorizeBox"},[i("span",{staticClass:"sq_button",on:{click:function(e){t.addDouAcc(),t.qrCodeShow=!0,t.qrCodeLoading=!0}}},[t._v(t._s("已授权"==e.auth_status?"重新授权":e.auth_status)),"已授权"==e.auth_status?i("i",{staticClass:"el-icon-refresh-right"}):t._e()]),t._v(" "),i("p",{staticClass:"authorizeInfo c-E1E1E1"},[t._v("预计"+t._s(e.auth_expired_at)+"前有效")]),t._v(" "),i("p",{staticClass:"authorizeInfo c-E1E1E1"},[t._v("最近授权:"+t._s(e.last_authorize_at))]),t._v(" "),i("p",{class:["authorizeInfo",1==e.has_open_auth?"c-757D9C":"c-4F7EFF pointer"],on:{click:function(a){a.stopPropagation(),0==e.has_open_auth&&t.getkaifangPingtaiUrl(e.seller_id)}}},[t._v(t._s(1==e.has_open_auth?"开放平台已授权":"开放平台授权"))])]):t._e(),t._v(" "),"快手"==e.platform?i("div",{staticClass:"authorizeBox",staticStyle:{"text-align":"center"}},[i("span",{staticClass:"authorizeButton"},[t._v("已授权")])]):t._e()]),t._v(" "),i("td",[e.adminList&&e.adminList.length>0?t._l(e.adminList,function(e,a){return i("div",{key:e.id,class:0==a?"":"tMar10"},[t._v(t._s(e.real_name))])}):[t._v("-")]],2),t._v(" "),1==t.platform?i("td",{staticStyle:{"padding-left":"10px"}},[i("div",{staticClass:"authorizeBox"},[i("span",{staticClass:"sq_button",on:{click:function(a){t.ks_xd_seller_id=e.seller_id,t.addKsAcc(),t.ksCodeShow=!0,t.ksCodeLoading=!0}}},[t._v(t._s(1==e.xiaodian_auth?"重新授权":"小店授权")),1==e.xiaodian_auth?i("i",{staticClass:"el-icon-refresh-right"}):t._e()]),t._v(" "),1==e.xiaodian_auth?[i("p",{staticClass:"authorizeInfo c-E1E1E1"},[t._v("预计"+t._s(e.xiaodian_bind_expire)+"前有效")]),t._v(" "),i("p",{staticClass:"authorizeInfo c-E1E1E1"},[t._v("最近授权:"+t._s(e.xiaodian_last_bind))])]:t._e()],2)]):t._e(),t._v(" "),i("td",["抖音"==e.platform?i("div",{staticClass:"authorizeBox"},[i("span",{class:["sq_button"],on:{click:function(a){return a.stopPropagation(),t.getQianchuanUrl(e.seller_id)}}},[t._v("千川授权")]),t._v(" "),0!=e.has_ad_account?[i("p",{staticClass:"authorizeInfo c-E1E1E1"},[t._v("千川账户数:"+t._s(e.ad_account_list&&e.ad_account_list.length)+"\n "),i("el-popover",{attrs:{placement:"right",trigger:"click"}},[t._l(e.ad_account_list,function(a,s){return i("div",{key:s+"ad_account_list",staticClass:"ad_account_box",style:s+1==e.ad_account_list.length?"border-bottom:none":""},[i("img",{staticClass:"ad_account_img",attrs:{src:a.advertiser_head,alt:""}}),t._v(" "),i("div",[i("div",{staticClass:"ad_account_info"},[t._v(t._s(a.advertiser_user_name))]),t._v(" "),i("div",{staticClass:"ad_account_info"},[t._v("ID:"+t._s(a.advertiser_id))])])])}),t._v(" "),e.ad_account_list&&e.ad_account_list.length>0?i("i",{staticClass:"iconfont icon-guankanrenshu_icon list_icon",attrs:{slot:"reference"},slot:"reference"}):t._e()],2)],1),t._v(" "),i("p",{staticClass:"authorizeInfo c-E1E1E1"},[t._v("授权时间:"+t._s(e.ad_account_auth_at))])]:t._e()],2):t._e(),t._v(" "),"快手"==e.platform?i("div",{staticClass:"authorizeBox"},[i("span",{class:[0==e.has_ad_account?"sq_button":"authorizeButton"],on:{click:function(a){a.stopPropagation(),0==e.has_ad_account&&t.getJinniuUrl(e.seller_id)}}},[t._v(t._s(0==e.has_ad_account?"磁力金牛授权":"已授权"))]),t._v(" "),0!=e.has_ad_account?[i("p",{staticClass:"authorizeInfo c-E1E1E1"},[t._v("金牛账户数:"+t._s(e.ad_account_list&&e.ad_account_list.length))]),t._v(" "),i("p",{staticClass:"authorizeInfo c-E1E1E1"},[t._v("授权时间:"+t._s(e.ad_account_auth_at))])]:t._e()],2):t._e()]),t._v(" "),1==t.userInfo.is_edit?i("td",[i("el-button",{staticClass:"sq_button",staticStyle:{"border-color":"#4f7eff"},attrs:{size:"mini"},on:{click:function(a){return a.stopPropagation(),t.teamSetUp(e)}}},[t._v("团队设置")]),t._v(" "),i("el-button",{staticClass:"sq_button",staticStyle:{background:"transparent",border:"1px solid #4f7eff",color:"#4f7eff","margin-left":"2px"},attrs:{size:"mini"},on:{click:function(a){return a.stopPropagation(),t.liveSetUp(e)}}},[t._v("直播设置")]),t._v(" "),i("el-button",{staticClass:"sq_button",staticStyle:{background:"#ff9b3b","border-color":"#ff9b3b","margin-left":"2px"},attrs:{size:"mini"},on:{click:function(a){return t.personnelAllotmentClick(e)}}},[t._v("人员分配")])],1):t._e()])}),0)]),t._v(" "),i("el-dialog",{staticClass:"planSetupSelfTitle",attrs:{visible:t.planFlag,width:"630px","close-on-click-modal":!1,top:"60px",left:""},on:{"update:visible":function(e){t.planFlag=e}}},[i("div",{staticClass:"title",attrs:{slot:"title"},slot:"title"},[t._v("直播设置")]),t._v(" "),t.planFlag?i("planSetup",{attrs:{accountInfo:t.accountInfo},on:{closeDialog:t.closeDialog}}):t._e()],1),t._v(" "),i("el-dialog",{attrs:{title:"团队设置",visible:t.teamFlag,width:"400px","close-on-click-modal":!1,top:"60px",left:""},on:{"update:visible":function(e){t.teamFlag=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.teamLoading,expression:"teamLoading"}],staticClass:"teamBox"},[i("div",{staticClass:"accountBox",staticStyle:{margin:"-20px 0 20px 0"}},[i("img",{staticClass:"accountImg",attrs:{src:t.teamInfo.head,alt:""}}),t._v(" "),i("span",{staticClass:"accountName"},[t._v(t._s(t.teamInfo.name))])]),t._v(" "),i("div",{staticClass:"flex"},[i("label",{staticStyle:{"margin-right":"20px"}},[t._v("管理团队")]),t._v(" "),i("el-select",{staticStyle:{flex:"1"},attrs:{multiple:"",placeholder:"请选择",size:"small"},model:{value:t.teamValue,callback:function(e){t.teamValue=e},expression:"teamValue"}},t._l(t.teamList,function(t){return i("el-option",{key:t.id,attrs:{label:t.team_name,value:t.id}})}),1)],1),t._v(" "),i("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center","margin-top":"40px"}},[i("el-button",{attrs:{size:"mini"},on:{click:t.teamInit}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.submitTeamSetup}},[t._v("提 交")])],1)])]),t._v(" "),i("el-dialog",{attrs:{title:"",visible:t.personnelAllotmentFlag,width:"500px","close-on-click-modal":!1,top:"60px",left:""},on:{"update:visible":function(e){t.personnelAllotmentFlag=e}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.personnelAllotmentLoading,expression:"personnelAllotmentLoading"}],staticClass:"teamBox"},[i("div",{staticClass:"accountBox",staticStyle:{margin:"-40px 0 20px 0"}},[i("img",{staticClass:"accountImg",attrs:{src:t.teamInfo.head,alt:""}}),t._v(" "),i("span",{staticClass:"accountName"},[t._v(t._s(t.teamInfo.name))])]),t._v(" "),i("div",{staticClass:"flex"},[i("label",{staticStyle:{"margin-right":"20px"}},[t._v("人员分配")]),t._v(" "),i("el-select",{staticStyle:{width:"70%"},attrs:{filterable:"","collapse-tags":"",multiple:"",placeholder:"请选择新增关联工作人员",size:"small"},on:{change:t.personneChange},model:{value:t.personneModel,callback:function(e){t.personneModel=e},expression:"personneModel"}},t._l(t.userList,function(t){return i("el-option",{key:t.id,attrs:{label:t.real_name+(t.position_str?"("+t.position_str+")":""),value:t.id}})}),1)],1),t._v(" "),i("label",{staticStyle:{display:"block",margin:"20px 0 10px 0"}},[t._v("已选关联人员")]),t._v(" "),this.sellerUserList["工作人员"]&&this.sellerUserList["主播"]&&0==this.sellerUserList["工作人员"].length&&0==this.sellerUserList["主播"].length?i("p",{staticClass:"noPeizhi"},[t._v("暂未配置关联人员")]):[this.sellerUserList["主播"]&&0!=this.sellerUserList["主播"].length?i("p",{staticClass:"smallTitle"},[t._v("主播")]):t._e(),t._v(" "),t._l(this.sellerUserList["主播"],function(e){return i("el-tag",{key:e.admin_id+"tag",staticStyle:{"margin-right":"10px","margin-bottom":"10px"},attrs:{size:"mini",closable:""},on:{close:function(a){return t.closeTag(e,"主播")}}},[t._v("\n "+t._s(e.admin_name)+"\n ")])}),t._v(" "),this.sellerUserList["工作人员"]&&0!=this.sellerUserList["工作人员"].length?i("p",{staticClass:"smallTitle"},[t._v("工作人员")]):t._e(),t._v(" "),t._l(this.sellerUserList["工作人员"],function(e){return i("el-tag",{key:e.admin_id+"tag",staticStyle:{"margin-right":"10px","margin-bottom":"10px"},attrs:{size:"mini",closable:""},on:{close:function(a){return t.closeTag(e,"工作人员")}}},[t._v("\n "+t._s(e.admin_name)+" "+t._s(e.position_name?"("+e.position_name+")":"")+"\n ")])})],t._v(" "),i("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center","margin-top":"40px"}},[i("el-button",{attrs:{size:"mini"},on:{click:function(e){t.personnelAllotmentFlag=!1}}},[t._v("取 消")]),t._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.submitPersonneSetup}},[t._v("提 交")])],1)],2)])],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("th",{staticStyle:{width:"16%","text-align":"left"}},[e("div",{staticClass:"th_title",staticStyle:{"text-align":"left"}},[this._v("账号")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("平台")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",[e("div",{staticClass:"th_title"},[this._v("绑定时间")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",{staticStyle:{width:"10%"}},[e("div",{staticClass:"th_title"},[this._v("授权人")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("th",{staticClass:"textAlignLeft",staticStyle:{width:"10%","min-width":"180px"}},[e("div",{staticClass:"th_title"},[this._v("投放授权")])])}]};var c=a("VU/8")(l,r,!1,function(t){a("IXDg"),a("P3VX")},"data-v-c56e5220",null);e.default=c.exports}});