| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ddf83a10"],{"0419":function(t,a,e){},"0590":function(t,a,e){},"3f68":function(t,a,e){"use strict";var s=e("0590"),i=e.n(s);i.a},"79fe":function(t,a,e){},"7f46":function(t,a,e){"use strict";var s=e("0419"),i=e.n(s);i.a},d9b3:function(t,a,e){"use strict";var s=e("79fe"),i=e.n(s);i.a},e6d3:function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"container"},[e("el-form",{attrs:{size:"small","label-width":"120px",inline:""}},[e("el-form-item",{staticStyle:{display:"block"},attrs:{label:"状态:"}},[e("el-radio-group",{attrs:{type:"button"},on:{change:function(a){return t.getList(1)}},model:{value:t.tableForm.status_tag,callback:function(a){t.$set(t.tableForm,"status_tag",a)},expression:"tableForm.status_tag"}},[e("el-radio-button",{attrs:{label:""}},[t._v("全部")]),t._v(" "),e("el-radio-button",{attrs:{label:"0"}},[t._v("待审核")]),t._v(" "),e("el-radio-button",{attrs:{label:"1"}},[t._v("审核已通过")]),t._v(" "),e("el-radio-button",{attrs:{label:"-1"}},[t._v("审核未通过")])],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"商城显示状态:"}},[e("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(a){return t.getList(1)}},model:{value:t.tableForm.show_type,callback:function(a){t.$set(t.tableForm,"show_type",a)},expression:"tableForm.show_type"}},t._l(t.studioShowStatusList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),e("el-form-item",{attrs:{label:"直播状态:"}},[e("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(a){return t.getList(1)}},model:{value:t.tableForm.live_status,callback:function(a){t.$set(t.tableForm,"live_status",a)},expression:"tableForm.live_status"}},t._l(t.studioStatusList,(function(t){return e("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),e("el-form-item",{staticClass:"width100",attrs:{label:"关键字:"}},[e("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入直播间名称/ID/主播昵称/微信号",size:"small"},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.getList(1)}},model:{value:t.tableForm.keyword,callback:function(a){t.$set(t.tableForm,"keyword",a)},expression:"tableForm.keyword"}},[e("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(a){return t.getList(1)}},slot:"append"})],1)],1)],1),t._v(" "),e("router-link",{attrs:{to:{path:t.roterPre+"/marketing/studio/creatStudio"}}},[e("el-button",{attrs:{size:"small",type:"primary"}},[t._v("创建直播间")])],1)],1)]),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[e("el-table-column",{attrs:{label:"序号","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.$index+(t.tableForm.page-1)*t.tableForm.limit+1))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"直播间名称","min-width":"120"}}),t._v(" "),e("el-table-column",{attrs:{prop:"broadcast_room_id",label:"直播间ID","min-width":"90"}}),t._v(" "),e("el-table-column",{attrs:{prop:"anchor_name",label:"主播昵称","min-width":"90"}}),t._v(" "),e("el-table-column",{attrs:{prop:"anchor_wechat",label:"主播微信号","min-width":"100"}}),t._v(" "),e("el-table-column",{attrs:{prop:"phone",label:"主播手机号","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{prop:"start_time","min-width":"150",label:"直播开始时间"}}),t._v(" "),e("el-table-column",{attrs:{prop:"end_time","min-width":"150",label:"直播计划结束时间"}}),t._v(" "),e("el-table-column",{attrs:{label:"直播状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(t._f("broadcastStatusFilter")(a.row.live_status)))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"create_time","min-width":"150",label:"创建时间"}}),t._v(" "),-1!==t.tableForm.status_tag?e("el-table-column",{key:"5",attrs:{label:"显示状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},nativeOn:{click:function(e){return t.onchangeIsShow(a.row)}},model:{value:a.row.is_mer_show,callback:function(e){t.$set(a.row,"is_mer_show",e)},expression:"scope.row.is_mer_show"}})]}}],null,!1,2851256410)}):t._e(),t._v(" "),e("el-table-column",{attrs:{label:"商城显示","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(a){return[1==a.row.is_mer_show&&1==a.row.is_show?e("span",[t._v("显示")]):0==a.row.is_mer_show&&1==a.row.is_show?e("span",[t._v("商户关闭")]):1==a.row.is_mer_show&&0==a.row.is_show?e("span",[t._v("平台关闭")]):e("span",[t._v("关闭")])]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"审核状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(t._f("liveReviewStatusFilter")(a.row.status)))]),t._v(" "),-1===a.row.status?e("span",{staticStyle:{display:"block","font-size":"12px"}},[t._v("原因 "+t._s(a.row.error_msg))]):t._e()]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"直播商品","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(a){return[2===a.row.status?e("el-button",{key:"4",attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleImport(a.row)}}},[t._v("导入")]):t._e()]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(e){return t.onStudioDetails(a.row.broadcast_room_id,"detail")}}},[t._v("详情")]),t._v(" "),2===a.row.status&&102===a.row.live_status?e("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(e){return t.onStudioDetails(a.row.broadcast_room_id,"edit")}}},[t._v("编辑")]):t._e(),t._v(" "),102!==a.row.live_status||-1!==a.row.status&&0!==a.row.status?t._e():e("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(e){return t.onEdit(a.row.broadcast_room_id)}}},[t._v("编辑")]),t._v(" "),e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleDelete(a.row,a.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),e("div",{staticClass:"block"},[e("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableForm.limit,"current-page":t.tableForm.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),e("details-from",{ref:"studioDetail"}),t._v(" "),e("import-goods",{ref:"uploadGoods"})],1)},i=[],l=(e("7f7f"),e("b7be")),o=e("83d6"),r=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"divBox"},[t.dialogVisible?e("el-dialog",{attrs:{title:"直播间信息",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(a){t.dialogVisible=a}}},[e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[e("div",{staticClass:"box-container"},[e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("直播间名称:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.name))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("主播微信号:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.anchor_wechat))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("直播间ID:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.broadcast_room_id))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("主播昵称:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.anchor_name))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("手机号:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.phone))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("审核结果:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t._f("liveReviewStatusFilter")(t.FormData.status)))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("直播开始时间:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.start_time))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("直播结束时间:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t.FormData.end_time))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("直播间类型:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t._f("broadcastType")(t.FormData.type)))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("显示类型:")]),t._v(" "),e("span",{staticClass:"info"},[t._v(t._s(t._f("broadcastDisplayType")(t.FormData.screen_type)))])]),t._v(" "),e("div",{staticClass:"list sp image"},[e("label",{staticClass:"name"},[t._v("背景图:")]),t._v(" "),e("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.FormData.cover_img}})]),t._v(" "),e("div",{staticClass:"list sp image"},[e("label",{staticClass:"name"},[t._v("分享图:")]),t._v(" "),e("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.FormData.share_img}})]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("是否开启点赞:")]),t._v(" "),e("span",{staticClass:"info blue"},[t._v(t._s(t._f("filterClose")(t.FormData.close_like)))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("是否开启货架:")]),t._v(" "),e("span",{staticClass:"info blue"},[t._v(t._s(t._f("filterClose")(t.FormData.close_goods)))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("是否开启评论:")]),t._v(" "),e("span",{staticClass:"info blue"},[t._v(t._s(t._f("filterClose")(t.FormData.close_comment)))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("是否开启直播回放:")]),t._v(" "),e("span",{staticClass:"info blue"},[t._v(t._s(t.FormData.replay_status?"✔":"✖"))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("是否开启分享:")]),t._v(" "),e("span",{staticClass:"info blue"},[t._v(t._s(t.FormData.close_share?"✖":"✔"))])]),t._v(" "),e("div",{staticClass:"list sp"},[e("label",{staticClass:"name"},[t._v("是否开启客服:")]),t._v(" "),e("span",{staticClass:"info blue"},[t._v(t._s(t.FormData.close_kf?"✖":"✔"))])]),t._v(" "),2===t.FormData.status?e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("已导入直播商品:")]),t._v(" "),"edit"===t.type?e("el-button",{staticClass:"mr10",attrs:{size:"small",type:"primary"},on:{click:function(a){return t.handleImport(t.FormData)}}},[t._v("导入直播商品")]):t._e(),t._v(" "),e("selected-goods",{ref:"selectedGoods",attrs:{type:t.type,broadcast_room_id:t.FormData.broadcast_room_id}})],1):t._e(),t._v(" "),e("div",{staticClass:"list sp100"},[e("label",{staticClass:"name"},[t._v("备注:")]),t._v(" "),e("span",{staticClass:"info"},[e("el-input",{attrs:{type:"textarea",rows:1},model:{value:t.FormData.mark,callback:function(a){t.$set(t.FormData,"mark",a)},expression:"FormData.mark"}})],1)]),t._v(" "),e("div",{staticClass:"list sp100 mt20"},[e("el-button",{staticClass:"el-button el-button--primary el-button--medium",staticStyle:{width:"100%"},attrs:{type:"button",disabled:""==t.FormData.mark},on:{click:function(a){return t.handleRemarks()}}},[t._v("提交")])],1)])])]):t._e(),t._v(" "),e("import-goods",{ref:"uploadGoods"})],1)},n=[],c=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"importedGoods"},[e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"samll","highlight-current-row":""}},[e("el-table-column",{attrs:{prop:"product_id",label:"ID","min-width":"50"}}),t._v(" "),e("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[e("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.cover_img}})]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"name",label:"商品名称","min-width":"120"}}),t._v(" "),e("el-table-column",{attrs:{label:"库存","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("span",[t._v(t._s(a.row.product.stock))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"price",label:"直播价","min-width":"50"}}),t._v(" "),e("el-table-column",{attrs:{prop:"pay_num",label:"销售数量","min-width":"50"}}),t._v(" "),e("el-table-column",{attrs:{prop:"pay_price",label:"销售金额","min-width":"50"}}),t._v(" "),"edit"===t.type?e("el-table-column",{attrs:{label:"操作","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(a){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.handleDelete(a.row.broadcast_goods_id,a.$index)}}},[t._v("删除")])]}}],null,!1,594937396)}):t._e()],1),t._v(" "),e("div",{staticClass:"block mb20"},[e("el-pagination",{attrs:{"page-sizes":[3,6,9],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)},d=[],u=(e("c5f6"),{name:"GoodsList",data:function(){return{listLoading:!0,multipleSelection:[],tableData:{data:[],total:0},tableFrom:{page:1,limit:3,keyword:""}}},props:{broadcast_room_id:{type:Number},type:{type:String,default:"detail"}},watch:{broadcast_room_id:{deep:!0,handler:function(t){this.getList(t)}}},mounted:function(){this.getList(this.broadcast_room_id)},methods:{getList:function(t){var a=this;this.listLoading=!0,Object(l["O"])(t,this.tableFrom).then((function(t){a.tableData.data=t.data.list,a.tableData.total=t.data.count,a.listLoading=!1})).catch((function(t){a.listLoading=!1,a.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList(this.broadcast_room_id)},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(this.broadcast_room_id)},handleDelete:function(t,a){var e=this;this.$modalSureDelete().then((function(){Object(l["e"])({id:t,room_id:e.broadcast_room_id}).then((function(t){var s=t.message;e.$message.success(s),e.tableData.data.splice(a,1)})).catch((function(t){var a=t.message;e.$message.error(a)}))}))}}}),m=u,_=e("2877"),b=Object(_["a"])(m,c,d,!1,null,"60db0230",null),v=b.exports,p=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.importVisible?e("el-dialog",{attrs:{title:"商品信息",visible:t.importVisible,width:"700px","before-close":t.handleClose},on:{"update:visible":function(a){t.importVisible=a}}},[e("div",{staticClass:"divBox"},[e("el-form",[e("el-row",[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"直播间名称:","label-width":"150px"}},[e("span",[t._v(t._s(t.broadcast_room))])])],1),t._v(" "),e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"直播间ID:","label-width":"150px"}},[e("span",[t._v(t._s(t.broadcast_id))])])],1)],1)],1),t._v(" "),e("div",{staticClass:"box-card"},[t.importVisible?e("form-create",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"fc",staticClass:"formBox",attrs:{rule:t.FormData.rule,"handle-icon":"false"},on:{"on-submit":t.onSubmit}}):t._e()],1)],1)]):t._e()},h=[],f=e("30ba"),g=e.n(f),w={name:"importGoods",components:{formCreate:g.a.$form()},data:function(){return{option:{form:{labelWidth:"150px"},global:{upload:{props:{onSuccess:function(t,a){200===t.status&&(a.url=t.data.src)}}}}},importVisible:!1,selectedProducts:"",broadcast_room:"",broadcast_id:"",image:"",FormData:{action:"/mer/studio/goods/create.html",config:{},rule:[{field:"product_id",props:{height:"536px",maxLength:5,modal:{modal:!1},src:"/merchant/setting/broadcastProduct?field=product_id",srcKey:"src",title:"请选择商品",type:"image",width:"60%"},title:"商品:",type:"frame",value:""}]},loading:!1,selectedGoods:[]}},mounted:function(){},methods:{handleClose:function(){this.importVisible=!1,this.FormData.rule[0].value=""},getFrom:function(){},modalPicTap:function(t,a,e){var s=this;this.$modalUpload((function(e){"1"!==t||a||(s.image=e[0])}),t)},onSubmit:function(t){var a=this;this.listLoading=!0,this.selectedProducts=JSON.parse(localStorage.getItem("broadcastPro"))||[];var e=this.filtersArr(this.selectedProducts),s=this.broadcast_id,i={ids:e,room_id:s};Object(l["f"])(i).then((function(t){a.$message.success(t.message),a.listLoading=!1,a.importVisible=!1,a.FormData.rule[0].value="",localStorage.removeItem("broadcastPro")})).catch((function(t){a.listLoading=!1,a.$message.error(t.message),a.FormData.rule[0].value="",a.importVisible=!1}))},filtersArr:function(t){var a=this;return this.selectedGoods=[],t.map((function(t){a.selectedGoods.push(t.broadcast_goods_id)})),this.selectedGoods}}},C=w,y=(e("3f68"),Object(_["a"])(C,p,h,!1,null,"5eee5e4f",null)),D=y.exports,F={name:"studioDetail",components:{selectedGoods:v,importGoods:D},data:function(){return{dialogVisible:!1,option:{form:{labelWidth:"150px"}},FormData:{},loading:!1,type:""}},mounted:function(){},methods:{getData:function(t,a){var e=this;this.loading=!0,this.type=a,Object(l["d"])(t).then((function(t){e.FormData=t.data,e.loading=!1,console.log(e.FormData)})).catch((function(t){e.$message.error(t.message),e.loading=!1}))},handleImport:function(t){this.$refs.uploadGoods.importVisible=!0,this.$refs.uploadGoods.broadcast_id=t.broadcast_room_id,this.$refs.uploadGoods.broadcast_room=t.name,this.$refs.uploadGoods.image="",localStorage.setItem("liveRoom_id",t.broadcast_room_id)},handleRemarks:function(t){var a=this;Object(l["l"])(this.FormData.broadcast_room_id,this.FormData.mark).then((function(t){a.loading=!1,a.$message.success(t.message),a.dialogVisible=!1,a.$emit("getList")})).catch((function(t){a.$message.error(t.message),a.loading=!1}))}}},k=F,x=(e("7f46"),Object(_["a"])(k,r,n,!1,null,"259625a2",null)),$=x.exports,S={name:"StudioList",components:{detailsFrom:$,importGoods:D},data:function(){return{Loading:!1,roterPre:o["roterPre"],dialogVisible:!1,importVisible:!1,listLoading:!0,studioShowStatusList:[{label:"显示",value:3},{label:"商户关闭",value:2},{label:"平台关闭",value:1},{label:"关闭",value:0}],studioStatusList:[{label:"正在进行",value:"101"},{label:"已结束",value:"103"},{label:"未开始",value:"102"},{label:"已过期",value:"107"}],tableData:{data:[],total:0},tableForm:{page:1,limit:20,status_tag:this.$route.query.status?this.$route.query.status:"",keyword:"",show_type:"",status:"",broadcast_room_id:this.$route.query.id?this.$route.query.id:""},broadcast_room_id:this.$route.query.id?this.$route.query.id:"",liveRoomStatus:""}},watch:{broadcast_room_id:function(t,a){this.getList("")}},mounted:function(){this.getList("")},methods:{onStudioDetails:function(t,a){this.broadcast_room_id=t,this.$refs.studioDetail.dialogVisible=!0,this.$refs.studioDetail.getData(t,a)},handleImport:function(t){this.$refs.uploadGoods.importVisible=!0,this.$refs.uploadGoods.broadcast_id=t.broadcast_room_id,this.$refs.uploadGoods.broadcast_room=t.name,this.$refs.uploadGoods.image="",localStorage.setItem("liveRoom_id",t.broadcast_room_id)},handleDelete:function(t,a){var e=this;2==t.status&&101==t.live_status?this.$confirm("该直播间正在进行直播,删除后不可恢复,您确认删除吗?","提示",{confirmButtonText:"删除",cancelButtonText:"不删除",type:"warning"}).then((function(){Object(l["c"])(t.broadcast_room_id).then((function(t){var s=t.message;e.$message.success(s),e.tableData.data.splice(a,1)})).catch((function(t){var a=t.message;e.$message.error(a)}))})).catch((function(t){e.$message({type:"info",message:"已取消"})})):this.$modalSureDelete().then((function(){Object(l["c"])(t.broadcast_room_id).then((function(t){var s=t.message;e.$message.success(s),e.tableData.data.splice(a,1)})).catch((function(t){var a=t.message;e.$message.error(a)}))}))},onEdit:function(t){var a=this;this.$modalForm(Object(l["N"])(t)).then((function(){return a.getList("")}))},getList:function(t){var a=this;this.listLoading=!0,this.tableData.page=t||this.tableData.page,console.log(this.tableForm),Object(l["g"])(this.tableForm).then((function(t){a.tableData.data=t.data.list,a.tableData.total=t.data.count,a.listLoading=!1})).catch((function(t){a.listLoading=!1,a.$message.error(t.message)}))},pageChange:function(t){this.tableForm.page=t,this.getList("")},handleSizeChange:function(t){this.tableForm.limit=t,this.getList("")},onchangeIsShow:function(t){var a=this;Object(l["n"])(t.broadcast_room_id,{is_show:t.is_mer_show}).then((function(t){var e=t.message;a.$message.success(e),a.getList("")})).catch((function(t){var e=t.message;a.$message.error(e)}))}}},L=S,z=(e("d9b3"),Object(_["a"])(L,s,i,!1,null,"f4f43fb4",null));a["default"]=z.exports}}]);
|