You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
37 KiB
8 lines
37 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-546dc2ee"],{"74bf":function(t,e,a){"use strict";a("e6e3")},"85ba":function(t,e,a){},9920:function(t,e,a){},a247:function(t,e,a){"use strict";a("9920")},b311:function(t,e,a){
|
|
/*!
|
|
* clipboard.js v2.0.4
|
|
* https://zenorocha.github.io/clipboard.js
|
|
*
|
|
* Licensed MIT © Zeno Rocha
|
|
*/
|
|
(function(e,a){t.exports=a()})(0,(function(){return function(t){var e={};function a(s){if(e[s])return e[s].exports;var o=e[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=t,a.c=e,a.d=function(t,e,s){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},a.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(a.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)a.d(s,o,function(e){return t[e]}.bind(null,o));return s},a.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return a.d(e,"a",e),e},a.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},a.p="",a(a.s=0)}([function(t,e,a){"use strict";var s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var a=0;a<e.length;a++){var s=e[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,a,s){return a&&t(e.prototype,a),s&&t(e,s),e}}(),i=a(1),n=d(i),r=a(3),l=d(r),c=a(4),u=d(c);function d(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(t,a){m(this,e);var s=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return s.resolveOptions(a),s.listenClick(t),s}return p(e,t),o(e,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===s(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=(0,u.default)(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new n.default({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return h("action",t)}},{key:"defaultTarget",value:function(t){var e=h("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return h("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,a=!!document.queryCommandSupported;return e.forEach((function(t){a=a&&!!document.queryCommandSupported(t)})),a}}]),e}(l.default);function h(t,e){var a="data-clipboard-"+t;if(e.hasAttribute(a))return e.getAttribute(a)}t.exports=v},function(t,e,a){"use strict";var s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var a=0;a<e.length;a++){var s=e[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,a,s){return a&&t(e.prototype,a),s&&t(e,s),e}}(),i=a(2),n=r(i);function r(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var c=function(){function t(e){l(this,t),this.resolveOptions(e),this.initSelection()}return o(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var t=this,e="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[e?"right":"left"]="-9999px";var a=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=a+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,n.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,n.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var t=void 0;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==("undefined"===typeof t?"undefined":s(t))||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}();t.exports=c},function(t,e){function a(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var a=t.hasAttribute("readonly");a||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),a||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var s=window.getSelection(),o=document.createRange();o.selectNodeContents(t),s.removeAllRanges(),s.addRange(o),e=s.toString()}return e}t.exports=a},function(t,e){function a(){}a.prototype={on:function(t,e,a){var s=this.e||(this.e={});return(s[t]||(s[t]=[])).push({fn:e,ctx:a}),this},once:function(t,e,a){var s=this;function o(){s.off(t,o),e.apply(a,arguments)}return o._=e,this.on(t,o,a)},emit:function(t){var e=[].slice.call(arguments,1),a=((this.e||(this.e={}))[t]||[]).slice(),s=0,o=a.length;for(s;s<o;s++)a[s].fn.apply(a[s].ctx,e);return this},off:function(t,e){var a=this.e||(this.e={}),s=a[t],o=[];if(s&&e)for(var i=0,n=s.length;i<n;i++)s[i].fn!==e&&s[i].fn._!==e&&o.push(s[i]);return o.length?a[t]=o:delete a[t],this}},t.exports=a},function(t,e,a){var s=a(5),o=a(6);function i(t,e,a){if(!t&&!e&&!a)throw new Error("Missing required arguments");if(!s.string(e))throw new TypeError("Second argument must be a String");if(!s.fn(a))throw new TypeError("Third argument must be a Function");if(s.node(t))return n(t,e,a);if(s.nodeList(t))return r(t,e,a);if(s.string(t))return l(t,e,a);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function n(t,e,a){return t.addEventListener(e,a),{destroy:function(){t.removeEventListener(e,a)}}}function r(t,e,a){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,a)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,a)}))}}}function l(t,e,a){return o(document.body,t,e,a)}t.exports=i},function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var a=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===a||"[object HTMLCollection]"===a)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},function(t,e,a){var s=a(7);function o(t,e,a,s,o){var i=n.apply(this,arguments);return t.addEventListener(a,i,o),{destroy:function(){t.removeEventListener(a,i,o)}}}function i(t,e,a,s,i){return"function"===typeof t.addEventListener?o.apply(null,arguments):"function"===typeof a?o.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return o(t,e,a,s,i)})))}function n(t,e,a,o){return function(a){a.delegateTarget=s(a.target,e),a.delegateTarget&&o.call(t,a)}}t.exports=i},function(t,e){var a=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var s=Element.prototype;s.matches=s.matchesSelector||s.mozMatchesSelector||s.msMatchesSelector||s.oMatchesSelector||s.webkitMatchesSelector}function o(t,e){while(t&&t.nodeType!==a){if("function"===typeof t.matches&&t.matches(e))return t;t=t.parentNode}}t.exports=o}])}))},e608:function(t,e,a){"use strict";a("85ba")},e6d3:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;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(e){return t.getList(1)}},model:{value:t.tableForm.status_tag,callback:function(e){t.$set(t.tableForm,"status_tag",e)},expression:"tableForm.status_tag"}},[a("el-radio-button",{attrs:{label:""}},[t._v("全部")]),t._v(" "),a("el-radio-button",{attrs:{label:"0"}},[t._v("待审核")]),t._v(" "),a("el-radio-button",{attrs:{label:"1"}},[t._v("审核已通过")]),t._v(" "),a("el-radio-button",{attrs:{label:"-1"}},[t._v("审核未通过")])],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商城显示状态:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableForm.show_type,callback:function(e){t.$set(t.tableForm,"show_type",e)},expression:"tableForm.show_type"}},t._l(t.studioShowStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"直播状态:"}},[a("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableForm.live_status,callback:function(e){t.$set(t.tableForm,"live_status",e)},expression:"tableForm.live_status"}},t._l(t.studioStatusList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"关键字:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入直播间名称/ID/主播昵称/微信号",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableForm.keyword,callback:function(e){t.$set(t.tableForm,"keyword",e)},expression:"tableForm.keyword"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1),t._v(" "),a("router-link",{attrs:{to:{path:t.roterPre+"/marketing/studio/creatStudio"}}},[a("el-button",{attrs:{size:"small",type:"primary"}},[t._v("创建直播间")])],1)],1)]),t._v(" "),a("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":""}},[a("el-table-column",{attrs:{label:"序号","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.tableForm.page-1)*t.tableForm.limit+1))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"直播间名称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{prop:"broadcast_room_id",label:"直播间ID","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"anchor_name",label:"主播昵称","min-width":"90"}}),t._v(" "),a("el-table-column",{attrs:{prop:"anchor_wechat",label:"主播微信号","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"phone",label:"主播手机号","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"start_time","min-width":"150",label:"直播开始时间"}}),t._v(" "),a("el-table-column",{attrs:{prop:"end_time","min-width":"150",label:"直播计划结束时间"}}),t._v(" "),a("el-table-column",{attrs:{label:"直播状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("broadcastStatusFilter")(e.row.live_status)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time","min-width":"150",label:"创建时间"}}),t._v(" "),-1!==t.tableForm.status_tag?a("el-table-column",{key:"5",attrs:{label:"显示状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"显示","inactive-text":"隐藏"},nativeOn:{click:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_mer_show,callback:function(a){t.$set(e.row,"is_mer_show",a)},expression:"scope.row.is_mer_show"}})]}}],null,!1,2851256410)}):t._e(),t._v(" "),a("el-table-column",{key:"15",attrs:{label:"开启收录","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.status?a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},nativeOn:{click:function(a){return t.onchangeIsFeeds(e.row)}},model:{value:e.row.is_feeds_public,callback:function(a){t.$set(e.row,"is_feeds_public",a)},expression:"scope.row.is_feeds_public"}}):a("el-switch",{attrs:{disabled:"","active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},model:{value:e.row.is_feeds_public,callback:function(a){t.$set(e.row,"is_feeds_public",a)},expression:"scope.row.is_feeds_public"}})]}}])}),t._v(" "),a("el-table-column",{key:"16",attrs:{label:"禁言","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.status?a("el-switch",{attrs:{"active-value":0,"inactive-value":1,"active-text":"开启","inactive-text":"关闭"},nativeOn:{click:function(a){return t.onchangeIsCommen(e.row)}},model:{value:e.row.close_comment,callback:function(a){t.$set(e.row,"close_comment",a)},expression:"scope.row.close_comment"}}):a("el-switch",{attrs:{disabled:"","active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},model:{value:e.row.close_comment,callback:function(a){t.$set(e.row,"close_comment",a)},expression:"scope.row.close_comment"}})]}}])}),t._v(" "),a("el-table-column",{key:"17",attrs:{label:"客服开关","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.status?a("el-switch",{attrs:{"active-value":0,"inactive-value":1,"active-text":"开启","inactive-text":"关闭"},nativeOn:{click:function(a){return t.onchangeIsKf(e.row)}},model:{value:e.row.close_kf,callback:function(a){t.$set(e.row,"close_kf",a)},expression:"scope.row.close_kf"}}):a("el-switch",{attrs:{disabled:"","active-value":0,"inactive-value":1,"active-text":"开启","inactive-text":"关闭"},model:{value:e.row.close_kf,callback:function(a){t.$set(e.row,"close_kf",a)},expression:"scope.row.close_kf"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"商城显示","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.is_mer_show&&1==e.row.is_show?a("span",[t._v("显示")]):0==e.row.is_mer_show&&1==e.row.is_show?a("span",[t._v("商户关闭")]):1==e.row.is_mer_show&&0==e.row.is_show?a("span",[t._v("平台关闭")]):a("span",[t._v("关闭")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"审核状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("liveReviewStatusFilter")(e.row.status)))]),t._v(" "),-1===e.row.status?a("span",{staticStyle:{display:"block","font-size":"12px"}},[t._v("原因 "+t._s(e.row.error_msg))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"直播商品","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[2===e.row.status?a("el-button",{key:"4",attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleImport(e.row)}}},[t._v("导入")]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.onStudioDetails(e.row.broadcast_room_id,"detail")}}},[t._v("详情")]),t._v(" "),a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEditAssistant(e.row.broadcast_room_id)}}},[t._v("编辑助手")]),t._v(" "),2===e.row.status&&102===e.row.live_status?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.onStudioDetails(e.row.broadcast_room_id,"edit")}}},[t._v("编辑")]):t._e(),t._v(" "),102!==e.row.live_status||-1!==e.row.status&&0!==e.row.status?t._e():a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.broadcast_room_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("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(" "),a("details-from",{ref:"studioDetail"}),t._v(" "),a("import-goods",{ref:"uploadGoods"})],1)},o=[],i=(a("7f7f"),a("b7be")),n=a("83d6"),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[t.dialogVisible?a("el-dialog",{attrs:{title:"直播间信息",visible:t.dialogVisible,width:"700px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("div",{staticClass:"box-container"},[a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("直播间名称:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t.FormData.name))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("主播微信号:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t.FormData.anchor_wechat))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("直播间ID:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t.FormData.broadcast_room_id))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("主播昵称:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t.FormData.anchor_name))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("手机号:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t.FormData.phone))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("审核结果:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t._f("liveReviewStatusFilter")(t.FormData.status)))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("直播开始时间:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t.FormData.start_time))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("直播结束时间:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t.FormData.end_time))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("直播间类型:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t._f("broadcastType")(t.FormData.type)))])]),t._v(" "),1==t.FormData.type?a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("显示类型:")]),t._v(" "),a("span",{staticClass:"info"},[t._v(t._s(t._f("broadcastDisplayType")(t.FormData.screen_type)))])]):t._e(),t._v(" "),1==t.FormData.type&&t.FormData.push_url?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name",staticStyle:{float:"left"}},[t._v("推流地址:")]),t._v(" "),a("span",{staticClass:"info line1",staticStyle:{float:"left",width:"300px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(t.FormData.push_url))]),t._v(" "),a("el-button",{staticClass:"copyBtn",attrs:{type:"primary",plain:""},on:{click:function(e){return t.handleClipboard(t.FormData.push_url,e)}}},[t._v("复制")])],1):t._e(),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("是否开启点赞:")]),t._v(" "),a("span",{staticClass:"info blue"},[t._v(t._s(t.FormData.close_like?"✖":"✔"))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("是否开启货架:")]),t._v(" "),a("span",{staticClass:"info blue"},[t._v(t._s(t.FormData.close_goods?"✖":"✔"))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("是否开启评论:")]),t._v(" "),a("span",{staticClass:"info blue"},[t._v(t._s(t.FormData.close_comment?"✖":"✔"))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("是否开启直播回放:")]),t._v(" "),a("span",{staticClass:"info blue"},[t._v(t._s(t.FormData.replay_status?"✔":"✖"))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("是否开启分享:")]),t._v(" "),a("span",{staticClass:"info blue"},[t._v(t._s(t.FormData.close_share?"✖":"✔"))])]),t._v(" "),a("div",{staticClass:"list sp"},[a("label",{staticClass:"name"},[t._v("是否开启客服:")]),t._v(" "),a("span",{staticClass:"info blue"},[t._v(t._s(t.FormData.close_kf?"✖":"✔"))])]),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("是否开启官方收录:")]),t._v(" "),a("span",{staticClass:"info blue"},[t._v(t._s(t.FormData.is_feeds_public?"✔":"✖"))])]),t._v(" "),a("div",{staticClass:"list sp image"},[a("label",{staticClass:"name"},[t._v("背景图:")]),t._v(" "),a("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.FormData.cover_img}})]),t._v(" "),a("div",{staticClass:"list sp image"},[a("label",{staticClass:"name"},[t._v("分享图:")]),t._v(" "),a("img",{staticStyle:{"max-width":"150px",height:"80px"},attrs:{src:t.FormData.share_img}})]),t._v(" "),2===t.FormData.status?a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("已导入的直播商品:")]),t._v(" "),"edit"===t.type?a("el-button",{staticClass:"mr10",attrs:{size:"small",type:"primary"},on:{click:function(e){return t.handleImport(t.FormData)}}},[t._v("导入直播商品")]):t._e(),t._v(" "),a("selected-goods",{ref:"selectedGoods",attrs:{type:t.type,broadcast_room_id:t.FormData.broadcast_room_id}})],1):t._e(),t._v(" "),a("div",{staticClass:"list sp100"},[a("label",{staticClass:"name"},[t._v("备注:")]),t._v(" "),a("span",{staticClass:"info"},[a("el-input",{attrs:{type:"textarea",rows:1},model:{value:t.FormData.mark,callback:function(e){t.$set(t.FormData,"mark",e)},expression:"FormData.mark"}})],1)]),t._v(" "),a("div",{staticClass:"list sp100 mt20"},[a("el-button",{staticClass:"el-button el-button--primary el-button--medium",staticStyle:{width:"100%"},attrs:{type:"button",disabled:""==t.FormData.mark},on:{click:function(e){return t.handleRemarks()}}},[t._v("提交")])],1)])])]):t._e(),t._v(" "),a("import-goods",{ref:"uploadGoods",on:{getList:t.getList}})],1)},l=[],c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"importedGoods"},[a("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":""}},[a("el-table-column",{attrs:{prop:"broadcast_goods_id",label:"ID","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品图","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.goods&&t.row.goods.cover_img}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"goods.name",label:"商品名称","min-width":"120"}}),t._v(" "),a("el-table-column",{attrs:{label:"库存","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.goods&&e.row.goods.product&&e.row.goods.product.stock))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"goods.price",label:"直播价","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"goods.pay_num",label:"销售数量","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{prop:"goods.pay_price",label:"销售金额","min-width":"50"}}),t._v(" "),a("el-table-column",{attrs:{label:"上下架","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"上架","inactive-text":"下架"},on:{change:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.on_sale,callback:function(a){t.$set(e.row,"on_sale",a)},expression:"scope.row.on_sale"}})]}}])})],1),t._v(" "),a("div",{staticClass:"block mb20"},[a("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)},u=[],d=(a("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()}}},mounted:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,Object(i["ib"])(this.broadcast_room_id,this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},onchangeIsShow:function(t){var e=this;Object(i["jb"])(t.broadcast_room_id,{goods_id:t.broadcast_goods_id,status:t.on_sale}).then((function(t){var a=t.message;e.$message.success(a),e.getList()})).catch((function(t){var a=t.message;e.$message.error(a)}))},handleDelete:function(t,e){var a=this;this.$modalSureDelete("确定删除该商品").then((function(){Object(i["e"])({room_id:t.broadcast_room_id,id:t.broadcast_goods_id}).then((function(t){var s=t.message;a.$message.success(s),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))}))}}}),m=d,f=a("2877"),p=Object(f["a"])(m,c,u,!1,null,"641fb743",null),v=p.exports,h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.importVisible?a("el-dialog",{attrs:{title:"商品信息",visible:t.importVisible,width:"700px","before-close":t.handleClose},on:{"update:visible":function(e){t.importVisible=e}}},[a("div",{staticClass:"divBox"},[a("el-form",[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"直播间名称:","label-width":"150px"}},[a("span",[t._v(t._s(t.broadcast_room))])])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"直播间ID:","label-width":"150px"}},[a("span",[t._v(t._s(t.broadcast_id))])])],1)],1)],1),t._v(" "),a("div",{staticClass:"box-card"},[t.importVisible?a("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:{submit:t.onSubmit}}):t._e()],1)],1)]):t._e()},b=[],_=a("30ba"),g=a.n(_),y={name:"importGoods",components:{formCreate:g.a.$form()},data:function(){return{option:{form:{labelWidth:"150px"},global:{upload:{props:{onSuccess:function(t,e){200===t.status&&(e.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,e,a){var s=this;this.$modalUpload((function(a){"1"!==t||e||(s.image=a[0])}),t)},onSubmit:function(t){var e=this;this.listLoading=!0,this.selectedProducts=JSON.parse(localStorage.getItem("broadcastPro"))||[];var a=this.filtersArr(this.selectedProducts),s=this.broadcast_id,o={ids:a,room_id:s};Object(i["f"])(o).then((function(t){e.$message.success(t.message),e.listLoading=!1,e.importVisible=!1,e.FormData.rule[0].value="",localStorage.removeItem("broadcastPro"),e.$emit("getList")})).catch((function(t){e.$emit("getList"),e.listLoading=!1,e.$message.error(t.message),e.FormData.rule[0].value="",e.importVisible=!1}))},filtersArr:function(t){var e=this;return this.selectedGoods=[],t.map((function(t){e.selectedGoods.push(t.broadcast_goods_id)})),this.selectedGoods}}},w=y,k=(a("74bf"),Object(f["a"])(w,h,b,!1,null,"2f60d12b",null)),x=k.exports,C=a("2b0e"),S=a("b311"),F=a.n(S);function D(){C["default"].prototype.$message({message:"复制成功",type:"success",duration:1500})}function $(){C["default"].prototype.$message({message:"复制失败",type:"error"})}function L(t,e){var a=new F.a(e.target,{text:function(){return t}});a.on("success",(function(){D(),a.destroy()})),a.on("error",(function(){$(),a.destroy()})),a.onClick(e)}var E={name:"StudioDetail",components:{selectedGoods:v,importGoods:x},data:function(){return{dialogVisible:!1,option:{form:{labelWidth:"150px"}},FormData:{},loading:!1,type:""}},mounted:function(){},methods:{getData:function(t,e){var a=this;this.loading=!0,this.type=e,Object(i["d"])(t).then((function(t){a.FormData=t.data,a.loading=!1,console.log(a.FormData)})).catch((function(t){a.$message.error(t.message),a.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 e=this;Object(i["l"])(this.FormData.broadcast_room_id,this.FormData.mark).then((function(t){e.loading=!1,e.$message.success(t.message),e.dialogVisible=!1,e.$emit("getList")})).catch((function(t){e.$message.error(t.message),e.loading=!1}))},getList:function(){this.$refs.selectedGoods.getList()},handleClipboard:function(t,e){L(t,e)}}},O=E,T=(a("e608"),Object(f["a"])(O,r,l,!1,null,"ca473d28",null)),j=T.exports,A={name:"StudioList",components:{detailsFrom:j,importGoods:x},data:function(){return{Loading:!1,roterPre:n["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,e){this.getList("")}},mounted:function(){this.getList("")},methods:{onStudioDetails:function(t,e){this.broadcast_room_id=t,this.$refs.studioDetail.dialogVisible=!0,this.$refs.studioDetail.getData(t,e)},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)},onEditAssistant:function(t){var e=this;this.$modalForm(Object(i["hb"])(t)).then((function(){return e.getList("")}))},handleDelete:function(t,e){var a=this;2==t.status&&101==t.live_status?this.$confirm("该直播间正在进行直播,删除后不可恢复,您确认删除吗?","提示",{confirmButtonText:"删除",cancelButtonText:"不删除",type:"warning"}).then((function(){Object(i["c"])(t.broadcast_room_id).then((function(t){var s=t.message;a.$message.success(s),a.tableData.data.splice(e,1)})).catch((function(t){var e=t.message;a.$message.error(e)}))})).catch((function(t){a.$message({type:"info",message:"已取消"})})):this.$modalSureDelete().then((function(){Object(i["c"])(t.broadcast_room_id).then((function(t){var s=t.message;a.$message.success(s),a.tableData.data.splice(e,1),a.getList()})).catch((function(t){var e=t.message;a.$message.error(e)}))}))},onPushMessage:function(t){var e=this;this.$confirm("给长期订阅用户推送消息?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(i["kb"])(t).then((function(t){var a=t.message;e.$message.success(a)})).catch((function(t){var a=t.message;e.$message.error(a)}))})).catch((function(t){e.$message({type:"info",message:"已取消"})}))},onEdit:function(t){var e=this;this.$modalForm(Object(i["gb"])(t)).then((function(){return e.getList("")}))},getList:function(t){var e=this;this.listLoading=!0,this.tableData.page=t||this.tableData.page,console.log(this.tableForm),Object(i["g"])(this.tableForm).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$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 e=this;Object(i["n"])(t.broadcast_room_id,{is_show:t.is_mer_show}).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))},onchangeIsFeeds:function(t){var e=this;Object(i["V"])(t.broadcast_room_id,t.is_feeds_public).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))},onchangeIsCommen:function(t){var e=this;Object(i["W"])(t.broadcast_room_id,t.close_comment).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))},onchangeIsKf:function(t){var e=this;Object(i["fb"])(t.broadcast_room_id,t.close_kf).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.$message.error(a)}))}}},I=A,z=(a("a247"),Object(f["a"])(I,s,o,!1,null,"4d63497b",null));e["default"]=z.exports},e6e3:function(t,e,a){}}]); |