1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e80c1bc"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,r,n){return e/=n/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,r){var i=a(),s=e-i,c=20,u=0;t="undefined"===typeof t?500:t;var l=function e(){u+=c;var a=Math.easeInOutQuad(u,i,s,t);o(a),u<t?n(e):r&&"function"===typeof r&&r()};l()}},"160b":function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return s}));var n=r("b775"),o=r("829b"),a="/api-web";function i(e){return Object(o["a"])({url:a+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function s(e){return Object(n["a"])({url:a+"/chargeType/findAll",method:"get",params:e})}},"17be":function(e,t,r){},"2fc8":function(e,t,r){"use strict";r.d(t,"i",(function(){return s})),r.d(t,"j",(function(){return c})),r.d(t,"t",(function(){return u})),r.d(t,"l",(function(){return l})),r.d(t,"d",(function(){return d})),r.d(t,"e",(function(){return m})),r.d(t,"s",(function(){return p})),r.d(t,"b",(function(){return h})),r.d(t,"u",(function(){return f})),r.d(t,"k",(function(){return b})),r.d(t,"h",(function(){return g})),r.d(t,"m",(function(){return v})),r.d(t,"p",(function(){return L})),r.d(t,"g",(function(){return I})),r.d(t,"a",(function(){return w})),r.d(t,"q",(function(){return y})),r.d(t,"r",(function(){return O})),r.d(t,"c",(function(){return j})),r.d(t,"f",(function(){return k})),r.d(t,"n",(function(){return x})),r.d(t,"o",(function(){return S}));var n=r("829b"),o=r("4328"),a=r.n(o),i="/api-web";function s(e){return Object(n["a"])({url:i+"/imSendGroupMessage/queryGroupPage",method:"POST",requestType:"form",data:e})}function c(e){return Object(n["a"])({url:i+"/imSendGroupMessage/queryGroupPage1",method:"POST",requestType:"form",data:e})}function u(e){return Object(n["a"])({url:i+"/imSendGroupMessage/send",method:"POST",data:e})}function l(e){return Object(n["a"])({url:i+"/imSendGroupMessage/queryPage",method:"POST",requestType:"form",data:e})}function d(e){return Object(n["a"])({url:i+"/imSendGroupMessage/delete",method:"POST",requestType:"form",data:e})}function m(e){return Object(n["a"])({url:i+"/imSendGroupMessage/deleteGroupList",method:"POST",requestType:"form",data:e})}function p(e){return Object(n["a"])({url:i+"/imSendGroupMessage/update",method:"POST",data:e})}function h(e){return Object(n["a"])({url:i+"/imSendGroupMessage/addGroupList",method:"POST",requestType:"form",data:e})}function f(e){return Object(n["a"])({url:i+"/imGroup/updateImGroup",method:"POST",data:e})}function b(e){return Object(n["a"])({url:i+"/imGroupMember/queryGroupMemberPage",method:"POST",params:e,data:e})}function g(e){return Object(n["a"])({url:i+"/imGroup/queryGroupDetail",method:"get",params:e,data:e})}function v(e){return Object(n["a"])({url:i+"/studentManage/queryStudentBasicInfo",method:"get",params:e,data:e})}function L(e){return Object(n["a"])({url:i+"/teacher/queryTeacherBasicInfo",method:"get",params:e,data:e})}function I(e){return Object(n["a"])({url:i+"/employee/queryEmployeeBasicInfo",method:"get",params:e,data:e})}function w(e){return Object(n["a"])({url:i+"/imGroupMember/addGroupMember",method:"post",params:e,data:a.a.stringify(e)})}function y(e){return Object(n["a"])({url:i+"/imGroup/quitGroup",method:"post",params:e,data:a.a.stringify(e)})}function O(e){return Object(n["a"])({url:i+"/imGroup/updateRoleType",method:"post",params:e,data:a.a.stringify(e)})}function j(e){return Object(n["a"])({url:i+"/imGroup/createGroup",method:"post",data:e})}function k(e){return Object(n["a"])({url:i+"/imGroup/dismissGroup",method:"post",requestType:"form",data:e})}function x(e){return Object(n["a"])({url:i+"/imSendGroupMessage/queryGroupAll",method:"POST",requestType:"form",data:e})}function S(e){return Object(n["a"])({url:i+"/imSendGroupMessage/queryGroupAll1",method:"POST",requestType:"form",data:e})}},5935:function(e,t,r){"use strict";r("6ec3")},"64ca":function(e,t,r){"use strict";r.d(t,"f",(function(){return o})),r.d(t,"m",(function(){return a})),r.d(t,"g",(function(){return i})),r.d(t,"n",(function(){return s})),r.d(t,"o",(function(){return c})),r.d(t,"w",(function(){return u})),r.d(t,"l",(function(){return l})),r.d(t,"x",(function(){return d})),r.d(t,"e",(function(){return m})),r.d(t,"v",(function(){return p})),r.d(t,"p",(function(){return h})),r.d(t,"c",(function(){return f})),r.d(t,"r",(function(){return b})),r.d(t,"y",(function(){return g})),r.d(t,"s",(function(){return v})),r.d(t,"j",(function(){return L})),r.d(t,"t",(function(){return I})),r.d(t,"a",(function(){return w})),r.d(t,"h",(function(){return y})),r.d(t,"k",(function(){return O})),r.d(t,"q",(function(){return j})),r.d(t,"u",(function(){return k})),r.d(t,"d",(function(){return x})),r.d(t,"i",(function(){return S})),r.d(t,"b",(function(){return R}));var n=r("829b"),o=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/add",method:"post",data:e,requestType:"json"})},a=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/queryPage",method:"post",data:e,requestType:"json"})},i=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})},m=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/roomDestroy/"+e,method:"get",data:e,params:e})},p=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/opsPopularize",method:"get",data:e,params:e})},h=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})},g=function(e){return Object(n["a"])({url:"/api-web/liveGoodsMapper/updateStatus",method:"post",data:e,requestType:"form"})},v=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/query/roomUser",method:"post",data:e})},L=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/queryBlackList",method:"post",data:e})},I=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/queryStudentList",method:"post",data:e})},w=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/add",method:"post",data:e})},y=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})},j=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/queryStudent",method:"post",data:e})},k=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/selectRoomPurviewStudent",method:"post",data:e})},x=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/add",method:"get",data:e,params:e})},S=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/delete",method:"get",data:e,params:e})},R=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/addByCondition",method:"post",data:e,params:e})}},"6ec3":function(e,t,r){},bc7f:function(e,t,r){"use strict";r("17be")},f371:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[r("h2",[r("el-page-header",{attrs:{content:e.$route.query.name+"学员名单"},on:{back:e.onCancel}})],1),e._v(" "),r("div",{staticClass:"m-core"},[r("el-form",{attrs:{inline:!0,model:e.searchForm}},[r("el-form-item",[r("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(" "),r("el-form-item",{attrs:{prop:"organIdList"}},[r("select-all",{staticClass:"multiple",attrs:{clearable:"",filterable:"","collapse-tags":"",multiple:"",placeholder:"请选择分部"},on:{change:e.onBranchChange},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList","string"===typeof t?t.trim():t)},expression:"searchForm.organIdList"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{multiple:"","collapse-tags":"",clearable:"",filterable:"",placeholder:"请选择合作单位",disabled:e.searchForm.organIdList.length<=0},model:{value:e.searchForm.cooperationOrganId,callback:function(t){e.$set(e.searchForm,"cooperationOrganId","string"===typeof t?t.trim():t)},expression:"searchForm.cooperationOrganId"}},e._l(e.cooperationList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{multiple:"","collapse-tags":"",disabled:e.searchForm.organIdList.length<=0,clearable:"",filterable:"",placeholder:"请选择乐团"},model:{value:e.searchForm.musicGroupId,callback:function(t){e.$set(e.searchForm,"musicGroupId","string"===typeof t?t.trim():t)},expression:"searchForm.musicGroupId"}},e._l(e.teamList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"subjectId"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId",t)},expression:"searchForm.subjectId"}},e._l(e.selects.subjects,(function(e){return r("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{multiple:"","collapse-tags":"",clearable:"",filterable:"",placeholder:"请选择群聊"},model:{value:e.searchForm.groupList,callback:function(t){e.$set(e.searchForm,"groupList","string"===typeof t?t.trim():t)},expression:"searchForm.groupList"}},e._l(e.groupList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"danger"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),r("div",{staticClass:"btnWrap"},[r("auth",{attrs:{auths:"imLiveRoomPurview/add"}},[r("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary"},on:{click:e.addBlack}},[e._v("添加学员")])],1),e._v(" "),r("el-upload",{directives:[{name:"permission",rawName:"v-permission",value:"imLiveRoomPurview/importPurviewUser",expression:"'imLiveRoomPurview/importPurviewUser'"}],attrs:{action:"/api-web/imLiveRoomPurview/importPurviewUser","show-file-list":!1,"before-upload":e.beforeUpload,accept:".xlsx,.xls",data:{roomUid:e.$route.query.roomUid},headers:e.headers,"on-error":e.handleError,"on-success":e.handleSuccess}},[r("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"}},[e._v("\n 导入学员\n ")])],1),e._v(" "),r("auth",{attrs:{auths:"imLiveRoomPurview/delete"}},[r("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"danger"},on:{click:e.removes}},[e._v("删除学员")])],1)],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("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}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"userId",label:"编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"username",label:"学员姓名"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"studentId",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("auth",{attrs:{auths:"imLiveRoomPurview/delete"}},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.deteleBlack(t.row)}}},[e._v("删除")])],1)],1)]}}])})],1),e._v(" "),r("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(" "),r("addStudentModel",{ref:"addStudentModel",on:{getList:e.getList}})],1)},o=[],a=(r("386d"),r("ac6a"),r("5530")),i=r("15fd"),s=(r("96cf"),r("1da1")),c=r("64ca"),u=r("333d"),l=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-dialog",{attrs:{width:"1000px",title:"添加学员",visible:e.lookVisible,"before-close":e.onClose,"append-to-body":""},on:{"update:visible":function(t){e.lookVisible=t}}},[r("div",[r("el-form",{attrs:{inline:!0,model:e.searchForm}},[r("el-form",{attrs:{inline:!0,model:e.searchForm}},[r("el-form-item",[r("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(" "),r("el-form-item",{attrs:{prop:"organIdList"}},[r("select-all",{staticClass:"multiple",attrs:{clearable:"",filterable:"","collapse-tags":"",multiple:"",placeholder:"请选择分部"},on:{change:e.onBranchChange},model:{value:e.searchForm.organIdList,callback:function(t){e.$set(e.searchForm,"organIdList","string"===typeof t?t.trim():t)},expression:"searchForm.organIdList"}},e._l(e.selects.branchs,(function(e,t){return r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{multiple:"","collapse-tags":"",clearable:"",filterable:"",placeholder:"请选择合作单位",disabled:e.searchForm.organIdList.length<=0},model:{value:e.searchForm.cooperationOrganId,callback:function(t){e.$set(e.searchForm,"cooperationOrganId","string"===typeof t?t.trim():t)},expression:"searchForm.cooperationOrganId"}},e._l(e.cooperationList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{multiple:"","collapse-tags":"",disabled:e.searchForm.organIdList.length<=0,clearable:"",filterable:"",placeholder:"请选择乐团"},model:{value:e.searchForm.musicGroupId,callback:function(t){e.$set(e.searchForm,"musicGroupId","string"===typeof t?t.trim():t)},expression:"searchForm.musicGroupId"}},e._l(e.teamList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"subjectId"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId",t)},expression:"searchForm.subjectId"}},e._l(e.selects.subjects,(function(e){return r("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",[r("el-select",{attrs:{multiple:"","collapse-tags":"",clearable:"",filterable:"",placeholder:"请选择群聊"},model:{value:e.searchForm.groupList,callback:function(t){e.$set(e.searchForm,"groupList","string"===typeof t?t.trim():t)},expression:"searchForm.groupList"}},e._l(e.groupList,(function(e,t){return r("el-option",{key:t,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{type:"danger"},on:{click:e.onReSet}},[e._v("重置")])],1)],1)],1),e._v(" "),r("auth",{attrs:{auths:"imLiveRoomPurview/addByCondition"}},[r("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary"},on:{click:e.addAllStudent}},[e._v("一键添加")])],1),e._v(" "),r("div",{staticClass:"tableWrap"},[r("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}},[r("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"userId",label:"学员编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"username",label:"学员姓名"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部"}})],1),e._v(" "),r("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(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)])],1)},d=[],m=r("2fc8"),p=r("99b4"),h=r("160b"),f={name:"eidtPostMsg",components:{pagination:u["a"]},data:function(){return{searchForm:{search:"",organIdList:[],cooperationOrganId:[],musicGroupId:[],groupList:[]},tableList:[],organList:[],cooperationList:[],groupList:[],teamList:[],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.$store.dispatch("setSubjects"),this.$store.dispatch("setBranchs"),this.getGroupList()},methods:{getGroupList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(m["i"])({page:1,rows:9999});case 2:t=e.sent,this.groupList=t.data.rows;case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r,n,o,s,u,l,d,m=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,r=t.organIdList,n=t.cooperationOrganId,o=t.musicGroupId,s=t.groupList,u=Object(i["a"])(t,["organIdList","cooperationOrganId","musicGroupId","groupList"]),e.next=4,Object(c["u"])(Object(a["a"])(Object(a["a"])({organIds:r.join(","),schoolIds:n.join(","),teamIds:o.join(","),groupIds:s.join(",")},u),{},{page:this.rules.page,rows:this.rules.limit,roomUid:this.activeRow.roomUid}));case 4:l=e.sent,this.tableList=l.data.rows,this.rules.total=l.data.total,d=this.chioseIdList.map((function(e){return e.userId})),this.isNewPage=!0,this.$nextTick((function(){m.tableList.forEach((function(e){-1!=d.indexOf(e.userId)&&m.$refs.multipleSelection.toggleRowSelection(e,!0)})),m.isNewPage=!1})),e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](0),console.log(e.t0);case 15:case"end":return e.stop()}}),e,this,[[0,12]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:"",organIdList:[],cooperationOrganId:[],musicGroupId:[],groupList:[]},this.clearCom(),this.search(),this.clearCom(),this.search()},submit:function(){var e=Object(s["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(c["d"])({ids: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,"userId");else{if(this.isNewPage)return;var r=this.chioseIdList.map((function(e){return e.userId}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(n){e.push(n.userId),-1!=r.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 r=this.chioseIdList.map((function(e){return e.userId}));-1!=r.indexOf(t.userId)&&(this.chioseIdList.splice(r.indexOf(t.userId),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()},onBranchChange:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.$set(this.searchForm,"cooperationOrganId",[]),!(t&&t.length>0)){e.next=13;break}return r=t.join(","),e.prev=3,e.next=6,Object(p["E"])({organId:r}).then((function(e){200==e.code&&(n.cooperationList=e.data)}));case 6:return e.next=8,Object(h["b"])({organId:r,page:1,rows:9999}).then((function(e){200==e.code&&(n.teamList=e.data.rows)}));case 8:e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),console.log(e.t0);case 13:case"end":return e.stop()}}),e,this,[[3,10]])})));function t(t){return e.apply(this,arguments)}return t}(),addAllStudent:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r,n,o,s,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.searchForm,r=t.organIdList,n=t.cooperationOrganId,o=t.musicGroupId,s=t.groupList,u=Object(i["a"])(t,["organIdList","cooperationOrganId","musicGroupId","groupList"]),r.join(",")||n.join(",")||o.join(",")||s.join(",")||this.searchForm.search){e.next=4;break}return this.$message.error("请至少选择一个搜索条件"),e.abrupt("return");case 4:return e.prev=4,e.next=7,this.$confirm("确认后当前所选条件下所有学生都可观看直播","提示",{type:"warning"});case 7:return e.next=9,Object(c["b"])(Object(a["a"])(Object(a["a"])({organIds:r.join(","),schoolIds:n.join(","),teamIds:o.join(","),groupIds:s.join(",")},u),{},{roomUid:this.activeRow.roomUid}));case 9:e.sent,this.$message.success("添加成功"),this.$emit("getList"),this.onClose(),e.next=17;break;case 15:e.prev=15,e.t0=e["catch"](4);case 17:case"end":return e.stop()}}),e,this,[[4,15]])})));function t(){return e.apply(this,arguments)}return t}()}},b=f,g=(r("5935"),r("2877")),v=Object(g["a"])(b,l,d,!1,null,"affeea3e",null),L=v.exports,I=r("5f87"),w=r("3908"),y={name:"liveAddStudentList",components:{pagination:u["a"],addStudentModel:L},data:function(){return{headers:{Authorization:Object(I["b"])(),tenantId:Object(I["a"])()},searchForm:{search:"",organIdList:[],cooperationOrganId:[],musicGroupId:[],groupList:[]},tableList:[],organList:[],cooperationList:[],groupList:[],teamList:[],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.$store.dispatch("setSubjects"),this.$store.dispatch("setBranchs"),this.getGroupList(),this.getList()},methods:{getGroupList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(m["i"])({page:1,rows:9999});case 2:t=e.sent,this.groupList=t.data.rows;case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getList:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,r,n,o,s,u,l,d,m=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,t=this.searchForm,r=t.organIdList,n=t.cooperationOrganId,o=t.musicGroupId,s=t.groupList,u=Object(i["a"])(t,["organIdList","cooperationOrganId","musicGroupId","groupList"]),e.next=4,Object(c["q"])(Object(a["a"])(Object(a["a"])({organIds:r.join(","),schoolIds:n.join(","),teamIds:o.join(","),groupIds:s.join(",")},u),{},{page:this.rules.page,rows:this.rules.limit,roomUid:this.$route.query.roomUid}));case 4:l=e.sent,this.tableList=l.data.rows,this.rules.total=l.data.total,d=this.chioseIdList.map((function(e){return e.userId})),this.isNewPage=!0,this.$nextTick((function(){m.tableList.forEach((function(e){-1!=d.indexOf(e.userId)&&m.$refs.multipleSelection.toggleRowSelection(e,!0)})),m.isNewPage=!1})),e.next=15;break;case 12:e.prev=12,e.t0=e["catch"](0),console.log(e.t0);case 15:case"end":return e.stop()}}),e,this,[[0,12]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm={search:"",organIdList:[],cooperationOrganId:[],musicGroupId:[],groupList:[]},this.clearCom(),this.search()},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 r=this.chioseIdList.map((function(e){return e.userId}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(n){e.push(n.userId),-1!=r.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 r=this.chioseIdList.map((function(e){return e.userId}));-1!=r.indexOf(t.userId)&&(this.chioseIdList.splice(r.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(s["a"])(regeneratorRuntime.mark((function e(t){var r=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(s["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(c["i"])({roomUid:r.$route.query.roomUid,ids:t.userId+""});case 3:e.sent,r.getList(),r.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.addStudentModel.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(s["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.chioseIdList.map((function(e){return e.userId})).join(","),t.prev=1,t.next=4,Object(c["i"])({roomUid:e.$route.query.roomUid,ids:r});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()}},onBranchChange:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var r,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.$set(this.searchForm,"cooperationOrganId",[]),!(t&&t.length>0)){e.next=13;break}return r=t.join(","),e.prev=3,e.next=6,Object(p["E"])({organId:r}).then((function(e){200==e.code&&(n.cooperationList=e.data)}));case 6:return e.next=8,Object(h["b"])({organId:r,page:1,rows:9999}).then((function(e){200==e.code&&(n.teamList=e.data.rows)}));case 8:e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](3),console.log(e.t0);case 13:case"end":return e.stop()}}),e,this,[[3,10]])})));function t(t){return e.apply(this,arguments)}return t}(),beforeUpload:function(e){w["a"].startLoading()},handleSuccess:function(e,t,r){w["a"].endLoading(),200==e.code?(this.$message.success("导入成功"),this.getList()):this.$message.error(e.msg)},handleError:function(e,t,r){w["a"].endLoading()}}},O=y,j=(r("bc7f"),Object(g["a"])(O,n,o,!1,null,"4c7ab744",null));t["default"]=j.exports}}]);
|