(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1442e366"],{"2c35":function(e,t,a){"use strict";a.r(t);var s=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:"2"}},[e._v("微信审核失败")]),e._v(" "),a("el-radio-button",{attrs:{label:"3"}},[e._v("微信审核成功")])],1)],1),e._v(" "),a("el-form-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:seckill:product:list"],expression:"['platform:seckill:product:list']"}],attrs:{label:"商户名称:"}},[a("merchant-name",{attrs:{merIdChecked:e.merIds},on:{getMerId:e.getMerId}})],1),e._v(" "),a("el-form-item",{staticClass:"inline",attrs:{label:"商户分类",prop:"categoryId"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择商户分类"},on:{change:function(t){return e.getList(1)}},model:{value:e.tableForm.merType,callback:function(t){e.$set(e.tableForm,"merType",t)},expression:"tableForm.merType"}},e._l(e.merchantClassify,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"直播状态:"}},[a("el-select",{staticClass:"filter-item selWidth",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",{attrs:{label:"商城显示状态:"}},[a("el-select",{staticClass:"filter-item selWidth",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",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.getList(1)}},model:{value:e.tableForm.star,callback:function(t){e.$set(e.tableForm,"star",t)},expression:"tableForm.star"}},e._l(e.recommendedLevelStatus,(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)],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":"120"}}),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:"14",attrs:{label:"显示在商城","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.checkPermi(["platform:mp:live:room:showstore"])?a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},nativeOn:{click:function(a){return e.onchangeStoreShow(t.row)}},model:{value:t.row.storeShow,callback:function(a){e.$set(t.row,"storeShow",a)},expression:"scope.row.storeShow"}}):a("div",[e._v(e._s(1===t.row.storeShow?"显示":"隐藏"))])]}}])}),e._v(" "),a("el-table-column",{key:"15",attrs:{label:"官方收录","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.checkPermi(["platform:mp:live:room:isfeedspubic"])?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(["platform: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:"18",attrs:{label:"回放","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.checkPermi(["platform: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.closeReplay,callback:function(a){e.$set(t.row,"closeReplay",a)},expression:"scope.row.closeReplay"}}):a("div",[e._v(e._s(1===t.row.closeReplay?"开启":"关闭"))])]}}])}),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("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:mp:live:room:list"],expression:"['platform:mp:live:room:list']"}],staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return e.onStudioDetails(t.row,!1)}}},[e._v("详情")]),e._v(" "),0===t.row.reviewStatus&&e.checkPermi(["platform:mp:live:room:review"])?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return e.onStudioDetails(t.row,!0)}}},[e._v("审核")]):e._e(),e._v(" "),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:mp:live:room:delete"],expression:"['platform: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(" "),a("el-drawer",{attrs:{"custom-class":"demo-drawer",direction:"rtl",visible:e.dialogVisible,size:"1000px"},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.close("ruleForm")}}},[a("div",{staticClass:"demo-drawer_title",attrs:{slot:"title"},slot:"title"},[e._v("直播详情")]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"demo-drawer__content"},[a("div",{staticClass:"description"},[a("div",{staticClass:"title"},[e._v("直播间信息")]),e._v(" "),a("div",{staticClass:"acea-row"},[a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播间状态:")]),e._v(e._s(e._f("broadcastStatusFilter")(e.roomInfo.liveStatus))+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播间名称:")]),e._v(e._s(e.roomInfo.roomName))]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播间ID:")]),e._v(e._s(e.roomInfo.id))]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("主播昵称:")]),e._v(e._s(e.roomInfo.anchorName))]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("主播微信号:")]),e._v(e._s(e.roomInfo.anchorWechat)+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("主播副号微信号:")]),e._v(e._s(e.roomInfo.subAnchorWechat)+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("创建者微信号:")]),e._v(e._s(e.roomInfo.activityName)+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("审核结果:")]),e._v(e._s(e._f("roomReviewStatusFilter")(e.roomInfo.reviewStatus))+"\n ")]),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:1===e.roomInfo.reviewStatus||2===e.roomInfo.reviewStatus,expression:"roomInfo.reviewStatus === 1 || roomInfo.reviewStatus === 2"}],staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("审核失败原因:")]),e._v(e._s(e.roomInfo.reviewReason)+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播开始时间:")]),e._v(e._s(e.roomInfo.startTime))]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播预计结束时间:")]),e._v(e._s(e.roomInfo.endTime)+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播间类型:")]),e._v(e._s(1===e.roomInfo.type?"推流":"手机直播")+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播间点赞:")]),e._v(e._s(e._f("roomShowFilter")(e.roomInfo.closeLike))+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播间评论:")]),e._v(e._s(e._f("roomShowFilter")(e.roomInfo.closeComment))+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播间货架:")]),e._v(e._s(e._f("roomShowFilter")(e.roomInfo.closeGoods))+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播间客服:")]),e._v(e._s(e._f("roomShowFilter")(e.roomInfo.closeKf))+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播间回放:")]),e._v(e._s(e._f("roomShowFilter")(e.roomInfo.closeReplay))+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播间分享:")]),e._v(e._s(e._f("roomShowFilter")(e.roomInfo.closeShare))+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播间官方收录:")]),e._v(e._s(1===e.roomInfo.isFeedsPublic?"开启":"关闭")+"\n ")]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("背景图:")]),e._v(" "),a("div",{staticClass:"demo-image__preview mr10"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.roomInfo.coverImgLocal,"preview-src-list":[e.roomInfo.coverImgLocal]}})],1)]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("封面图:")]),e._v(" "),a("div",{staticClass:"demo-image__preview mr10"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.roomInfo.feedsImgLocal,"preview-src-list":[e.roomInfo.feedsImgLocal]}})],1)]),e._v(" "),a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("分享图:")]),e._v(" "),a("div",{staticClass:"demo-image__preview mr10"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.roomInfo.shareImgLocal,"preview-src-list":[e.roomInfo.shareImgLocal]}})],1)]),e._v(" "),3===e.roomInfo.reviewStatus?a("div",{staticClass:"description-term sp100"},[a("label",{staticClass:"name"},[e._v("直播小程序码:")]),e._v(" "),a("div",{staticClass:"demo-image__preview mr10"},[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:e.roomInfo.qrcodeUrl,"preview-src-list":[e.roomInfo.qrcodeUrl]}})],1)]):e._e()])]),e._v(" "),e.goodsList.length>0?a("el-divider"):e._e(),e._v(" "),e.goodsList.length>0?a("div",{staticClass:"description"},[a("div",{staticClass:"title"},[e._v("商品信息")]),e._v(" "),a("div",{staticClass:"acea-row mb20"},[a("div",{staticStyle:{width:"100%"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"tableList",staticStyle:{width:"100%"},attrs:{"row-key":"id",data:e.goodsList,size:"mini",border:"","default-expand-all":"","tree-props":{children:"children"}}},[a("el-table-column",{attrs:{prop:"id",label:"ID","min-width":"50"}}),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)]}}],null,!1,3821445548)}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"商品名称","min-width":"120"}}),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)))])]}}],null,!1,411771551)}),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))])]}}],null,!1,3287871236)})],1)],1)])]):e._e()],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.isReview,expression:"isReview"}],staticClass:"demo-drawer__footer"},[a("div",{staticClass:"from-foot-btn drawer_fix"},[a("div",{staticClass:"acea-row justify-content"},[a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:seckill:product:audit"],expression:"['platform:seckill:product:audit']"},{name:"debounceClick",rawName:"v-debounceClick",value:function(){e.onSubmit(1)},expression:"\n () => {\n onSubmit(1);\n }\n "}],staticStyle:{"margin-left":"0"}},[e._v(e._s(e.loadingBtn?"提交中 ...":"审核拒绝"))]),e._v(" "),a("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["platform:seckill:product:audit"],expression:"['platform:seckill:product:audit']"},{name:"debounceClick",rawName:"v-debounceClick",value:function(){e.onSubmit(3)},expression:"\n () => {\n onSubmit(3);\n }\n "}],attrs:{type:"primary"}},[e._v(e._s(e.loadingBtnSuccess?"提交中 ...":"审核通过"))])],1)])])])],1)},i=[],l=a("b7be"),o=a("2f62"),r=a("2c2c"),n=a("e350");function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function u(e){for(var t=1;t1&&(a.tableFrom.page=a.tableFrom.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:"已取消"})}))},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["y"])(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;liveRoomUpdatereplayApi(e.id,e.closeReplay).then((function(){t.$message.success("操作成功"),t.getList("")}))},onchangeIsFeeds:function(e){var t=this;Object(l["x"])(e.id,e.isFeedsPublic).then((function(){t.$message.success("操作成功"),t.getList("")}))},onchangeStoreShow:function(e){var t=this;Object(l["A"])(e.id,e.storeShow).then((function(){t.$message.success("操作成功"),t.getList("")}))},onchangeIsCommen:function(e){var t=this;Object(l["B"])(e.id,e.closeComment).then((function(){t.$message.success("操作成功"),t.getList("")}))}}},f=b,h=(a("3229"),a("2877")),_=Object(h["a"])(f,s,i,!1,null,"41386922",null);t["default"]=_.exports},3229:function(e,t,a){"use strict";a("acfa")},acfa:function(e,t,a){}}]);