chunk-1845ebb3.a43d1997.js 32 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1845ebb3"],{"05d9":function(e,t,r){},"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 a(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 i(e,t,r){var i=o(),s=e-i,u=20,c=0;t="undefined"===typeof t?500:t;var l=function e(){c+=u;var o=Math.easeInOutQuad(c,i,s,t);a(o),c<t?n(e):r&&"function"===typeof r&&r()};l()}},"160b":function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return i}));r("b775");var n=r("829b"),a="/api-web";function o(e){return Object(n["a"])({url:a+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function i(e){return Object(n["a"])({url:a+"/musicGroup/queryPage",method:"post",data:e,requestType:"form",hideLoading:!0})}},"2fc8":function(e,t,r){"use strict";r.d(t,"i",(function(){return s})),r.d(t,"j",(function(){return u})),r.d(t,"t",(function(){return c})),r.d(t,"l",(function(){return l})),r.d(t,"d",(function(){return d})),r.d(t,"e",(function(){return p})),r.d(t,"s",(function(){return m})),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 O})),r.d(t,"g",(function(){return L})),r.d(t,"a",(function(){return j})),r.d(t,"q",(function(){return I})),r.d(t,"r",(function(){return w})),r.d(t,"c",(function(){return y})),r.d(t,"f",(function(){return S})),r.d(t,"n",(function(){return k})),r.d(t,"o",(function(){return x}));var n=r("829b"),a=r("4328"),o=r.n(a),i="/api-web";function s(e){return Object(n["a"])({url:i+"/imSendGroupMessage/queryGroupPage",method:"POST",requestType:"form",data:e})}function u(e){return Object(n["a"])({url:i+"/imSendGroupMessage/queryGroupPage1",method:"POST",requestType:"form",data:e})}function c(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 p(e){return Object(n["a"])({url:i+"/imSendGroupMessage/deleteGroupList",method:"POST",requestType:"form",data:e})}function m(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 O(e){return Object(n["a"])({url:i+"/teacher/queryTeacherBasicInfo",method:"get",params:e,data:e})}function L(e){return Object(n["a"])({url:i+"/employee/queryEmployeeBasicInfo",method:"get",params:e,data:e})}function j(e){return Object(n["a"])({url:i+"/imGroupMember/addGroupMember",method:"post",params:e,data:o.a.stringify(e)})}function I(e){return Object(n["a"])({url:i+"/imGroup/quitGroup",method:"post",params:e,data:o.a.stringify(e)})}function w(e){return Object(n["a"])({url:i+"/imGroup/updateRoleType",method:"post",params:e,data:o.a.stringify(e)})}function y(e){return Object(n["a"])({url:i+"/imGroup/createGroup",method:"post",data:e})}function S(e){return Object(n["a"])({url:i+"/imGroup/dismissGroup",method:"post",requestType:"form",data:e})}function k(e){return Object(n["a"])({url:i+"/imSendGroupMessage/queryGroupAll",method:"POST",requestType:"form",data:e})}function x(e){return Object(n["a"])({url:i+"/imSendGroupMessage/queryGroupAll1",method:"POST",requestType:"form",data:e})}},"64ca":function(e,t,r){"use strict";r.d(t,"h",(function(){return a})),r.d(t,"t",(function(){return o})),r.d(t,"j",(function(){return i})),r.d(t,"u",(function(){return s})),r.d(t,"v",(function(){return u})),r.d(t,"J",(function(){return c})),r.d(t,"s",(function(){return l})),r.d(t,"L",(function(){return d})),r.d(t,"g",(function(){return p})),r.d(t,"I",(function(){return m})),r.d(t,"w",(function(){return h})),r.d(t,"c",(function(){return f})),r.d(t,"z",(function(){return b})),r.d(t,"N",(function(){return g})),r.d(t,"A",(function(){return v})),r.d(t,"p",(function(){return O})),r.d(t,"a",(function(){return L})),r.d(t,"m",(function(){return j})),r.d(t,"r",(function(){return I})),r.d(t,"y",(function(){return w})),r.d(t,"C",(function(){return y})),r.d(t,"d",(function(){return S})),r.d(t,"n",(function(){return k})),r.d(t,"b",(function(){return x})),r.d(t,"K",(function(){return G})),r.d(t,"M",(function(){return F})),r.d(t,"G",(function(){return _})),r.d(t,"H",(function(){return $})),r.d(t,"F",(function(){return q})),r.d(t,"o",(function(){return T})),r.d(t,"B",(function(){return R})),r.d(t,"E",(function(){return P})),r.d(t,"O",(function(){return C})),r.d(t,"k",(function(){return B})),r.d(t,"i",(function(){return M})),r.d(t,"x",(function(){return E})),r.d(t,"e",(function(){return U})),r.d(t,"f",(function(){return N})),r.d(t,"l",(function(){return A})),r.d(t,"D",(function(){return V})),r.d(t,"q",(function(){return z}));var n=r("829b"),a=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"})},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})},u=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoomMember/queryRoomMember",method:"post",data:e})},c=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})},p=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})},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})},O=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/add",method:"post",data:e})},j=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomBlack/delete",method:"post",data:e})},I=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/queryLiveRoomGoodsOrderList",method:"get",data:e,params:e})},w=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/queryStudent",method:"post",data:e})},y=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/selectRoomPurviewStudent",method:"post",data:e})},S=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/add",method:"get",data:e,params:e})},k=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/delete",method:"get",data:e,params:e})},x=function(e){return Object(n["a"])({url:"/api-web/imLiveRoomPurview/addByCondition",method:"post",data:e,params:e})},G=function(e){return Object(n["a"])({url:"/api-web/imLiveBroadcastRoom/roomStart/".concat(e),method:"get",data:e,params:e})},F=function(e){return Object(n["a"])({url:"/api-web/sysTenantConfig/queryAll",params:e,method:"get"})},_=function(e){return Object(n["a"])({url:"/api-web/vipGroupManage/liveGroupDetail/"+e.id,method:"get"})},$=function(e){return Object(n["a"])({url:"/api-web/vipGroupManage/liveStudentList",method:"post",data:e})},q=function(e){return Object(n["a"])({url:"/api-web/vipGroupManage/liveCourseList",method:"post",data:e})},T=function(e){return Object(n["a"])({url:"/api-web/teacher/findTeacherByTenantId",method:"get",params:e})};function R(e){return Object(n["a"])({url:"/api-web/vipGroupManage/getStudentSurplusCourseFee",method:"get",params:e})}function P(e){return Object(n["a"])({url:"/api-web/vipGroupManage/applyRefundForStudent",method:"POST",requestType:"form",data:e})}function C(e){return Object(n["a"])({url:"/api-web/vipGroupManage/updateLiveGroup",method:"POST",data:e})}function B(e){return Object(n["a"])({url:"/api-web/vipGroupManage/delLiveGroup/"+e.id,method:"get"})}function M(e){return Object(n["a"])({url:"/api-web/courseSchedule/updateCourseScheduleShareMode",method:"POST",data:e})}function E(e){return Object(n["a"])({url:"/api-web/courseShare/queryCourseSharedStudent",method:"get",data:e,params:e})}function U(e){return Object(n["a"])({url:"/api-web/courseShare/saveCourseShare",method:"post",data:e})}function N(e){return Object(n["a"])({url:"/api-web/courseShare/saveCourseShareByOne",method:"post",data:e})}function A(e){return Object(n["a"])({url:"/api-web/courseShare/deleteShareStudent",method:"post",data:e})}function V(e){return Object(n["a"])({url:"/api-web/courseShare/queryAllCourseShareStudent",method:"get",data:e,params:e})}function z(e){return Object(n["a"])({url:"/api-web/imLiveRoomVideo/queryList",method:"get",data:e,params:e})}},b7df:function(e,t,r){"use strict";r("05d9")},cab5:function(e,t,r){},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(" 导入学员 ")])],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)},a=[],o=(r("386d"),r("ac6a"),r("db72")),i=r("a8db"),s=r("c80c"),u=(r("96cf"),r("3b8d")),c=r("64ca"),l=r("333d"),d=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)},p=[],m=r("2fc8"),h=r("99b4"),f=r("160b"),b=["organIdList","cooperationOrganId","musicGroupId","groupList"],g=["organIdList","cooperationOrganId","musicGroupId","groupList"],v={name:"eidtPostMsg",components:{pagination:l["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(u["a"])(Object(s["a"])().mark((function e(){var t;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log("getGroupList"),e.prev=1,e.next=4,Object(m["i"])({page:1,rows:9999});case 4:t=e.sent,this.groupList=t.data.rows,e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](1),console.log(e.t0);case 11:case"end":return e.stop()}}),e,this,[[1,8]])})));function t(){return e.apply(this,arguments)}return t}(),getList:function(){var e=Object(u["a"])(Object(s["a"])().mark((function e(){var t,r,n,a,u,l,d,p,m=this;return Object(s["a"])().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,a=t.musicGroupId,u=t.groupList,l=Object(i["a"])(t,b),e.next=4,Object(c["C"])(Object(o["a"])(Object(o["a"])({organIds:r.join(","),schoolIds:n.join(","),teamIds:a.join(","),groupIds:u.join(",")},l),{},{page:this.rules.page,rows:this.rules.limit,roomUid:this.activeRow.roomUid}));case 4:d=e.sent,this.tableList=d.data.rows,this.rules.total=d.data.total,p=this.chioseIdList.map((function(e){return e.userId})),this.isNewPage=!0,this.$nextTick((function(){m.tableList.forEach((function(e){-1!=p.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(u["a"])(Object(s["a"])().mark((function e(){var t;return Object(s["a"])().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(u["a"])(Object(s["a"])().mark((function e(t){var r,n=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.$set(this.searchForm,"cooperationOrganId",[]),this.$set(this.searchForm,"musicGroupId",[]),!(t&&t.length>0)){e.next=14;break}return r=t.join(","),e.prev=4,e.next=7,Object(h["E"])({organId:r}).then((function(e){200==e.code&&(n.cooperationList=e.data)}));case 7:return e.next=9,Object(f["a"])({organId:r,page:1,rows:9999,status:"PROGRESS"}).then((function(e){200==e.code&&(n.teamList=e.data.rows)}));case 9:e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](4),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[4,11]])})));function t(t){return e.apply(this,arguments)}return t}(),addAllStudent:function(){var e=Object(u["a"])(Object(s["a"])().mark((function e(){var t,r,n,a,u,l;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.searchForm,r=t.organIdList,n=t.cooperationOrganId,a=t.musicGroupId,u=t.groupList,l=Object(i["a"])(t,g),r.join(",")||n.join(",")||a.join(",")||u.join(",")||this.searchForm.search||subjectId){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(o["a"])(Object(o["a"])({organIds:r.join(","),schoolIds:n.join(","),teamIds:a.join(","),groupIds:u.join(",")},l),{},{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}()}},O=v,L=(r("b7df"),r("2877")),j=Object(L["a"])(O,d,p,!1,null,"a71c158e",null),I=j.exports,w=r("5f87"),y=r("3908"),S=["organIdList","cooperationOrganId","musicGroupId","groupList"],k={name:"liveAddStudentList",components:{pagination:l["a"],addStudentModel:I},data:function(){return{headers:{Authorization:Object(w["b"])(),tenantId:Object(w["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(u["a"])(Object(s["a"])().mark((function e(){var t;return Object(s["a"])().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(u["a"])(Object(s["a"])().mark((function e(){var t,r,n,a,u,l,d,p,m=this;return Object(s["a"])().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,a=t.musicGroupId,u=t.groupList,l=Object(i["a"])(t,S),e.next=4,Object(c["y"])(Object(o["a"])(Object(o["a"])({organIds:r.join(","),schoolIds:n.join(","),teamIds:a.join(","),groupIds:u.join(",")},l),{},{page:this.rules.page,rows:this.rules.limit,roomUid:this.$route.query.roomUid}));case 4:d=e.sent,this.tableList=d.data.rows,this.rules.total=d.data.total,p=this.chioseIdList.map((function(e){return e.userId})),this.isNewPage=!0,this.$nextTick((function(){m.tableList.forEach((function(e){-1!=p.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(u["a"])(Object(s["a"])().mark((function e(t){var r=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("你确定将".concat(t.username,"移除直播间?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(u["a"])(Object(s["a"])().mark((function e(){return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["n"])({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(u["a"])(Object(s["a"])().mark((function t(){var r;return Object(s["a"])().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["n"])({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(u["a"])(Object(s["a"])().mark((function e(t){var r,n=this;return Object(s["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.$set(this.searchForm,"cooperationOrganId",[]),this.$set(this.searchForm,"musicGroupId",[]),!(t&&t.length>0)){e.next=14;break}return r=t.join(","),e.prev=4,e.next=7,Object(h["E"])({organId:r}).then((function(e){200==e.code&&(n.cooperationList=e.data)}));case 7:return e.next=9,Object(f["a"])({organId:r,page:1,rows:9999,status:"PROGRESS"}).then((function(e){200==e.code&&(n.teamList=e.data.rows)}));case 9:e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](4),console.log(e.t0);case 14:case"end":return e.stop()}}),e,this,[[4,11]])})));function t(t){return e.apply(this,arguments)}return t}(),beforeUpload:function(e){y["a"].startLoading()},handleSuccess:function(e,t,r){y["a"].endLoading(),200==e.code?(this.$message.success("导入成功"),this.getList()):this.$message.error(e.msg)},handleError:function(e,t,r){y["a"].endLoading()}}},x=k,G=(r("fcbb"),Object(L["a"])(x,n,a,!1,null,"4dbaa771",null));t["default"]=G.exports},fcbb:function(e,t,r){"use strict";r("cab5")}}]);