chunk-7fa10590.6ff56e4d.js 56 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7fa10590"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,a,i){return e/=i/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var i=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 n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,a){var s=n(),l=e-s,o=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=o;var n=Math.easeInOutQuad(u,s,l,t);r(n),u<t?i(e):a&&"function"===typeof a&&a()};c()}},"160b":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return s}));a("b775");var i=a("829b"),r="/api-web";function n(e){return Object(i["a"])({url:r+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function s(e){return Object(i["a"])({url:r+"/musicGroup/queryPage",method:"post",data:e,requestType:"form",hideLoading:!0})}},"2a22":function(e,t,a){},"2fc8":function(e,t,a){"use strict";a.d(t,"i",(function(){return l})),a.d(t,"j",(function(){return o})),a.d(t,"t",(function(){return u})),a.d(t,"l",(function(){return c})),a.d(t,"d",(function(){return d})),a.d(t,"e",(function(){return h})),a.d(t,"s",(function(){return p})),a.d(t,"b",(function(){return m})),a.d(t,"u",(function(){return f})),a.d(t,"k",(function(){return b})),a.d(t,"h",(function(){return v})),a.d(t,"m",(function(){return g})),a.d(t,"p",(function(){return y})),a.d(t,"g",(function(){return I})),a.d(t,"a",(function(){return L})),a.d(t,"q",(function(){return T})),a.d(t,"r",(function(){return O})),a.d(t,"c",(function(){return _})),a.d(t,"f",(function(){return S})),a.d(t,"n",(function(){return w})),a.d(t,"o",(function(){return E}));var i=a("829b"),r=a("4328"),n=a.n(r),s="/api-web";function l(e){return Object(i["a"])({url:s+"/imSendGroupMessage/queryGroupPage",method:"POST",requestType:"form",data:e})}function o(e){return Object(i["a"])({url:s+"/imSendGroupMessage/queryGroupPage1",method:"POST",requestType:"form",data:e})}function u(e){return Object(i["a"])({url:s+"/imSendGroupMessage/send",method:"POST",data:e})}function c(e){return Object(i["a"])({url:s+"/imSendGroupMessage/queryPage",method:"POST",requestType:"form",data:e})}function d(e){return Object(i["a"])({url:s+"/imSendGroupMessage/delete",method:"POST",requestType:"form",data:e})}function h(e){return Object(i["a"])({url:s+"/imSendGroupMessage/deleteGroupList",method:"POST",requestType:"form",data:e})}function p(e){return Object(i["a"])({url:s+"/imSendGroupMessage/update",method:"POST",data:e})}function m(e){return Object(i["a"])({url:s+"/imSendGroupMessage/addGroupList",method:"POST",requestType:"form",data:e})}function f(e){return Object(i["a"])({url:s+"/imGroup/updateImGroup",method:"POST",data:e})}function b(e){return Object(i["a"])({url:s+"/imGroupMember/queryGroupMemberPage",method:"POST",params:e,data:e})}function v(e){return Object(i["a"])({url:s+"/imGroup/queryGroupDetail",method:"get",params:e,data:e})}function g(e){return Object(i["a"])({url:s+"/studentManage/queryStudentBasicInfo",method:"get",params:e,data:e})}function y(e){return Object(i["a"])({url:s+"/teacher/queryTeacherBasicInfo",method:"get",params:e,data:e})}function I(e){return Object(i["a"])({url:s+"/employee/queryEmployeeBasicInfo",method:"get",params:e,data:e})}function L(e){return Object(i["a"])({url:s+"/imGroupMember/addGroupMember",method:"post",params:e,data:n.a.stringify(e)})}function T(e){return Object(i["a"])({url:s+"/imGroup/quitGroup",method:"post",params:e,data:n.a.stringify(e)})}function O(e){return Object(i["a"])({url:s+"/imGroup/updateRoleType",method:"post",params:e,data:n.a.stringify(e)})}function _(e){return Object(i["a"])({url:s+"/imGroup/createGroup",method:"post",data:e})}function S(e){return Object(i["a"])({url:s+"/imGroup/dismissGroup",method:"post",requestType:"form",data:e})}function w(e){return Object(i["a"])({url:s+"/imSendGroupMessage/queryGroupAll",method:"POST",requestType:"form",data:e})}function E(e){return Object(i["a"])({url:s+"/imSendGroupMessage/queryGroupAll1",method:"POST",requestType:"form",data:e})}},"4d57":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("h2",[a("el-page-header",{attrs:{content:e.detail.name},on:{back:e.onCancel}})],1),e._v(" "),a("div",{staticClass:"m-core"},[a("descriptions",{staticClass:"desc",attrs:{column:3}},[a("descriptions-item",{attrs:{label:"群聊名称:"}},[a("div",{staticClass:"flexBox"},[e._v("\n "+e._s(e.detail.name||"--")+"\n "),a("i",{staticClass:"el-icon-edit",on:{click:function(t){return e.reseDetail("name")}}})])]),e._v(" "),a("descriptions-item",{attrs:{label:"所属乐团:"}},[a("div",{staticClass:"flexBox"},[e._v("\n "+e._s(e.detail.memo||"--")+"\n "),a("i",{staticClass:"el-icon-edit",on:{click:function(t){return e.reseDetail("memo")}}})])]),e._v(" "),a("descriptions-item",{attrs:{label:"群聊类型:"}},[a("div",{staticClass:"flexBox"},[e._v("\n "+e._s(e._f("catgGoupType")(e.detail.groupType))+"\n "),a("i",{staticClass:"el-icon-edit",on:{click:function(t){return e.reseDetail("type")}}})])])],1),e._v(" "),a("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",{attrs:{prop:"search"}},[a("el-input",{attrs:{placeholder:"成员姓名/手机号"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search",t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"roleType"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"角色"},model:{value:e.searchForm.roleType,callback:function(t){e.$set(e.searchForm,"roleType","string"===typeof t?t.trim():t)},expression:"searchForm.roleType"}},e._l(e.catRoleList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"bWrap"},[a("auth",{attrs:{auths:"imGroupMember/addGroupMember"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.addMembers}},[e._v("添加成员")])],1),e._v(" "),a("auth",{staticStyle:{"margin-left":"10px"},attrs:{auths:"imGroup/quitGroup"}},[a("el-button",{attrs:{type:"danger"},on:{click:e.deteleMembers}},[e._v("移除成员")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("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}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userId",label:"编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"user.username",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"user.phone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"roleType",label:"角色"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v("\n "+e._s(t.row.roleType?t.row.roleType:"学员")+"\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"roleType",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[t.row.roleType?a("auth",{attrs:{auths:"imGroup/updateRoleType"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.resetroleType(t.row)}}},[e._v("修改角色")])],1):e._e(),e._v(" "),t.row.sendFlag?e._e():a("auth",{attrs:{auths:"imGroup/quitGroup"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.deleteStudent(t.row)}}},[e._v("移除成员")])],1)],1)]}}])})],1),e._v(" "),a("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(" "),a("eidtCatInfo",{ref:"eidtCatInfo",on:{getList:e.getDetail}}),e._v(" "),a("addMember",{ref:"addMember",on:{getList:e.getList}}),e._v(" "),a("resetRoleType",{ref:"resetRoleType",on:{getList:e.getList}})],1)},r=[],n=(a("386d"),a("ac6a"),a("c80c")),s=a("db72"),l=(a("96cf"),a("3b8d")),o=(a("bc3a"),a("5f87"),a("333d")),u=(a("3908"),a("2fc8")),c=a("1cc7"),d=a("ec1b"),h=a.n(d),p=a("92e3"),m=a("a339"),f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{width:"500px",title:"修改角色",visible:e.lookVisible,"before-close":e.onClose},on:{"update:visible":function(t){e.lookVisible=t}}},[a("el-form",{ref:"eidtPostMsg",attrs:{model:e.formes,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"群聊角色",rules:[{required:!0,message:"请选择群聊角色"}],prop:"roleType"}},[a("el-select",{staticClass:"w100",attrs:{clearable:"",filterable:"",placeholder:"群聊类型"},model:{value:e.formes.roleType,callback:function(t){e.$set(e.formes,"roleType","string"===typeof t?t.trim():t)},expression:"formes.roleType"}},e._l(e.catgGoupTypeList,(function(e,t){return a("el-option",{key:t,attrs:{value:e,label:e}})})),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.onClose}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitMsg}},[e._v("确 定")])],1)],1)],1)},b=[],v=(a("7f7f"),{name:"eidtPostMsg",data:function(){return{formes:{id:"",name:"",groupType:""},catgGoupTypeList:[],lookVisible:!1,chioseIdList:null,activeRow:null,type:"",title:""}},mounted:function(){this.init()},methods:{init:function(){},openDioag:function(e){this.activeRow=e,this.formes={imGroupId:this.$route.query.imGroupId,roleType:e.roleType,userId:e.userId},this.setRoleType(),this.lookVisible=!0},setRoleType:function(){var e=["指导老师","乐队指导"],t=["乐团主管","运营主管","衔接老师"];-1!=e.indexOf(this.activeRow.roleType)?this.catgGoupTypeList=e:this.catgGoupTypeList=t},onClose:function(){this.formes={id:"",groupType:""},this.$refs["eidtPostMsg"].resetFields(),this.lookVisible=!1},submitMsg:function(){var e=this;this.$refs.eidtPostMsg.validate(function(){var t=Object(l["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=13;break}return t.prev=1,t.next=4,Object(u["r"])(Object(s["a"])({},e.formes));case 4:t.sent,e.$message.success("修改成功"),e.$emit("getList"),e.onClose(),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]])})));return function(e){return t.apply(this,arguments)}}())},getName:function(e){this.formes.fileName=e.data.name},payDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<(new Date).getTime()}}}}}),g=v,y=(a("e4f5"),a("2877")),I=Object(y["a"])(g,f,b,!1,null,"6936d7cb",null),L=I.exports,T=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.lookVisible?a("el-dialog",{attrs:{width:"1000px",title:"添加成员",visible:e.lookVisible,"before-close":e.onClose,"append-to-body":""},on:{"update:visible":function(t){e.lookVisible=t}}},[a("div",[a("el-form",{ref:"memberForm",attrs:{model:e.memberForm}},[a("el-form-item",{attrs:{label:"成员类型",prop:"chioseType",rules:[{required:!0,message:"选择成员类型"}]}},[a("el-radio-group",{on:{change:function(){e.memberForm.roleType=""}},model:{value:e.memberForm.chioseType,callback:function(t){e.$set(e.memberForm,"chioseType",t)},expression:"memberForm.chioseType"}},[a("el-radio",{attrs:{label:"student"}},[e._v("学生")]),e._v(" "),a("el-radio",{attrs:{label:"teacher"}},[e._v("老师")]),e._v(" "),a("el-radio",{attrs:{label:"role"}},[e._v("员工")])],1)],1),e._v(" "),"teacher"==e.memberForm.chioseType?a("el-form-item",{attrs:{label:"成员角色",prop:"roleType",rules:[{required:!0,message:"选择成员角色"}]}},[a("el-radio-group",{model:{value:e.memberForm.roleType,callback:function(t){e.$set(e.memberForm,"roleType",t)},expression:"memberForm.roleType"}},[a("el-radio",{attrs:{label:"指导老师"}},[e._v("指导老师")]),e._v(" "),a("el-radio",{attrs:{label:"乐队指导"}},[e._v("乐队指导")])],1)],1):e._e(),e._v(" "),"role"==e.memberForm.chioseType?a("el-form-item",{attrs:{label:"成员角色",prop:"roleType",rules:[{required:!0,message:"选择成员角色"}]}},[a("el-radio-group",{model:{value:e.memberForm.roleType,callback:function(t){e.$set(e.memberForm,"roleType",t)},expression:"memberForm.roleType"}},[a("el-radio",{attrs:{label:"乐团主管"}},[e._v("乐团主管")]),e._v(" "),a("el-radio",{attrs:{label:"运营主管"}},[e._v("运营主管")]),e._v(" "),a("el-radio",{attrs:{label:"衔接老师"}},[e._v("衔接老师")])],1)],1):e._e()],1),e._v(" "),a("div",["role"==e.memberForm.chioseType?a("employeeList",{ref:"employeeList"}):e._e(),e._v(" "),"student"==e.memberForm.chioseType?a("studentList",{ref:"studentList"}):e._e(),e._v(" "),"teacher"==e.memberForm.chioseType?a("teacherList",{ref:"teacherList"}):e._e()],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("确 定")])],1)]):e._e()],1)},O=[],_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("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(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"","collapse-tags":"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("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}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userId",label:"编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"username",label:"员工姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}})],1),e._v(" "),a("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)},S=[],w={name:"eidtPostMsg",props:["imGroupId"],components:{pagination:o["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},chioseType:""}},mounted:function(){this.$store.dispatch("setBranchs"),this.getList()},methods:{getList:function(){var e=Object(l["a"])(Object(n["a"])().mark((function e(){var t,a,i=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["g"])(Object(s["a"])(Object(s["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit,imGroupId:this.$route.query.imGroupId}));case 3:t=e.sent,this.tableList=t.data.rows,this.rules.total=t.data.total,a=this.chioseIdList.map((function(e){return e.userId})),this.isNewPage=!0,this.$nextTick((function(){i.tableList.forEach((function(e){-1!=a.indexOf(e.userId)&&i.$refs.multipleSelection.toggleRowSelection(e,!0)})),i.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()},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 a=this.chioseIdList.map((function(e){return e.userId}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(i){e.push(i.userId),-1!=a.indexOf(i.userId)&&t.$refs.multipleSelection.toggleRowSelection(i,!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 a=this.chioseIdList.map((function(e){return e.userId}));-1!=a.indexOf(t.userId)&&(this.chioseIdList.splice(a.indexOf(t.userId),1),this.chioseIdList.length<=0&&this.clearCom())},onClose:function(){this.clearCom(),this.lookVisible=!1},openDioag:function(e){this.activeRow=e,this.lookVisible=!0,this.getList()}}},E=w,k=(a("876e"),Object(y["a"])(E,_,S,!1,null,"0ad01442",null)),F=k.exports,x=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("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(" "),a("el-form-item",{attrs:{prop:"subjectId"}},[a("el-select",{attrs:{clearable:"",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 a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"","collapse-tags":"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"musicGroupId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"",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.musicGroupList,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("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}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userId",label:"编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"username",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}})],1),e._v(" "),a("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)},C=[],j=a("160b"),$={name:"eidtPostMsg",props:["imGroupId"],components:{pagination:o["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},chioseType:"",musicGroupList:[]}},mounted:function(){var e=Object(l["a"])(Object(n["a"])().mark((function e(){var t=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.$store.dispatch("setBranchs"),this.$store.dispatch("setSubjects"),this.getList(),e.next=5,Object(j["a"])({musicGroupStatus:"PROGRESS",rows:9999}).then((function(e){200==e.code&&(t.musicGroupList=e.data.rows)}));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getList:function(){var e=Object(l["a"])(Object(n["a"])().mark((function e(){var t,a,i=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["m"])(Object(s["a"])(Object(s["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit,imGroupId:this.$route.query.imGroupId}));case 3:t=e.sent,this.tableList=t.data.rows,this.rules.total=t.data.total,a=this.chioseIdList.map((function(e){return e.userId})),this.isNewPage=!0,this.$nextTick((function(){i.tableList.forEach((function(e){-1!=a.indexOf(e.userId)&&i.$refs.multipleSelection.toggleRowSelection(e,!0)})),i.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.searchForm.musicGroupId="",this.searchForm.organId="",this.searchForm.subjectId="",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 a=this.chioseIdList.map((function(e){return e.userId}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(i){e.push(i.userId),-1!=a.indexOf(i.userId)&&t.$refs.multipleSelection.toggleRowSelection(i,!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 a=this.chioseIdList.map((function(e){return e.userId}));-1!=a.indexOf(t.userId)&&(this.chioseIdList.splice(a.indexOf(t.userId),1),this.chioseIdList.length<=0&&this.clearCom())},onClose:function(){this.clearCom(),this.lookVisible=!1},openDioag:function(e){this.activeRow=e,this.lookVisible=!0,this.getList()}}},G=$,R=(a("e8c8"),Object(y["a"])(G,x,C,!1,null,"eceef1a4",null)),N=R.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-form",{attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("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(" "),a("el-form-item",{attrs:{prop:"subjectId"}},[a("el-select",{attrs:{clearable:"",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 a("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{staticClass:"multiple",attrs:{filterable:"",clearable:"","collapse-tags":"",placeholder:"请选择分部"},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId","string"===typeof t?t.trim():t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:e.onReSet}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("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}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"userId",label:"编号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"username",label:"老师姓名"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}})],1),e._v(" "),a("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)},M=[],V={name:"eidtPostMsg",props:["imGroupId"],components:{pagination:o["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},chioseType:"",musicGroupList:[]}},mounted:function(){var e=Object(l["a"])(Object(n["a"])().mark((function e(){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$store.dispatch("setBranchs"),this.$store.dispatch("setSubjects"),this.getList();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getList:function(){var e=Object(l["a"])(Object(n["a"])().mark((function e(){var t,a,i=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["p"])(Object(s["a"])(Object(s["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit,imGroupId:this.$route.query.imGroupId}));case 3:t=e.sent,this.tableList=t.data.rows,this.rules.total=t.data.total,a=this.chioseIdList.map((function(e){return e.userId})),this.isNewPage=!0,this.$nextTick((function(){i.tableList.forEach((function(e){-1!=a.indexOf(e.userId)&&i.$refs.multipleSelection.toggleRowSelection(e,!0)})),i.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.searchForm.organId="",this.searchForm.subjectId="",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 a=this.chioseIdList.map((function(e){return e.userId}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(i){e.push(i.userId),-1!=a.indexOf(i.userId)&&t.$refs.multipleSelection.toggleRowSelection(i,!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 a=this.chioseIdList.map((function(e){return e.userId}));-1!=a.indexOf(t.userId)&&(this.chioseIdList.splice(a.indexOf(t.userId),1),this.chioseIdList.length<=0&&this.clearCom())},onClose:function(){this.clearCom(),this.lookVisible=!1},openDioag:function(e){this.activeRow=e,this.lookVisible=!0,this.getList()}}},P=V,q=(a("62e7"),Object(y["a"])(P,A,M,!1,null,"1f32c7e4",null)),D=q.exports,U={name:"eidtPostMsg",components:{pagination:o["a"],employeeList:F,studentList:N,teacherList:D},data:function(){return{searchForm:{search:""},memberForm:{chioseType:"student",roleType:""},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:{submit:function(){var e=Object(l["a"])(Object(n["a"])().mark((function e(){var t,a=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t="","role"==this.memberForm.chioseType&&(this.chioseIdList=this.$refs.employeeList.chioseIdList,t="员工"),"student"==this.memberForm.chioseType&&(this.chioseIdList=this.$refs.studentList.chioseIdList,t="学员"),"teacher"==this.memberForm.chioseType&&(this.chioseIdList=this.$refs.teacherList.chioseIdList,t="老师"),this.chioseIdList&&!(this.chioseIdList.length<=0)){e.next=7;break}return this.$message.error("请至少选择一位".concat(t)),e.abrupt("return");case 7:this.$refs.memberForm.validate(function(){var e=Object(l["a"])(Object(n["a"])().mark((function e(t){var i;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=14;break}return e.prev=1,i=a.chioseIdList.map((function(e){return e.userId})).join(","),e.next=5,Object(u["a"])({userId:i,imGroupId:a.$route.query.imGroupId,roleType:a.memberForm.roleType});case 5:e.sent,a.$message.success("添加成功"),a.$emit("getList"),a.onClose(),e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](1),console.log(e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t){return e.apply(this,arguments)}}()),console.log(this.chioseIdList);case 9:case"end":return e.stop()}}),e,this)})));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 a=this.chioseIdList.map((function(e){return e.id}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(i){e.push(i.id),-1!=a.indexOf(i.id)&&t.$refs.multipleSelection.toggleRowSelection(i,!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=[],"role"==this.memberForm.chioseType&&this.$refs.employeeList&&(this.$refs.employeeList.chioseIdList=[]),"student"==this.memberForm.chioseType&&this.$refs.studentList&&(this.$refs.studentList.chioseIdList=[]),"teacher"==this.memberForm.chioseType&&this.$refs.teacherList&&(this.$refs.teacherList.chioseIdList=[])},onTableSelect:function(e,t){var a=this.chioseIdList.map((function(e){return e.id}));-1!=a.indexOf(t.id)&&(this.chioseIdList.splice(a.indexOf(t.id),1),this.chioseIdList.length<=0&&this.clearCom())},onClose:function(){this.memberForm={chioseType:"student",roleType:""},this.clearCom(),this.lookVisible=!1},openDioag:function(e){this.activeRow=e,this.lookVisible=!0}}},B=U,H=(a("5625"),Object(y["a"])(B,T,O,!1,null,"7b7f6446",null)),z=H.exports,Y={components:{pagination:o["a"],"count-to":h.a,eidtCatInfo:m["a"],addMember:z,resetRoleType:L},data:function(){return{catRoleList:p["i"],searchForm:{search:null,groupType:null},detail:{groupType:"",id:"",img:"",introduce:"",memberNum:0,memo:"",name:"",tags:"",tenantId:0,type:""},chatName:"",tableList:[{}],soundList:[],cooperationList:[],musicList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},multipleSelection:[],chioseIdList:[],isNewPage:!1}},created:function(){},mounted:function(){this.imGroupId=this.$route.query.imGroupId,this.$store.dispatch("setBranchs"),this.init()},methods:{init:function(){var e=this;Object(c["Kb"])({}).then((function(t){200==t.code&&(e.soundList=t.data)})),this.getDetail(),this.getList()},getDetail:function(){var e=Object(l["a"])(Object(n["a"])().mark((function e(){var t;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["h"])({imGroupId:this.imGroupId});case 3:t=e.sent,this.detail=Object(s["a"])({},t.data),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));function t(){return e.apply(this,arguments)}return t}(),getList:function(){var e=Object(l["a"])(Object(n["a"])().mark((function e(){var t,a,i=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["k"])(Object(s["a"])(Object(s["a"])({page:this.rules.page,rows:this.rules.limit},this.searchForm),{},{imGroupId:this.$route.query.imGroupId}));case 3:t=e.sent,this.tableList=t.data.rows,this.rules.total=t.data.total,a=this.chioseIdList.map((function(e){return e.id})),this.isNewPage=!0,this.$nextTick((function(){i.tableList.forEach((function(e){-1!=a.indexOf(e.id)&&i.$refs.multipleSelection.toggleRowSelection(e,!0)})),i.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()},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 a=this.chioseIdList.map((function(e){return e.id}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(i){e.push(i.id),-1!=a.indexOf(i.id)&&t.$refs.multipleSelection.toggleRowSelection(i,!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 a=this.chioseIdList.map((function(e){return e.id}));-1!=a.indexOf(t.id)&&(this.chioseIdList.splice(a.indexOf(t.id),1),this.chioseIdList.length<=0&&this.clearCom())},onReSet:function(){this.rules=Object(s["a"])(Object(s["a"])({},this.rules),{},{page:1}),this.$refs.searchForm.resetFields(),this.search()},onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push({path:"/groupChatManager"})},deleteStudent:function(){var e=Object(l["a"])(Object(n["a"])().mark((function e(t){return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm('是否确认移除成员 "'.concat(t.user.username,'" ?'),"提示",{type:"warning"});case 3:return e.next=5,Object(u["q"])({imGroupId:this.$route.query.imGroupId,userId:t.userId});case 5:this.$message.success("移除成功"),this.getList(),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](0),console.log(e.t0);case 12:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(t){return e.apply(this,arguments)}return t}(),reseDetail:function(e){this.$refs.eidtCatInfo.openResetDioag(this.detail,e)},addMembers:function(){this.$refs.addMember.openDioag()},deteleMembers:function(){var e=Object(l["a"])(Object(n["a"])().mark((function e(){var t,a;return Object(n["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("请至少选择一位".concat(str)),e.abrupt("return");case 3:return e.prev=3,t=this.chioseIdList.map((function(e){return e.userId})).join(","),a=this.chioseIdList.map((function(e){return e.user.username})).join(","),a.substring(0,a.length-1),e.next=9,this.$confirm('是否确认移除成员 "'.concat(a,'" ?'),"提示",{type:"warning"});case 9:return e.next=11,Object(u["q"])({imGroupId:this.$route.query.imGroupId,userId:t});case 11:this.$message.success("移除成功"),this.getList(),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](3),console.log(e.t0);case 18:case"end":return e.stop()}}),e,this,[[3,15]])})));function t(){return e.apply(this,arguments)}return t}(),resetroleType:function(e){this.$refs.resetRoleType.openDioag(e)}}},W=Y,X=(a("bd36"),Object(y["a"])(W,i,r,!1,null,"097e1f60",null));t["default"]=X.exports},5625:function(e,t,a){"use strict";a("5720")},5720:function(e,t,a){},"62e7":function(e,t,a){"use strict";a("a723")},"6a57":function(e,t,a){},"876e":function(e,t,a){"use strict";a("2a22")},"92e3":function(e,t,a){"use strict";a.d(t,"u",(function(){return o})),a.d(t,"H",(function(){return u})),a.d(t,"s",(function(){return c})),a.d(t,"c",(function(){return d})),a.d(t,"D",(function(){return h})),a.d(t,"Y",(function(){return p})),a.d(t,"X",(function(){return m})),a.d(t,"d",(function(){return f})),a.d(t,"L",(function(){return b})),a.d(t,"w",(function(){return v})),a.d(t,"ab",(function(){return g})),a.d(t,"t",(function(){return y})),a.d(t,"o",(function(){return I})),a.d(t,"Z",(function(){return L})),a.d(t,"P",(function(){return T})),a.d(t,"cb",(function(){return O})),a.d(t,"db",(function(){return _})),a.d(t,"O",(function(){return S})),a.d(t,"T",(function(){return w})),a.d(t,"B",(function(){return E})),a.d(t,"l",(function(){return k})),a.d(t,"W",(function(){return F})),a.d(t,"bb",(function(){return x})),a.d(t,"I",(function(){return C})),a.d(t,"m",(function(){return j})),a.d(t,"v",(function(){return $})),a.d(t,"M",(function(){return G})),a.d(t,"f",(function(){return R})),a.d(t,"e",(function(){return N})),a.d(t,"K",(function(){return A})),a.d(t,"J",(function(){return M})),a.d(t,"S",(function(){return V})),a.d(t,"G",(function(){return P})),a.d(t,"a",(function(){return q})),a.d(t,"x",(function(){return D})),a.d(t,"p",(function(){return U})),a.d(t,"n",(function(){return B})),a.d(t,"q",(function(){return H})),a.d(t,"g",(function(){return z})),a.d(t,"F",(function(){return Y})),a.d(t,"r",(function(){return W})),a.d(t,"C",(function(){return X})),a.d(t,"A",(function(){return K})),a.d(t,"z",(function(){return J})),a.d(t,"h",(function(){return Q})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"R",(function(){return ae})),a.d(t,"N",(function(){return ie})),a.d(t,"E",(function(){return re})),a.d(t,"y",(function(){return ne})),a.d(t,"Q",(function(){return se})),a.d(t,"U",(function(){return le})),a.d(t,"V",(function(){return oe})),a.d(t,"b",(function(){return ce}));var i=a("2d63"),r=a("768b"),n=a("267e"),s=sessionStorage.getItem("tenantConfig");s=s?JSON.parse(s):{};var l=s.tenantId,o=null,u=null;1==l?(u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]):(u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],h=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],p=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],m=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],f=[].concat(m,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),b=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"会员购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"}],v=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],g=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],y=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],I=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],L=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],T=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],O=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],_=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],S=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],w=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],E=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],k=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],F=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],x=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],C=ue(n["musicGroupType"]),j=ue(n["classTime"]),$=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],G=ue(n["payOrderType"]),R=ue(n["auditType"]),N=ue(n["auditPaymentType"]),A=ue(n["orderServerType"]),M=ue(n["orderAuditType"]),V=ue(n["rewardModeType"]),P=ue(n["musicClassType"]),q=ue(n["ProbationPeriodStatus"]),D=ue(n["downListType"]),U=ue(n["conclusion"]),B=ue(n["clientType"]),H=ue(n["couponType"]),z=ue(n["backType"]),Y=ue(n["memberEnum"]),W=ue(n["coupontypeDetail"]),X=ue(n["issue"]),K=ue(n["feedbackType"]),J=ue(n["feedbackTypeDesc"]),Q=ue(n["campState"]),Z=ue(n["catgGoupType"]),ee=ue(n["catRole"]),te=ue(n["catType"]),ae=ue(n["quiteReason"]),ie=ue(n["payUserType"]),re=ue(n["levelStatus"]),ne=ue(n["evaluateStatus"]),se=ue(n["problemType"]),le=ue(n["schoolUserType"]),oe=ue(n["shareLiveType"]);function ue(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(r["a"])(t,2),n=a[0],s=a[1],l={};if(e&&e.length){var o,u=Object(i["a"])(e);try{for(u.s();!(o=u.n()).done;){var c=o.value;l[c[n]]=c[s]}}catch(d){u.e(d)}finally{u.f()}}return l}},a339:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{width:"500px",title:e.title,visible:e.lookVisible,"before-close":e.onClose},on:{"update:visible":function(t){e.lookVisible=t}}},[a("el-form",{ref:"eidtPostMsg",attrs:{model:e.formes,"label-width":"120px"}},["name"==e.type?a("el-form-item",{attrs:{label:"群聊名称",rules:[{required:!0,message:"请输入群聊名称"}],prop:"name"}},[a("el-input",{staticClass:"w100",model:{value:e.formes.name,callback:function(t){e.$set(e.formes,"name",t)},expression:"formes.name"}})],1):e._e(),e._v(" "),"type"==e.type?a("el-form-item",{attrs:{label:"群聊类型",rules:[{required:!0,message:"请选择群聊类型"}],prop:"groupType"}},[a("el-select",{staticClass:"w100",attrs:{clearable:"",filterable:"",placeholder:"群聊类型"},model:{value:e.formes.groupType,callback:function(t){e.$set(e.formes,"groupType","string"===typeof t?t.trim():t)},expression:"formes.groupType"}},e._l(e.catgGoupTypeList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),"memo"==e.type?a("el-form-item",{attrs:{label:"群聊备注",rules:[{required:!0,message:"请输入群聊备注"}],prop:"memo"}},[a("el-input",{staticClass:"w100",model:{value:e.formes.memo,callback:function(t){e.$set(e.formes,"memo",t)},expression:"formes.memo"}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.onClose}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.submitMsg}},[e._v("确 定")])],1)],1)],1)},r=[],n=(a("7f7f"),a("c80c")),s=(a("96cf"),a("3b8d")),l=a("db72"),o=a("2fc8"),u=a("92e3"),c={name:"eidtPostMsg",data:function(){return{formes:{id:"",name:"",groupType:"",memo:""},catgGoupTypeList:u["k"],lookVisible:!1,chioseIdList:null,activeRow:null,type:"",title:""}},mounted:function(){this.init()},methods:{init:function(){},openDioag:function(e){this.chioseIdList=e,this.lookVisible=!0},openResetDioag:function(e,t){this.type=t,this.title="name"==t?"修改群聊名称":"type"==t?"修改群聊类型":"修改群备注",this.formes=Object(l["a"])({},e),this.lookVisible=!0},onClose:function(){this.formes={id:"",name:"",groupType:""},this.$refs["eidtPostMsg"].resetFields(),this.lookVisible=!1},submitMsg:function(){var e=this;this.$refs.eidtPostMsg.validate(function(){var t=Object(s["a"])(Object(n["a"])().mark((function t(a){return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=13;break}return t.prev=1,t.next=4,Object(o["u"])(Object(l["a"])({},e.formes));case 4:t.sent,e.$message.success("修改成功"),e.$emit("getList"),e.onClose(),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]])})));return function(e){return t.apply(this,arguments)}}())},getName:function(e){this.formes.fileName=e.data.name},payDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<(new Date).getTime()}}}}},d=c,h=(a("dc90"),a("2877")),p=Object(h["a"])(d,i,r,!1,null,"5c414ca4",null);t["a"]=p.exports},a723:function(e,t,a){},b3e5:function(e,t,a){},bd36:function(e,t,a){"use strict";a("ddcc")},dc90:function(e,t,a){"use strict";a("e541")},ddcc:function(e,t,a){},e4f5:function(e,t,a){"use strict";a("b3e5")},e541:function(e,t,a){},e8c8:function(e,t,a){"use strict";a("6a57")},ec1b:function(e,t,a){!function(t,a){e.exports=a()}(0,(function(){return function(e){function t(i){if(a[i])return a[i].exports;var r=a[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var a={};return t.m=e,t.c=a,t.i=function(e){return e},t.d=function(e,a,i){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=2)}([function(e,t,a){var i=a(4)(a(1),a(5),null,null);e.exports=i.exports},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(3);t.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(e){return e>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(e,t,a,i){return a*(1-Math.pow(2,-10*e/i))*1024/1023+t}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,i.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,i.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,i.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,i.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(e){this.startTime||(this.startTime=e),this.timestamp=e;var t=e-this.startTime;this.remaining=this.localDuration-t,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(t,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(t,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(t/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(t/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),t<this.localDuration?this.rAF=(0,i.requestAnimationFrame)(this.count):this.$emit("callback")},isNumber:function(e){return!isNaN(parseFloat(e))},formatNumber:function(e){e=e.toFixed(this.decimals),e+="";var t=e.split("."),a=t[0],i=t.length>1?this.decimal+t[1]:"",r=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;r.test(a);)a=a.replace(r,"$1"+this.separator+"$2");return this.prefix+a+i+this.suffix}},destroyed:function(){(0,i.cancelAnimationFrame)(this.rAF)}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a(0),r=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",r.default)},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=0,r="webkit moz ms o".split(" "),n=void 0,s=void 0;if("undefined"==typeof window)t.requestAnimationFrame=n=function(){},t.cancelAnimationFrame=s=function(){};else{t.requestAnimationFrame=n=window.requestAnimationFrame,t.cancelAnimationFrame=s=window.cancelAnimationFrame;for(var l=void 0,o=0;o<r.length&&(!n||!s);o++)l=r[o],t.requestAnimationFrame=n=n||window[l+"RequestAnimationFrame"],t.cancelAnimationFrame=s=s||window[l+"CancelAnimationFrame"]||window[l+"CancelRequestAnimationFrame"];n&&s||(t.requestAnimationFrame=n=function(e){var t=(new Date).getTime(),a=Math.max(0,16-(t-i)),r=window.setTimeout((function(){e(t+a)}),a);return i=t+a,r},t.cancelAnimationFrame=s=function(e){window.clearTimeout(e)})}t.requestAnimationFrame=n,t.cancelAnimationFrame=s},function(e,t){e.exports=function(e,t,a,i){var r,n=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(r=e,n=e.default);var l="function"==typeof n?n.options:n;if(t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns),a&&(l._scopeId=a),i){var o=Object.create(l.computed||null);Object.keys(i).forEach((function(e){var t=i[e];o[e]=function(){return t}})),l.computed=o}return{esModule:r,exports:n,options:l}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",[e._v("\n "+e._s(e.displayValue)+"\n")])},staticRenderFns:[]}}])}))}}]);