(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41673e14"],{"3df2":function(e,t,a){"use strict";a("9468")},9468:function(e,t,a){},a7fe:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"120px",inline:""}},[a("el-form-item",{staticStyle:{display:"block"},attrs:{label:"状态:"}},[a("el-radio-group",{attrs:{type:"button"},on:{change:function(t){return e.getList(1)}},model:{value:e.reviewStatus,callback:function(t){e.reviewStatus=t},expression:"reviewStatus"}},[a("el-radio-button",{attrs:{label:""}},[e._v("全部")]),e._v(" "),a("el-radio-button",{attrs:{label:"0"}},[e._v("平台待审核")]),e._v(" "),a("el-radio-button",{attrs:{label:"1"}},[e._v("平台审核失败")]),e._v(" "),a("el-radio-button",{attrs:{label:"3"}},[e._v("微信审核成功")]),e._v(" "),a("el-radio-button",{attrs:{label:"2"}},[e._v("微信审核失败")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"商城显示状态:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.getList(1)}},model:{value:e.tableForm.storeShow,callback:function(t){e.$set(e.tableForm,"storeShow",t)},expression:"tableForm.storeShow"}},e._l(e.studioShowStatusList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"直播状态:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.getList(1)}},model:{value:e.tableForm.liveStatus,callback:function(t){e.$set(e.tableForm,"liveStatus",t)},expression:"tableForm.liveStatus"}},e._l(e.studioStatusList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入直播间名称/ID/主播昵称/主播微信号/主播副号微信号/主播手机号",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.keywords,callback:function(t){e.keywords=t},expression:"keywords"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(t){return e.getList(1)}},slot:"append"})],1)],1)],1),e._v(" "),a("router-link",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:mp:live:room:create"],expression:"['merchant:mp:live:room:create']"}],attrs:{to:{path:"/marketing/broadcast/creatRoom"}}},[a("el-button",{staticClass:"mr10",attrs:{size:"small",type:"primary"}},[e._v("添加直播间")])],1),e._v(" "),a("el-popover",{attrs:{placement:"bottom",width:"200",trigger:"click"}},[a("el-image",{attrs:{src:e.code}}),e._v(" "),a("el-button",{attrs:{slot:"reference",size:"small"},slot:"reference"},[e._v("成为主播")])],1)],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"id",label:"ID",width:"40"}}),e._v(" "),a("el-table-column",{attrs:{prop:"roomName",label:"直播间名称","min-width":"130"}}),e._v(" "),a("el-table-column",{attrs:{prop:"anchorName",label:"主播昵称","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{prop:"anchorWechat",label:"主播微信号","min-width":"100"}}),e._v(" "),a("el-table-column",{key:"15",attrs:{label:"官方收录","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.checkPermi(["merchant:mp:live:room:isfeedspublic"])?a("el-switch",{attrs:{disabled:3===t.row.reviewStatus,"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},nativeOn:{click:function(a){return e.onchangeIsFeeds(t.row)}},model:{value:t.row.isFeedsPublic,callback:function(a){e.$set(t.row,"isFeedsPublic",a)},expression:"scope.row.isFeedsPublic"}}):a("div",[e._v(e._s(1===t.row.isFeedsPublic?"开启":"关闭"))])]}}])}),e._v(" "),a("el-table-column",{key:"16",attrs:{label:"禁言","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.checkPermi(["merchant:mp:live:room:updatecomment"])?a("el-switch",{attrs:{disabled:101==t.row.liveStatus&&3===t.row.reviewStatus,"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},nativeOn:{click:function(a){return e.onchangeIsCommen(t.row)}},model:{value:t.row.closeComment,callback:function(a){e.$set(t.row,"closeComment",a)},expression:"scope.row.closeComment"}}):a("div",[e._v(e._s(1===t.row.closeComment?"开启":"关闭"))])]}}])}),e._v(" "),a("el-table-column",{key:"17",attrs:{label:"客服开关","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.checkPermi(["merchant:mp:live:room:closekf"])?a("el-switch",{attrs:{disabled:101==t.row.liveStatus&&3===t.row.reviewStatus,"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},nativeOn:{click:function(a){return e.onchangeIsKf(t.row)}},model:{value:t.row.closeKf,callback:function(a){e.$set(t.row,"closeKf",a)},expression:"scope.row.closeKf"}}):a("div",[e._v(e._s(1===t.row.closeKf?"开启":"关闭"))])]}}])}),e._v(" "),a("el-table-column",{key:"18",attrs:{label:"回放","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.checkPermi(["merchant:mp:live:room:updatereplay"])?a("el-switch",{attrs:{disabled:101!==t.row.liveStatus,"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},nativeOn:{click:function(a){return e.onchangeCloseReplay(t.row)}},model:{value:t.row.liveReplay,callback:function(a){e.$set(t.row,"liveReplay",a)},expression:"scope.row.liveReplay"}}):a("div",[e._v(e._s(1===t.row.liveReplay?"开启":"关闭"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"商城显示","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.storeShow?a("span",[e._v("显示")]):a("span",[e._v("关闭")])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"直播状态","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("broadcastStatusFilter")(t.row.liveStatus)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.reviewStatus||2===t.row.reviewStatus?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.row.reviewReason,placement:"top"}},[1===t.row.reviewStatus?a("el-tag",{attrs:{type:"danger"}},[e._v("平台审核失败")]):e._e(),e._v(" "),2===t.row.reviewStatus?a("el-tag",{attrs:{type:"danger"}},[e._v("微信审核失败")]):e._e()],1):a("div",[0===t.row.reviewStatus?a("el-tag",{attrs:{type:"info"}},[e._v("待审核")]):e._e(),e._v(" "),3===t.row.reviewStatus?a("el-tag",[e._v("微信审核成功")]):e._e()],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"startTime","min-width":"150",label:"直播开始时间"}}),e._v(" "),a("el-table-column",{attrs:{prop:"endTime","min-width":"150",label:"直播计划结束时间"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("router-link",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:mp:live:room:info"],expression:"['merchant:mp:live:room:info']"}],attrs:{to:{path:"/marketing/broadcast/creatRoom/"+t.row.id+"/detail"}}},[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[e._v("详情")])],1),e._v(" "),Number(t.row.liveStatus)<103&&3===t.row.reviewStatus&&1===t.row.closeGoods?a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:mp:live:room:addgoods"],expression:"['merchant:mp:live:room:addgoods']"}],attrs:{type:"text",size:"small"},on:{click:function(a){return e.handleImport(t.row)}}},[e._v("导入商品")]):e._e(),e._v(" "),3===t.row.reviewStatus?a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:mp:live:room:mangerass","merchant:mp:live:room:getass"],expression:"['merchant:mp:live:room:mangerass', 'merchant:mp:live:room:getass']"}],staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return e.onEditAssistant(t.row)}}},[e._v("编辑助手")]):e._e(),e._v(" "),102===t.row.liveStatus&&1===t.row.reviewStatus&&""===t.row.liveStatus?a("router-link",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:mp:live:room:edit"],expression:"['merchant:mp:live:room:edit']"}],attrs:{to:{path:"/marketing/broadcast/creatRoom/"+t.row.id}}},[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"}},[e._v("编辑")])],1):e._e(),e._v(" "),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["merchant:mp:live:room:delete"],expression:"['merchant:mp:live:room:delete']"}],attrs:{type:"text",size:"small"},on:{click:function(a){return e.handleDelete(t.row,t.$index)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.tableForm.limit,"current-page":e.tableForm.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1),e._v(" "),e.dialogVisible?a("el-dialog",{attrs:{title:"商品信息",visible:e.dialogVisible,width:"700px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("div",{staticClass:"box-container"},[a("div",{staticClass:"list"},[a("label",{staticClass:"name"},[e._v("小助手:")]),e._v(" "),a("el-select",{directives:[{name:"selectLoadMore",rawName:"v-selectLoadMore",value:e.selectLoadMore,expression:"selectLoadMore"}],staticClass:"selWidth",attrs:{clearable:"",filterable:"",loading:e.loading,remote:"",multiple:"","remote-method":e.remoteMethod,placeholder:"请选择小助手"},model:{value:e.users,callback:function(t){e.users=t},expression:"users"}},e._l(e.assistantList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.wechatNickname+"/"+e.wechat,value:e.id}})})),1),e._v(" "),a("el-button",{staticStyle:{width:"80px"},attrs:{size:"small",type:"primary"},on:{click:e.handleAssistant}},[e._v("确定")])],1)])])]):e._e(),e._v(" "),a("el-dialog",{attrs:{title:"商品信息",visible:e.importVisible,width:"1000px"},on:{"update:visible":function(t){e.importVisible=t}}},[e.importVisible?a("import-goods",{ref:"uploadGoods",on:{getGoodList:e.getGoodList}}):e._e(),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"直播间分享二维码",visible:e.sharecodeVisible,width:"1000px","before-close":e.handleClose("sharecodeVisible")},on:{"update:visible":function(t){e.sharecodeVisible=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:e.sharecode,"preview-src-list":[e.sharecode]}})],1)])],1)},s=[],l=a("b7be"),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"header clearfix"},[a("div",{staticClass:"filter-container"},[a("div",{staticClass:"demo-input-suffix acea-row"},[a("span",{staticClass:"seachTiele"},[e._v("商品搜索:")]),e._v(" "),a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入商品名称,关键字,产品编号",size:"small"},model:{value:e.keywords,callback:function(t){e.keywords=t},expression:"keywords"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(t){return e.getList()}},slot:"append"})],1)],1)])]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:e.tableData.data,size:"small","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"ID",prop:"id","min-width":"40"}}),e._v(" "),a("el-table-column",{attrs:{label:"商品ID","min-width":"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("filterEmpty")(t.row.productId)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"商品名称","min-width":"130","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.name+"/"+t.row.productId))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("div",{staticClass:"demo-image__preview"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.row.coverImgUrlLocal,"preview-src-list":[e.row.coverImgUrlLocal]}})],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"价格类型","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("priceTypeFilter")(t.row.priceType)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"价格","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.priceType?a("span",[e._v(e._s(t.row.price))]):a("span",[e._v(e._s(t.row.price+"~"+t.row.price2))])]}}])})],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":e.tableForm.limit,"current-page":e.tableForm.page,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)},n=[],r={name:"importGoods",data:function(){return{keywords:"",tableForm:{page:1,limit:20,reviewStatus:4,keywords:""},tableData:{data:[],total:0},multipleSelectionAll:[],multipleSelection:[],listLoading:!1,idKey:"id"}},mounted:function(){this.getList()},methods:{handleSelectionChange:function(e){var t=this;this.multipleSelection=e,setTimeout((function(){t.changePageCoreRecordData();var e=[];t.multipleSelectionAll.length&&t.multipleSelectionAll.map((function(t){e.push(t.goodsId)})),t.$emit("getGoodList",e)}),50)},setSelectRow:function(){if(this.multipleSelectionAll&&!(this.multipleSelectionAll.length<=0)){var e=this.idKey,t=[];this.multipleSelectionAll.forEach((function(a){t.push(a[e])})),this.$refs.table.clearSelection();for(var a=0;a=0&&this.$refs.table.toggleRowSelection(this.tableData.data[a],!0)}},changePageCoreRecordData:function(){var e=this.idKey,t=this;if(this.multipleSelectionAll.length<=0)this.multipleSelectionAll=this.multipleSelection;else{var a=[];this.multipleSelectionAll.forEach((function(t){a.push(t[e])}));var i=[];this.multipleSelection.forEach((function(s){i.push(s[e]),a.indexOf(s[e])<0&&t.multipleSelectionAll.push(s)}));var s=[];this.tableData.data.forEach((function(t){i.indexOf(t[e])<0&&s.push(t[e])})),s.forEach((function(i){if(a.indexOf(i)>=0)for(var s=0;sthis.totalPage||this.getAssistantList()},remoteMethod:function(e){var t=this;this.loading=!0,this.search.keywords=e,this.search.page=1,this.assistantList=[],setTimeout((function(){t.loading=!1,t.getMerList()}),200)},getAssistantList:function(){var e=this;Object(l["n"])(this.search).then((function(t){e.totalPage=t.totalPage,e.total=t.total,e.assistantList=e.assistantList.concat(t.list)}))},roomGoodslist:function(){var e=this;Object(l["E"])(this.roomId).then((function(){e.$message.success("删除成功"),e.tableData.data.splice(idx,1)}))},handleImport:function(e){this.roomId=e.id,this.importVisible=!0},onEditAssistant:function(e){this.assistant=e.assistant,this.users=[],this.roomId=e.id,this.getModifyass(),this.dialogVisible=!0},getModifyass:function(){var e=this;Object(l["C"])(this.roomId).then((function(t){t.map((function(t){e.users.push(t.id)}))}))},handleDelete:function(e,t){var a=this;this.$modalSure("该直播间正在进行直播,删除后不可恢复,您确认删除吗?").then((function(){Object(l["z"])(e.id).then((function(){a.$message.success("删除成功"),1===a.tableData.data.length&&a.tableForm.page>1&&(a.tableForm.page=a.tableForm.page-1),a.getList()}))}))},onPushMessage:function(e){var t=this;this.$confirm("给长期订阅用户推送消息?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(l["studioPushMessageApi"])(e).then((function(e){var a=e.message;t.$message.success(a)})).catch((function(e){var a=e.message;t.$message.error(a)}))})).catch((function(e){t.$message({type:"info",message:"已取消"})}))},onEdit:function(e){},getList:function(e){var t=this;this.listLoading=!0,this.tableData.page=e||this.tableData.page,this.tableForm.keywords=encodeURIComponent(this.keywords),this.tableForm.reviewStatus=this.reviewStatus?Number(this.reviewStatus):null,this.tableForm.liveStatus=this.tableForm.liveStatus?this.tableForm.liveStatus:null,Object(l["I"])(this.tableForm).then((function(e){t.tableData.data=e.list,t.tableData.total=e.total,t.listLoading=!1})).catch((function(e){t.listLoading=!1}))},pageChange:function(e){this.tableForm.page=e,this.getList("")},handleSizeChange:function(e){this.tableForm.limit=e,this.getList("")},onchangeCloseReplay:function(e){var t=this;Object(l["M"])(e.id,e.liveReplay).then((function(){t.$message.success("操作成功"),t.getList("")}))},onchangeIsFeeds:function(e){var t=this;Object(l["H"])(e.id,e.isFeedsPublic).then((function(){t.$message.success("操作成功"),t.getList("")}))},onchangeIsCommen:function(e){var t=this;Object(l["L"])(e.id,e.closeComment).then((function(){t.$message.success("操作成功"),t.getList("")}))},onchangeIsKf:function(e){var t=this;Object(l["K"])(e.id,e.closeKf).then((function(){t.$message.success("操作成功"),t.getList("")}))}}},p=v,b=(a("3df2"),Object(u["a"])(p,i,s,!1,null,"811740f8",null));t["default"]=b.exports}}]);