chunk-50322160.d198a28e.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-50322160"],{"0733":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{on:{click:function(e){return e.stopPropagation(),t.noop.apply(null,arguments)}}},[r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return e.stopPropagation(),t.onSetting.apply(null,arguments)}}},[t._v("直播设置")]),r("el-drawer",{attrs:{title:"直播设置",visible:t.drawer,direction:"rtl"},on:{"update:visible":function(e){t.drawer=e}}},[r("div",{staticStyle:{padding:"10px"}},[r("el-form",{ref:"ruleForm",attrs:{"label-position":"top","label-width":"100px",model:t.form,rules:t.rules,size:"small"}},[r("el-form-item",{attrs:{label:"直播间名称",prop:"channelname"}},[r("el-input",{attrs:{placeholder:"",clearable:""},model:{value:t.form.channelname,callback:function(e){t.$set(t.form,"channelname",e)},expression:"form.channelname"}})],1),r("el-form-item",{attrs:{label:"直播间类型"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"",placeholder:"请选择直播间类型"},model:{value:t.form.categoryid,callback:function(e){t.$set(t.form,"categoryid",e)},expression:"form.categoryid"}},t._l(t.typeData,(function(t){return r("el-option",{key:t.categoryId,attrs:{label:t.categoryName,value:t.categoryId}})})),1)],1),r("el-form-item",{attrs:{label:"开启频道布万家授权观看"}},[r("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"授权","inactive-text":"取消授权"},on:{change:t.setChannelAuth},model:{value:t.form.fisneedauth,callback:function(e){t.$set(t.form,"fisneedauth",e)},expression:"form.fisneedauth"}})],1),1===t.form.fisneedauth?r("el-form-item",{attrs:{label:"授权观看直播地址"}},[r("el-input",{attrs:{readonly:"",placeholder:""},model:{value:t.liveauthorization,callback:function(e){t.liveauthorization=e},expression:"liveauthorization"}})],1):t._e(),r("el-row",{attrs:{gutter:20}},[r("el-col",{attrs:{span:12}},[r("el-form-item",[r("el-button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:function(e){return t.save("ruleForm")}}},[t._v("保存修改")])],1)],1),r("el-col",{attrs:{span:12}},[r("el-form-item",[r("el-button",{staticStyle:{width:"100%"},attrs:{type:"danger"},on:{click:t.deleteLive}},[t._v("删除直播间")])],1)],1)],1),r("el-form-item",{attrs:{label:"开播码"}},[r("el-input",{attrs:{readonly:"",placeholder:""},model:{value:t.form.channelpasswd,callback:function(e){t.$set(t.form,"channelpasswd",e)},expression:"form.channelpasswd"}})],1),r("el-form-item",{attrs:{label:"频道创建人"}},[r("el-input",{attrs:{readonly:"",placeholder:""},model:{value:t.form.createby,callback:function(e){t.$set(t.form,"createby",e)},expression:"form.createby"}})],1),r("el-form-item",{attrs:{label:"客户端开播地址"}},[r("el-input",{attrs:{readonly:"",placeholder:""},model:{value:t.form.fliveurl_client,callback:function(e){t.$set(t.form,"fliveurl_client",e)},expression:"form.fliveurl_client"}})],1),r("el-form-item",{attrs:{label:"网页端开播地址"}},[r("el-input",{attrs:{readonly:"",placeholder:""},model:{value:t.form.fliveurl_web,callback:function(e){t.$set(t.form,"fliveurl_web",e)},expression:"form.fliveurl_web"}})],1),r("el-form-item",{attrs:{label:"观看直播地址"}},[r("el-input",{attrs:{readonly:"",placeholder:""},model:{value:t.form.fliveshowurl,callback:function(e){t.$set(t.form,"fliveshowurl",e)},expression:"form.fliveshowurl"}})],1),r("el-form-item",{attrs:{label:"助教直播地址"}},[r("el-input",{attrs:{readonly:"",placeholder:""},model:{value:t.form.fassistanturl,callback:function(e){t.$set(t.form,"fassistanturl",e)},expression:"form.fassistanturl"}})],1)],1)],1)])],1)},a=[],o=r("1da1"),i=(r("96cf"),{props:["tliveid"],data:function(){return{rules:{channelname:[{required:!0,message:"请输入直播间名称",trigger:"blur"}]},drawer:!1,form:{},typeData:{},liveauthorization:""}},methods:{noop:function(){},onSetting:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.mainData();case 2:return e.next=4,t.typeList();case 4:t.drawer=!0;case 5:case"end":return e.stop()}}),e)})))()},mainData:function(){var t=this;this.$api.requested({classname:"enterprise.live.live",method:"queryChannelMain",content:{tliveid:this.tliveid}}).then((function(e){t.form=e.data[0],1===t.form.fisneedauth&&t.getChannelAuth_link()}))},typeList:function(){var t=this;this.$api.requested({classname:"enterprise.live.live",method:"getLiveCategory",content:{getdatafromdbanyway:!0}}).then((function(e){t.typeData=e.data}))},save:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;e.$api.requested({classname:"enterprise.live.live",method:"modifyLive",content:{channelname:e.form.channelname,categoryid:e.form.categoryid,tliveid:e.form.tliveid}}).then((function(t){1===t.code?(e.$notify({title:"成功",message:"修改成功",type:"success"}),e.$emit("onDelete")):e.$notify({title:"失败",message:t.data,type:"error"}),e.mainData()}))}))},setChannelAuth:function(t){var e=this;this.$api.requested({classname:"enterprise.live.live",method:1===t?"setChannelAuth":"closeChannelAuth",content:{tliveid:this.form.tliveid}}).then((function(r){1===r.code?e.$notify({title:"成功",message:1===t?"授权成功":"取消授权成功",type:"success"}):e.$notify({title:"失败",message:r.data,type:"error"}),e.getChannelAuth_link()}))},getChannelAuth_link:function(){var t=this;this.$api.requested({classname:"enterprise.live.live",method:"liveauthorization",content:{tliveid:this.form.tliveid}}).then((function(e){1===e.code?t.liveauthorization=e.msg:t.$notify({title:"失败",message:e.data,type:"error"})}))},deleteLive:function(){var t=this;this.$confirm("确认删除此直播间吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$api.requested({classname:"enterprise.live.live",method:"deleteLive",content:{tliveid:t.form.tliveid}}).then((function(e){1===e.code?(t.$notify({title:"成功",message:"数据已删除",type:"success"}),t.$emit("onDelete"),t.drawer=!1):t.$notify({title:"失败",message:e.data,type:"error"})}))})).catch((function(){t.$message({type:"info",message:"已取消删除"})}))}}}),l=i,s=r("2877"),c=Object(s["a"])(l,n,a,!1,null,null,null);e["a"]=c.exports},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));r("d3b7");function n(t,e,r,n,a,o,i){try{var l=t[o](i),s=l.value}catch(c){return void r(c)}l.done?e(s):Promise.resolve(s).then(n,a)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(a,o){var i=t.apply(e,r);function l(t){n(i,a,o,l,s,"next",t)}function s(t){n(i,a,o,l,s,"throw",t)}l(void 0)}))}}},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,a="function"===typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(P){s=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var a=e&&e.prototype instanceof v?e:v,o=Object.create(a.prototype),i=new j(n||[]);return o._invoke=$(t,r,i),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(P){return{type:"throw",arg:P}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",p="executing",d="completed",m={};function v(){}function y(){}function g(){}var w={};s(w,o,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(C([])));x&&x!==r&&n.call(x,o)&&(w=x);var _=g.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(a,o,i,l){var s=u(t[a],t,o);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"===typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,i,l)}),(function(t){r("throw",t,i,l)})):e.resolve(f).then((function(t){c.value=t,i(c)}),(function(t){return r("throw",t,i,l)}))}l(s.arg)}var a;function o(t,n){function o(){return new e((function(e,a){r(t,n,e,a)}))}return a=a?a.then(o,o):o()}this._invoke=o}function $(t,e,r){var n=f;return function(a,o){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===a)throw o;return O()}r.method=a,r.arg=o;while(1){var i=r.delegate;if(i){var l=S(i,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===f)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=u(t,e,r);if("normal"===s.type){if(n=r.done?d:h,s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}function S(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,S(t,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var a=u(n,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function C(t){if(t){var r=t[o];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function r(){while(++a<t.length)if(n.call(t,a))return r.value=t[a],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}return{next:O}}function O(){return{value:e,done:!0}}return y.prototype=g,s(_,"constructor",g),s(g,"constructor",y),y.displayName=s(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},L(k.prototype),s(k.prototype,i,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,a,o){void 0===o&&(o=Promise);var i=new k(c(e,r,n,a),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(_),s(_,l,"Generator"),s(_,o,(function(){return this})),s(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){while(e.length){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=C,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(z),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function a(n,a){return l.type="throw",l.arg=t,r.next=n,a&&(r.method="next",r.arg=e),!!a}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),z(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;z(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=n}catch(a){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},add2:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"container"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,border:"",size:"mini",stripe:"",height:"calc(100vh - 228px)"}},[r("el-table-column",{attrs:{prop:"fbrand",label:"品牌"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-tag",{attrs:{size:"mini"}},[t._v(t._s(e.row.fbrand?e.row.fbrand:"--"))])]}}])}),r("el-table-column",{attrs:{prop:"createby",label:"申请人"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.createby?e.row.createby:"--"))])]}}])}),r("el-table-column",{attrs:{prop:"fnotes",label:"备注"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.fnotes?e.row.fnotes:"--"))])]}}])}),r("el-table-column",{attrs:{prop:"createdate",label:"申请时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.createdate?e.row.createdate.split(".")[0]:"--"))])]}}])}),r("el-table-column",{attrs:{prop:"fstatus",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.fstatus?e.row.fstatus:"--"))])]}}])}),r("el-table-column",{attrs:{label:"操作",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return["审核"===e.row.fstatus?r("setlive",{attrs:{tliveid:e.row.tliveid}}):r("el-popconfirm",{attrs:{"confirm-button-text":"确定","cancel-button-text":"不用了",icon:"el-icon-info","icon-color":"red",title:"确定审核通过该条数据吗?"},on:{confirm:function(r){return t.onPassSelect(e.row)}}},[r("el-button",{staticStyle:{color:"red"},attrs:{slot:"reference",type:"text",size:"mini"},slot:"reference"},[t._v("审 核")])],1)]}}])})],1),r("div",{staticStyle:{margin:"20px 0"}},[r("el-pagination",{attrs:{background:"",small:"","current-page":t.currentPage,"page-size":t.param.content.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)])},a=[],o=r("0733"),i={components:{setlive:o["a"]},data:function(){return{param:{classname:"enterprise.live.live",method:"getSYLiveApplyList",content:{getdatafromdbanyway:!0,pageNumber:1,pageSize:20}},total:0,list:[],currentPage:0}},methods:{listData:function(){var t=this;this.$api.requested(this.param).then((function(e){t.list=e.data,t.total=e.total,t.currentPage=e.pageNumber}))},handleSizeChange:function(t){this.param.content.pageSize=t,this.listData()},handleCurrentChange:function(t){this.param.content.pageNumber=t,this.listData()},onPassSelect:function(t){var e=this;this.$api.requested({classname:"enterprise.live.live",method:"auditSYLiveApply",content:{tliveapplyid:t.tliveapplyid,tagentsid:t.tagentsid}}).then((function(t){1===t.code?(e.$notify({title:"成功",message:"审核成功",type:"success"}),e.listData()):e.$notify({title:"失败",message:t.data,type:"error"})}))}},mounted:function(){this.listData()}},l=i,s=r("2877"),c=Object(s["a"])(l,n,a,!1,null,null,null);e["default"]=c.exports}}]);