1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-717f6751"],{"09f4":function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),Math.easeInOutQuad=function(e,t,i,n){return e/=n/2,e<1?i/2*e*e+t:(e--,-i/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function a(e,t,i){var a=o(),s=e-a,c=20,u=0;t="undefined"===typeof t?500:t;var l=function e(){u+=c;var o=Math.easeInOutQuad(u,a,s,t);r(o),u<t?n(e):i&&"function"===typeof i&&i()};l()}},"463c":function(e,t,i){"use strict";i("dfb5")},"54df":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"m-container"},[i("h2",[i("el-page-header",{attrs:{content:e.$route.query.name+"黑名单"},on:{back:e.onCancel}})],1),e._v(" "),i("div",{staticClass:"m-core"},[i("el-form",{attrs:{inline:!0,model:e.searchForm}},[i("el-form-item",[i("el-input",{attrs:{clearable:"",placeholder:"学员名/编号/手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"danger"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),i("div",{staticClass:"btnWrap"},[i("auth",{attrs:{auths:"imLiveRoomBlack/add"}},[i("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary"},on:{click:e.addBlack}},[e._v("添加黑名单")])],1),e._v(" "),i("auth",{attrs:{auths:"imLiveRoomBlack/delete"}},[i("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary"},on:{click:e.removes}},[e._v("移除黑名单")])],1)],1),e._v(" "),i("div",{staticClass:"tableWrap"},[i("el-table",{ref:"multipleSelection",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.handleSelectionChange,select:e.onTableSelect}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"username",label:"学员姓名"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("auth",{attrs:{auths:"imLiveRoomBlack/delete"}},[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.deteleBlack(t.row)}}},[e._v("删除")])],1)],1)]}}])})],1),e._v(" "),i("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),i("setBlack",{ref:"setBlack",on:{getList:e.getList}})],1)},r=[],o=(i("386d"),i("ac6a"),i("5530")),a=(i("96cf"),i("1da1")),s=i("64ca"),c=(i("ff39"),i("333d")),u=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-dialog",{attrs:{width:"1000px",title:"添加黑名单",visible:e.lookVisible,"before-close":e.onClose,"append-to-body":""},on:{"update:visible":function(t){e.lookVisible=t}}},[i("div",[i("el-form",{attrs:{inline:!0,model:e.searchForm}},[i("el-form-item",[i("el-input",{attrs:{clearable:"",placeholder:"学员姓名/编号/手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"danger"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),i("div",{staticClass:"tableWrap"},[i("el-table",{ref:"multipleSelection",staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:e.tableList},on:{"selection-change":e.handleSelectionChange,select:e.onTableSelect}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"id",label:"学员编号"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"username",label:"学员姓名"}}),e._v(" "),i("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}})],1),e._v(" "),i("pagination",{attrs:{sync:"",total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size},on:{"update:total":function(t){return e.$set(e.rules,"total",t)},"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)])],1)},l=[],d={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 e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(s["t"])(Object(o["a"])(Object(o["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit,roomUid:this.activeRow.roomUid}));case 3:t=e.sent,this.tableList=t.data.rows,this.rules.total=t.data.total,i=this.chioseIdList.map((function(e){return e.id})),this.isNewPage=!0,this.$nextTick((function(){n.tableList.forEach((function(e){-1!=i.indexOf(e.id)&&n.$refs.multipleSelection.toggleRowSelection(e,!0)})),n.isNewPage=!1})),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm.search="",this.clearCom(),this.search()},submit:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.chioseIdList&&!(this.chioseIdList.length<=0)){e.next=3;break}return this.$message.error("请至少选择一名学生"),e.abrupt("return");case 3:return e.prev=3,t=this.chioseIdList.map((function(e){return e.id})).join(","),e.next=7,Object(s["a"])({userIdList:t,roomUid:this.activeRow.roomUid});case 7:e.sent,this.$message.success("添加成功"),this.$emit("getList"),this.onClose(),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](3),console.log(e.t0);case 16:console.log(this.chioseIdList);case 17:case"end":return e.stop()}}),e,this,[[3,13]])})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=this;if(e.length>0)this.chioseIdList=this.chioseIdList.concat(e),this.chioseIdList=this.$helpers.lodash.uniqBy(this.chioseIdList,"id");else{if(this.isNewPage)return;var i=this.chioseIdList.map((function(e){return e.id}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(n){e.push(n.id),-1!=i.indexOf(n.id)&&t.$refs.multipleSelection.toggleRowSelection(n,!1)})),t.chioseIdList=t.$helpers.lodash.remove(t.chioseIdList,(function(t){return-1==e.indexOf(t.id)})),t.chioseIdList.length<=0&&t.clearCom()}))}},clearCom:function(){this.chioseIdList=[],this.$refs.multipleSelection.clearSelection()},onTableSelect:function(e,t){var i=this.chioseIdList.map((function(e){return e.id}));-1!=i.indexOf(t.id)&&(this.chioseIdList.splice(i.indexOf(t.id),1),this.chioseIdList.length<=0&&this.clearCom())},onClose:function(){this.clearCom(),this.searchForm.search="",this.lookVisible=!1},openDioag:function(e){this.activeRow=e,this.lookVisible=!0,this.getList()}}},h=d,m=(i("463c"),i("2877")),p=Object(m["a"])(h,u,l,!1,null,"e9061172",null),f=p.exports,b={name:"eidtPostMsg",components:{pagination:c["a"],setBlack:f},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(){this.getList()},methods:{getList:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(s["j"])(Object(o["a"])(Object(o["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit,roomUid:this.$route.query.roomUid}));case 3:t=e.sent,this.tableList=t.data.rows,this.rules.total=t.data.total,i=this.chioseIdList.map((function(e){return e.userId})),this.isNewPage=!0,this.$nextTick((function(){n.tableList.forEach((function(e){-1!=i.indexOf(e.userId)&&n.$refs.multipleSelection.toggleRowSelection(e,!0)})),n.isNewPage=!1})),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](0),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm.search="",this.clearCom(),this.search()},submit:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.chioseIdList&&!(this.chioseIdList.length<=0)){e.next=3;break}return this.$message.error("请至少选择一名学员"),e.abrupt("return");case 3:return e.prev=3,t=this.chioseIdList.map((function(e){return e.userId})).join(","),e.next=7,Object(s["c"])({liveGoodsIds:t,liveId:this.activeRow.roomUid});case 7:e.sent,this.$message.success("添加成功"),this.$emit("getList"),this.clearCom(),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](3),console.log(e.t0);case 16:case"end":return e.stop()}}),e,this,[[3,13]])})));function t(){return e.apply(this,arguments)}return t}(),handleSelectionChange:function(e){var t=this;if(e.length>0)this.chioseIdList=this.chioseIdList.concat(e),this.chioseIdList=this.$helpers.lodash.uniqBy(this.chioseIdList,"userId");else{if(this.isNewPage)return;var i=this.chioseIdList.map((function(e){return e.userId}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(n){e.push(n.userId),-1!=i.indexOf(n.userId)&&t.$refs.multipleSelection.toggleRowSelection(n,!1)})),t.chioseIdList=t.$helpers.lodash.remove(t.chioseIdList,(function(t){return-1==e.indexOf(t.userId)})),t.chioseIdList.length<=0&&t.clearCom()}))}},clearCom:function(){this.chioseIdList=[],this.$refs.multipleSelection.clearSelection()},onTableSelect:function(e,t){var i=this.chioseIdList.map((function(e){return e.userId}));-1!=i.indexOf(t.userId)&&(this.chioseIdList.splice(i.indexOf(t.userId),1),this.chioseIdList.length<=0&&this.clearCom())},onCancel:function(){this.$router.push("/liveClassManager"),this.$store.dispatch("delVisitedViews",this.$route)},deteleBlack:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("你确定将".concat(t.username,"移除黑名单?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(s["h"])({roomUid:i.$route.query.roomUid,userIdList:t.userId+""});case 3:e.sent,i.getList(),i.clearCom(),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))).catch();case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),addBlack:function(){this.$refs.setBlack.openDioag({roomUid:this.$route.query.roomUid})},removes:function(){var e=this;if(!this.chioseIdList||this.chioseIdList.length<=0)this.$message.error("请至少选择一名学员");else{var t=this.chioseIdList.map((function(e){return e.username})).join(",");this.$confirm("你确定将".concat(t,"移除黑名单?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a["a"])(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.chioseIdList.map((function(e){return e.userId})).join(","),t.prev=1,t.next=4,Object(s["h"])({roomUid:e.$route.query.roomUid,userIdList:i});case 4:t.sent,e.$message.success("移除成功"),e.getList(),e.clearCom(),t.next=13;break;case 10:t.prev=10,t.t0=t["catch"](1),console.log(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})))).catch()}}}},v=b,g=(i("dcee"),Object(m["a"])(v,n,r,!1,null,"4960c686",null));t["default"]=g.exports},"64ca":function(e,t,i){"use strict";i.d(t,"f",(function(){return r})),i.d(t,"m",(function(){return o})),i.d(t,"g",(function(){return a})),i.d(t,"n",(function(){return s})),i.d(t,"o",(function(){return c})),i.d(t,"w",(function(){return u})),i.d(t,"l",(function(){return l})),i.d(t,"x",(function(){return d})),i.d(t,"e",(function(){return h})),i.d(t,"v",(function(){return m})),i.d(t,"p",(function(){return p})),i.d(t,"c",(function(){return f})),i.d(t,"r",(function(){return b})),i.d(t,"y",(function(){return v})),i.d(t,"s",(function(){return g})),i.d(t,"j",(function(){return w})),i.d(t,"t",(function(){return L})),i.d(t,"a",(function(){return y})),i.d(t,"h",(function(){return k})),i.d(t,"k",(function(){return O})),i.d(t,"q",(function(){return I})),i.d(t,"u",(function(){return j})),i.d(t,"d",(function(){return R})),i.d(t,"i",(function(){return x})),i.d(t,"b",(function(){return $}));var n=i("829b"),r=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/add",method:"post",data:e,requestType:"json"})},o=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/queryPage",method:"post",data:e,requestType:"json"})},a=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/delete",method:"post",data:e,requestType:"json"})},s=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoomMember/queryRoomDetail",method:"post",data:e})},c=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoomMember/queryRoomMember",method:"post",data:e})},u=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/update",method:"post",data:e,requestType:"json"})},l=function(e){return Object(n["a"])({url:"/api-web/imGroup/queryGroupList",method:"get",data:e,params:e})},d=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/shareGroup",method:"get",data:e,params:e})},h=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/roomDestroy/"+e,method:"get",data:e,params:e})},m=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/opsPopularize",method:"get",data:e,params:e})},p=function(e){return Object(n["a"])({url:"/api-web/liveGoodsMapper/page",method:"post",data:e,requestType:"form"})},f=function(e){return Object(n["a"])({url:"/api-web/liveGoodsMapper/add",method:"post",data:e,requestType:"form"})},b=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/queryRoomInfo",method:"get",data:e,params:e})},v=function(e){return Object(n["a"])({url:"/api-web/liveGoodsMapper/updateStatus",method:"post",data:e,requestType:"form"})},g=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/query/roomUser",method:"post",data:e})},w=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/queryBlackList",method:"post",data:e})},L=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/queryStudentList",method:"post",data:e})},y=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/add",method:"post",data:e})},k=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/delete",method:"post",data:e})},O=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/queryLiveRoomGoodsOrderList",method:"get",data:e,params:e})},I=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/queryStudent",method:"post",data:e})},j=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/selectRoomPurviewStudent",method:"post",data:e})},R=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/add",method:"get",data:e,params:e})},x=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/delete",method:"get",data:e,params:e})},$=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/addByCondition",method:"post",data:e,params:e})}},bb6f:function(e,t,i){},dcee:function(e,t,i){"use strict";i("bb6f")},dfb5:function(e,t,i){},ff39:function(e,t,i){"use strict";i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return o})),i.d(t,"d",(function(){return a})),i.d(t,"b",(function(){return s}));var n=i("829b"),r=function(e){return Object(n["a"])({url:"/api-web/liveGoods/page",method:"post",data:e,requestType:"form"})},o=function(e){return Object(n["a"])({url:"/api-web/liveGoods/add",method:"post",data:e,requestType:"json"})},a=function(e){return Object(n["a"])({url:"/api-web/liveGoods/update",method:"post",data:e,requestType:"json"})},s=function(e){return Object(n["a"])({url:"/api-web/liveGoods/delete",method:"post",data:e,requestType:"form"})}}}]);
|