chunk-5e48a763.63d8f430.js 20 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e48a763"],{"09f4":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,r,n){return t/=n/2,t<1?r/2*t*t+e:(t--,-r/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function a(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,r){var i=o(),s=t-i,u=20,c=0;e="undefined"===typeof e?500:e;var l=function t(){c+=u;var o=Math.easeInOutQuad(c,i,s,e);a(o),c<e?n(t):r&&"function"===typeof r&&r()};l()}},"205c":function(t,e,r){},"649c":function(t,e,r){"use strict";r("7b8c")},"64ca":function(t,e,r){"use strict";r.d(e,"h",(function(){return a})),r.d(e,"t",(function(){return o})),r.d(e,"j",(function(){return i})),r.d(e,"u",(function(){return s})),r.d(e,"v",(function(){return u})),r.d(e,"J",(function(){return c})),r.d(e,"s",(function(){return l})),r.d(e,"L",(function(){return d})),r.d(e,"g",(function(){return p})),r.d(e,"I",(function(){return m})),r.d(e,"w",(function(){return h})),r.d(e,"c",(function(){return f})),r.d(e,"z",(function(){return b})),r.d(e,"N",(function(){return v})),r.d(e,"A",(function(){return g})),r.d(e,"p",(function(){return w})),r.d(e,"a",(function(){return y})),r.d(e,"m",(function(){return O})),r.d(e,"r",(function(){return j})),r.d(e,"y",(function(){return _})),r.d(e,"C",(function(){return L})),r.d(e,"d",(function(){return S})),r.d(e,"n",(function(){return k})),r.d(e,"b",(function(){return R})),r.d(e,"K",(function(){return x})),r.d(e,"M",(function(){return T})),r.d(e,"G",(function(){return F})),r.d(e,"H",(function(){return q})),r.d(e,"F",(function(){return C})),r.d(e,"o",(function(){return $})),r.d(e,"B",(function(){return I})),r.d(e,"E",(function(){return G})),r.d(e,"O",(function(){return B})),r.d(e,"k",(function(){return P})),r.d(e,"i",(function(){return M})),r.d(e,"x",(function(){return E})),r.d(e,"e",(function(){return z})),r.d(e,"f",(function(){return D})),r.d(e,"l",(function(){return N})),r.d(e,"D",(function(){return U})),r.d(e,"q",(function(){return V}));var n=r("829b"),a=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/add",method:"post",data:t,requestType:"json"})},o=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/queryPage",method:"post",data:t,requestType:"json"})},i=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/delete",method:"post",data:t,requestType:"json"})},s=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoomMember/queryRoomDetail",method:"post",data:t})},u=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoomMember/queryRoomMember",method:"post",data:t})},c=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/update",method:"post",data:t,requestType:"json"})},l=function(t){return Object(n["a"])({url:"/api-web/imGroup/queryGroupList",method:"get",data:t,params:t})},d=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/shareGroup",method:"get",data:t,params:t})},p=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/roomDestroy/"+t,method:"get",data:t,params:t})},m=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/opsPopularize",method:"get",data:t,params:t})},h=function(t){return Object(n["a"])({url:"/api-web/liveGoodsMapper/page",method:"post",data:t,requestType:"form"})},f=function(t){return Object(n["a"])({url:"/api-web/liveGoodsMapper/add",method:"post",data:t,requestType:"form"})},b=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/queryRoomInfo",method:"get",data:t,params:t})},v=function(t){return Object(n["a"])({url:"/api-web/liveGoodsMapper/updateStatus",method:"post",data:t,requestType:"form"})},g=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/query/roomUser",method:"post",data:t})},w=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/queryBlackList",method:"post",data:t})},y=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/add",method:"post",data:t})},O=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/delete",method:"post",data:t})},j=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/queryLiveRoomGoodsOrderList",method:"get",data:t,params:t})},_=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/queryStudent",method:"post",data:t})},L=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/selectRoomPurviewStudent",method:"post",data:t})},S=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/add",method:"get",data:t,params:t})},k=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/delete",method:"get",data:t,params:t})},R=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/addByCondition",method:"post",data:t,params:t})},x=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/roomStart/".concat(t),method:"get",data:t,params:t})},T=function(t){return Object(n["a"])({url:"/api-web/sysTenantConfig/queryAll",params:t,method:"get"})},F=function(t){return Object(n["a"])({url:"/api-web/vipGroupManage/liveGroupDetail/"+t.id,method:"get"})},q=function(t){return Object(n["a"])({url:"/api-web/vipGroupManage/liveStudentList",method:"post",data:t})},C=function(t){return Object(n["a"])({url:"/api-web/vipGroupManage/liveCourseList",method:"post",data:t})},$=function(t){return Object(n["a"])({url:"/api-web/teacher/findTeacherByTenantId",method:"get",params:t})};function I(t){return Object(n["a"])({url:"/api-web/vipGroupManage/getStudentSurplusCourseFee",method:"get",params:t})}function G(t){return Object(n["a"])({url:"/api-web/vipGroupManage/applyRefundForStudent",method:"POST",requestType:"form",data:t})}function B(t){return Object(n["a"])({url:"/api-web/vipGroupManage/updateLiveGroup",method:"POST",data:t})}function P(t){return Object(n["a"])({url:"/api-web/vipGroupManage/delLiveGroup/"+t.id,method:"get"})}function M(t){return Object(n["a"])({url:"/api-web/courseSchedule/updateCourseScheduleShareMode",method:"POST",data:t})}function E(t){return Object(n["a"])({url:"/api-web/courseShare/queryCourseSharedStudent",method:"get",data:t,params:t})}function z(t){return Object(n["a"])({url:"/api-web/courseShare/saveCourseShare",method:"post",data:t})}function D(t){return Object(n["a"])({url:"/api-web/courseShare/saveCourseShareByOne",method:"post",data:t})}function N(t){return Object(n["a"])({url:"/api-web/courseShare/deleteShareStudent",method:"post",data:t})}function U(t){return Object(n["a"])({url:"/api-web/courseShare/queryAllCourseShareStudent",method:"get",data:t,params:t})}function V(t){return Object(n["a"])({url:"/api-web/imLiveRoomVideo/queryList",method:"get",data:t,params:t})}},"7b8c":function(t,e,r){},ba5c: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",{staticClass:"m-container"},[r("h2",[r("el-page-header",{attrs:{content:t.detail.roomTitle||""},on:{back:t.onCancel}})],1),t._v(" "),r("div",{staticClass:"m-core"},[r("el-alert",{attrs:{title:"直播课信息",closable:!1,type:"info"}}),t._v(" "),r("descriptions",{attrs:{column:4}},[r("descriptions-item",{attrs:{label:"直播课标题:"}},[t._v(t._s(t.detail.roomTitle||""))]),t._v(" "),r("descriptions-item",{attrs:{label:"主讲人:"}},[t._v(t._s(t.detail.speakerName||""))]),t._v(" "),r("descriptions-item",{attrs:{label:"直播开始时间:"}},[t._v(t._s(t._f("dateForMinFormat")(t.detail.liveStartTime)))]),t._v(" "),r("descriptions-item",{attrs:{label:"状态:"}},[t._v(t._s(t._f("liveState")(t.detail.liveState)))])],1),t._v(" "),r("el-alert",{staticStyle:{margin:"20px 0"},attrs:{title:"直播商品",closable:!1,type:"info"}}),t._v(" "),r("save-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[r("el-form-item",[r("el-input",{attrs:{clearable:"",placeholder:"商品编号/名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:function(e){e.target.blur(),t.$refs.searchForm.save(),t.search()}(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),r("el-form-item",{attrs:{prop:"status"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"状态"},model:{value:t.searchForm.status,callback:function(e){t.$set(t.searchForm,"status","string"===typeof e?e.trim():e)},expression:"searchForm.status"}},[r("el-option",{attrs:{label:"上架",value:1}}),t._v(" "),r("el-option",{attrs:{label:"下架",value:0}})],1)],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1)],1),t._v(" "),r("auth",{attrs:{auths:"liveGoodsMapper/add"}},[r("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",disabled:2==t.detail.liveState},on:{click:t.addShop}},[t._v("添加")])],1),t._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[r("el-table-column",{attrs:{align:"center",prop:"id",label:"商品编号"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"name",label:"商品名称"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"originalPrice",label:"原价"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.originalPrice,!0))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"currentPrice",label:"直播价"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.currentPrice,!0))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"stockCount",label:"库存"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"status",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(e.row.status?"上架":"下架")+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("auth",{attrs:{auths:"liveGoodsMapper/updateStatus"}},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.resetShop(e.row)}}},[t._v("\n "+t._s(e.row.status?"下架":"上架"))])],1)],1)]}}])})],1),t._v(" "),r("pagination",{attrs:{sync:"",total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),r("addLiveShop",{ref:"addLiveShop",on:{getList:t.getList}})],1)},a=[],o=(r("7f7f"),r("386d"),r("c80c")),i=r("db72"),s=(r("96cf"),r("3b8d")),u=(r("5f87"),r("64ca")),c=r("333d"),l=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-dialog",{attrs:{width:"1000px",title:"添加商品",visible:t.lookVisible,"before-close":t.onClose,"append-to-body":""},on:{"update:visible":function(e){t.lookVisible=e}}},[r("div",[r("el-form",{attrs:{inline:!0,model:t.searchForm}},[r("el-form-item",[r("el-input",{attrs:{clearable:"",placeholder:"商品名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.search(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{type:"danger"},on:{click:t.onReSet}},[t._v("重置")])],1)],1),t._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{ref:"multipleSelection",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList},on:{"selection-change":t.handleSelectionChange,select:t.onTableSelect}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"id",label:"商品编号"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"name",label:"商品名称"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"originalPrice",label:"原价"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.originalPrice,!0))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"currentPrice",label:"直播价"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.currentPrice,!0))+"\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"stockCount",label:"库存"}})],1),t._v(" "),r("pagination",{attrs:{sync:"",total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("确 定")])],1)])],1)},d=[],p=(r("ac6a"),r("ff39")),m={name:"eidtPostMsg",components:{pagination:c["a"]},data:function(){return{searchForm:{search:""},tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},addMuiscVisible:!1,multipleSelection:[],chioseIdList:[],isNewPage:!1,lookVisible:!1,activeRow:{sendFlag:!1}}},mounted:function(){},methods:{getList:function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(){var e,r,n=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(p["c"])(Object(i["a"])(Object(i["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit,liveId:this.activeRow.roomUid}));case 3:e=t.sent,this.tableList=e.data.rows,this.rules.total=e.data.total,r=this.chioseIdList.map((function(t){return t.id})),this.isNewPage=!0,this.$nextTick((function(){n.tableList.forEach((function(t){-1!=r.indexOf(t.id)&&n.$refs.multipleSelection.toggleRowSelection(t,!0)})),n.isNewPage=!1})),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),console.log(t.t0);case 14:case"end":return t.stop()}}),t,this,[[0,11]])})));function e(){return t.apply(this,arguments)}return e}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm.search="",this.clearCom(),this.search()},submit:function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(){var e;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(this.chioseIdList&&!(this.chioseIdList.length<=0)){t.next=3;break}return this.$message.error("请至少选择一件商品"),t.abrupt("return");case 3:return t.prev=3,e=this.chioseIdList.map((function(t){return t.id})).join(","),t.next=7,Object(u["c"])({liveGoodsIds:e,liveId:this.activeRow.roomUid});case 7:t.sent,this.$message.success("添加成功"),this.$emit("getList"),this.onClose(),t.next=16;break;case 13:t.prev=13,t.t0=t["catch"](3),console.log(t.t0);case 16:console.log(this.chioseIdList);case 17:case"end":return t.stop()}}),t,this,[[3,13]])})));function e(){return t.apply(this,arguments)}return e}(),handleSelectionChange:function(t){var e=this;if(t.length>0)this.chioseIdList=this.chioseIdList.concat(t),this.chioseIdList=this.$helpers.lodash.uniqBy(this.chioseIdList,"id");else{if(this.isNewPage)return;var r=this.chioseIdList.map((function(t){return t.id}));this.$nextTick((function(){var t=[];e.tableList.forEach((function(n){t.push(n.id),-1!=r.indexOf(n.id)&&e.$refs.multipleSelection.toggleRowSelection(n,!1)})),e.chioseIdList=e.$helpers.lodash.remove(e.chioseIdList,(function(e){return-1==t.indexOf(e.id)})),e.chioseIdList.length<=0&&e.clearCom()}))}},clearCom:function(){this.chioseIdList=[],this.$refs.multipleSelection.clearSelection()},onTableSelect:function(t,e){var r=this.chioseIdList.map((function(t){return t.id}));-1!=r.indexOf(e.id)&&(this.chioseIdList.splice(r.indexOf(e.id),1),this.chioseIdList.length<=0&&this.clearCom())},onClose:function(){this.clearCom(),this.lookVisible=!1},openDioag:function(t){this.activeRow=t,this.lookVisible=!0,console.log(t),this.getList()}}},h=m,f=(r("c17a"),r("2877")),b=Object(f["a"])(h,l,d,!1,null,"1d11d706",null),v=b.exports,g={components:{pagination:c["a"],addLiveShop:v},data:function(){return{detail:{roomTitle:"",speakerName:"",liveStartTime:"",liveState:""},searchForm:{search:"",status:""},tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getDetail(),this.getList()},methods:{getList:function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(){var e,r;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=Object(i["a"])(Object(i["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit,liveId:this.$route.query.roomUid}),t.prev=1,t.next=4,Object(u["w"])(Object(i["a"])({},e));case 4:r=t.sent,this.tableList=r.data.rows,this.rules.total=r.data.total,t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](1),console.log(t.t0);case 12:case"end":return t.stop()}}),t,this,[[1,9]])})));function e(){return t.apply(this,arguments)}return e}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm.search="",this.searchForm.status="",this.search()},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push("/liveClassManager")},getDetail:function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(){var e,r;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e={roomUid:this.$route.query.roomUid},t.next=4,Object(u["z"])(e);case 4:r=t.sent,this.detail=Object(i["a"])({},r.data),t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),console.log(t.t0);case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),addShop:function(){this.$refs.addLiveShop.openDioag({roomUid:this.$route.query.roomUid})},resetShop:function(t){var e=this,r="";r=t.status?"下架":"上架",this.$confirm("您是否".concat(r,'商品"').concat(t.name,'"'),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(s["a"])(Object(o["a"])().mark((function n(){return Object(o["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(u["N"])({liveGoodsId:t.id,liveId:e.$route.query.roomUid,status:t.status?0:1}).then((function(t){e.$message.success("".concat(r,"成功")),e.getList()}));case 2:case"end":return n.stop()}}),n)})))).catch((function(){}))}}},w=g,y=(r("649c"),Object(f["a"])(w,n,a,!1,null,"373787dd",null));e["default"]=y.exports},c17a:function(t,e,r){"use strict";r("205c")},ff39:function(t,e,r){"use strict";r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return o})),r.d(e,"d",(function(){return i})),r.d(e,"b",(function(){return s}));var n=r("829b"),a=function(t){return Object(n["a"])({url:"/api-web/liveGoods/page",method:"post",data:t,requestType:"form"})},o=function(t){return Object(n["a"])({url:"/api-web/liveGoods/add",method:"post",data:t,requestType:"json"})},i=function(t){return Object(n["a"])({url:"/api-web/liveGoods/update",method:"post",data:t,requestType:"json"})},s=function(t){return Object(n["a"])({url:"/api-web/liveGoods/delete",method:"post",data:t,requestType:"form"})}}}]);