chunk-5eafddae.6e9ae134.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5eafddae"],{"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,c=20,u=0;e="undefined"===typeof e?500:e;var l=function t(){u+=c;var o=Math.easeInOutQuad(u,i,s,e);a(o),u<e?n(t):r&&"function"===typeof r&&r()};l()}},"64ca":function(t,e,r){"use strict";r.d(e,"f",(function(){return a})),r.d(e,"m",(function(){return o})),r.d(e,"g",(function(){return i})),r.d(e,"n",(function(){return s})),r.d(e,"o",(function(){return c})),r.d(e,"w",(function(){return u})),r.d(e,"l",(function(){return l})),r.d(e,"x",(function(){return d})),r.d(e,"e",(function(){return p})),r.d(e,"v",(function(){return m})),r.d(e,"p",(function(){return h})),r.d(e,"c",(function(){return f})),r.d(e,"r",(function(){return b})),r.d(e,"y",(function(){return v})),r.d(e,"s",(function(){return g})),r.d(e,"j",(function(){return w})),r.d(e,"t",(function(){return y})),r.d(e,"a",(function(){return _})),r.d(e,"h",(function(){return L})),r.d(e,"k",(function(){return O})),r.d(e,"q",(function(){return k})),r.d(e,"u",(function(){return j})),r.d(e,"d",(function(){return R})),r.d(e,"i",(function(){return S})),r.d(e,"b",(function(){return x}));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})},c=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoomMember/queryRoomMember",method:"post",data:t})},u=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/queryStudentList",method:"post",data:t})},_=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/add",method:"post",data:t})},L=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/delete",method:"post",data:t})},O=function(t){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/queryLiveRoomGoodsOrderList",method:"get",data:t,params:t})},k=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/queryStudent",method:"post",data:t})},j=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/selectRoomPurviewStudent",method:"post",data:t})},R=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/add",method:"get",data:t,params:t})},S=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/delete",method:"get",data:t,params:t})},x=function(t){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/addByCondition",method:"post",data:t,params:t})}},"87ec":function(t,e,r){},"9d17":function(t,e,r){"use strict";r("a27c")},a27c: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"},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("5530")),i=(r("96cf"),r("1da1")),s=(r("5f87"),r("64ca")),c=r("333d"),u=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)},l=[],d=(r("ac6a"),r("ff39")),p={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(i["a"])(regeneratorRuntime.mark((function t(){var e,r,n=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(d["c"])(Object(o["a"])(Object(o["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(i["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.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(s["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()}}},m=p,h=(r("e5a3"),r("2877")),f=Object(h["a"])(m,u,l,!1,null,"4482a1de",null),b=f.exports,v={components:{pagination:c["a"],addLiveShop:b},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(i["a"])(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=Object(o["a"])(Object(o["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit,liveId:this.$route.query.roomUid}),t.prev=1,t.next=4,Object(s["p"])(Object(o["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(i["a"])(regeneratorRuntime.mark((function t(){var e,r;return regeneratorRuntime.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(s["r"])(e);case 4:r=t.sent,this.detail=Object(o["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(i["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(s["y"])({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(){}))}}},g=v,w=(r("9d17"),Object(h["a"])(g,n,a,!1,null,"80113fb4",null));e["default"]=w.exports},e5a3:function(t,e,r){"use strict";r("87ec")},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"})}}}]);