1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f05037ec"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,r,i){return e/=i/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var i=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 n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,r){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);a(n),u<t?i(e):r&&"function"===typeof r&&r()};c()}},"160b":function(e,t,r){"use strict";r.d(t,"b",(function(){return s})),r.d(t,"a",(function(){return l}));var i=r("b775"),a=r("829b"),n="/api-web";function s(e){return Object(a["a"])({url:n+"/musicGroup/queryPage",method:"post",data:e,requestType:"form"})}function l(e){return Object(i["a"])({url:n+"/chargeType/queryPage",method:"get",params:e})}},"2a22":function(e,t,r){},"2fc8":function(e,t,r){"use strict";r.d(t,"i",(function(){return l})),r.d(t,"j",(function(){return o})),r.d(t,"t",(function(){return u})),r.d(t,"l",(function(){return c})),r.d(t,"d",(function(){return d})),r.d(t,"e",(function(){return h})),r.d(t,"s",(function(){return p})),r.d(t,"b",(function(){return m})),r.d(t,"u",(function(){return f})),r.d(t,"k",(function(){return b})),r.d(t,"h",(function(){return v})),r.d(t,"m",(function(){return g})),r.d(t,"p",(function(){return y})),r.d(t,"g",(function(){return I})),r.d(t,"a",(function(){return L})),r.d(t,"q",(function(){return T})),r.d(t,"r",(function(){return _})),r.d(t,"c",(function(){return O})),r.d(t,"f",(function(){return S})),r.d(t,"n",(function(){return w})),r.d(t,"o",(function(){return E}));var i=r("829b"),a=r("4328"),n=r.n(a),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 _(e){return Object(i["a"])({url:s+"/imGroup/updateRoleType",method:"post",params:e,data:n.a.stringify(e)})}function O(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,r){"use strict";r.r(t);var i=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.detail.name},on:{back:e.onCancel}})],1),e._v(" "),r("div",{staticClass:"m-core"},[r("descriptions",{staticClass:"desc",attrs:{column:3}},[r("descriptions-item",{attrs:{label:"群聊名称:"}},[r("div",{staticClass:"flexBox"},[e._v("\n "+e._s(e.detail.name||"--")+"\n "),r("i",{staticClass:"el-icon-edit",on:{click:function(t){return e.reseDetail("name")}}})])]),e._v(" "),r("descriptions-item",{attrs:{label:"所属乐团:"}},[r("div",{staticClass:"flexBox"},[e._v("\n "+e._s(e.detail.memo||"--")+"\n "),r("i",{staticClass:"el-icon-edit",on:{click:function(t){return e.reseDetail("memo")}}})])]),e._v(" "),r("descriptions-item",{attrs:{label:"群聊类型:"}},[r("div",{staticClass:"flexBox"},[e._v("\n "+e._s(e._f("catgGoupType")(e.detail.groupType))+"\n "),r("i",{staticClass:"el-icon-edit",on:{click:function(t){return e.reseDetail("type")}}})])])],1),e._v(" "),r("save-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[r("el-form-item",{attrs:{prop:"search"}},[r("el-input",{attrs:{placeholder:"成员姓名/手机号"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search",t)},expression:"searchForm.search"}})],1),e._v(" "),r("el-form-item",{attrs:{prop:"roleType"}},[r("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 r("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"primary"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"danger"}},[e._v("重置")])],1)],1),e._v(" "),r("div",{staticClass:"bWrap"},[r("auth",{attrs:{auths:"imGroupMember/addGroupMember"}},[r("el-button",{attrs:{type:"primary"},on:{click:e.addMembers}},[e._v("添加成员")])],1),e._v(" "),r("auth",{staticStyle:{"margin-left":"10px"},attrs:{auths:"imGroup/quitGroup"}},[r("el-button",{attrs:{type:"danger"},on:{click:e.deteleMembers}},[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:"user.username",label:"姓名"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"user.phone",label:"手机号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"roleType",label:"角色"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v("\n "+e._s(t.row.roleType?t.row.roleType:"学员")+"\n ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"roleType",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[t.row.roleType?r("auth",{attrs:{auths:"imGroup/updateRoleType"}},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.resetroleType(t.row)}}},[e._v("修改角色")])],1):e._e(),e._v(" "),t.row.sendFlag?e._e():r("auth",{attrs:{auths:"imGroup/quitGroup"}},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.deleteStudent(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("eidtCatInfo",{ref:"eidtCatInfo",on:{getList:e.getDetail}}),e._v(" "),r("addMember",{ref:"addMember",on:{getList:e.getList}}),e._v(" "),r("resetRoleType",{ref:"resetRoleType",on:{getList:e.getList}})],1)},a=[],n=(r("386d"),r("ac6a"),r("5530")),s=(r("96cf"),r("1da1")),l=(r("bc3a"),r("5f87"),r("333d")),o=(r("3908"),r("2fc8")),u=r("1cc7"),c=r("ec1b"),d=r.n(c),h=r("92e3"),p=r("a339"),m=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-dialog",{attrs:{width:"500px",title:"修改角色",visible:e.lookVisible,"before-close":e.onClose},on:{"update:visible":function(t){e.lookVisible=t}}},[r("el-form",{ref:"eidtPostMsg",attrs:{model:e.formes,"label-width":"120px"}},[r("el-form-item",{attrs:{label:"群聊角色",rules:[{required:!0,message:"请选择群聊角色"}],prop:"roleType"}},[r("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 r("el-option",{key:t,attrs:{value:e,label:e}})})),1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.onClose}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitMsg}},[e._v("确 定")])],1)],1)],1)},f=[],b=(r("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(s["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=13;break}return t.prev=1,t.next=4,Object(o["r"])(Object(n["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()}}}}}),v=b,g=(r("e4f5"),r("2877")),y=Object(g["a"])(v,m,f,!1,null,"6936d7cb",null),I=y.exports,L=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[e.lookVisible?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",{ref:"memberForm",attrs:{model:e.memberForm}},[r("el-form-item",{attrs:{label:"成员类型",prop:"chioseType",rules:[{required:!0,message:"选择成员类型"}]}},[r("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"}},[r("el-radio",{attrs:{label:"student"}},[e._v("学生")]),e._v(" "),r("el-radio",{attrs:{label:"teacher"}},[e._v("老师")]),e._v(" "),r("el-radio",{attrs:{label:"role"}},[e._v("员工")])],1)],1),e._v(" "),"teacher"==e.memberForm.chioseType?r("el-form-item",{attrs:{label:"成员角色",prop:"roleType",rules:[{required:!0,message:"选择成员角色"}]}},[r("el-radio-group",{model:{value:e.memberForm.roleType,callback:function(t){e.$set(e.memberForm,"roleType",t)},expression:"memberForm.roleType"}},[r("el-radio",{attrs:{label:"指导老师"}},[e._v("指导老师")]),e._v(" "),r("el-radio",{attrs:{label:"乐队指导"}},[e._v("乐队指导")])],1)],1):e._e(),e._v(" "),"role"==e.memberForm.chioseType?r("el-form-item",{attrs:{label:"成员角色",prop:"roleType",rules:[{required:!0,message:"选择成员角色"}]}},[r("el-radio-group",{model:{value:e.memberForm.roleType,callback:function(t){e.$set(e.memberForm,"roleType",t)},expression:"memberForm.roleType"}},[r("el-radio",{attrs:{label:"乐团主管"}},[e._v("乐团主管")]),e._v(" "),r("el-radio",{attrs:{label:"运营主管"}},[e._v("运营主管")]),e._v(" "),r("el-radio",{attrs:{label:"衔接老师"}},[e._v("衔接老师")])],1)],1):e._e()],1),e._v(" "),r("div",["role"==e.memberForm.chioseType?r("employeeList",{ref:"employeeList"}):e._e(),e._v(" "),"student"==e.memberForm.chioseType?r("studentList",{ref:"studentList"}):e._e(),e._v(" "),"teacher"==e.memberForm.chioseType?r("teacherList",{ref:"teacherList"}):e._e()],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)]):e._e()],1)},T=[],_=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[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:"organId"}},[r("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 r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),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:"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:"手机号"}})],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)},O=[],S={name:"eidtPostMsg",props:["imGroupId"],components:{pagination:l["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(s["a"])(regeneratorRuntime.mark((function e(){var t,r,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(o["g"])(Object(n["a"])(Object(n["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,r=this.chioseIdList.map((function(e){return e.userId})),this.isNewPage=!0,this.$nextTick((function(){i.tableList.forEach((function(e){-1!=r.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 r=this.chioseIdList.map((function(e){return e.userId}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(i){e.push(i.userId),-1!=r.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 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.lookVisible=!1},openDioag:function(e){this.activeRow=e,this.lookVisible=!0,this.getList()}}},w=S,E=(r("876e"),Object(g["a"])(w,_,O,!1,null,"0ad01442",null)),k=E.exports,R=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[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:"subjectId"}},[r("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 r("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"organId"}},[r("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 r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"musicGroupId"}},[r("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 r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),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:"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:"手机号"}})],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)},x=[],F=r("160b"),C={name:"eidtPostMsg",props:["imGroupId"],components:{pagination:l["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(s["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.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(F["b"])({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(s["a"])(regeneratorRuntime.mark((function e(){var t,r,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(o["m"])(Object(n["a"])(Object(n["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,r=this.chioseIdList.map((function(e){return e.userId})),this.isNewPage=!0,this.$nextTick((function(){i.tableList.forEach((function(e){-1!=r.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 r=this.chioseIdList.map((function(e){return e.userId}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(i){e.push(i.userId),-1!=r.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 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.lookVisible=!1},openDioag:function(e){this.activeRow=e,this.lookVisible=!0,this.getList()}}},$=C,G=(r("e8c8"),Object(g["a"])($,R,x,!1,null,"eceef1a4",null)),N=G.exports,A=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[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:"subjectId"}},[r("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 r("el-option",{key:e.id,attrs:{value:e.id,label:e.name}})})),1)],1),e._v(" "),r("el-form-item",{attrs:{prop:"organId"}},[r("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 r("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),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:"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:"organName",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)},M=[],j={name:"eidtPostMsg",props:["imGroupId"],components:{pagination:l["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(s["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.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(s["a"])(regeneratorRuntime.mark((function e(){var t,r,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(o["p"])(Object(n["a"])(Object(n["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,r=this.chioseIdList.map((function(e){return e.userId})),this.isNewPage=!0,this.$nextTick((function(){i.tableList.forEach((function(e){-1!=r.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 r=this.chioseIdList.map((function(e){return e.userId}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(i){e.push(i.userId),-1!=r.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 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.lookVisible=!1},openDioag:function(e){this.activeRow=e,this.lookVisible=!0,this.getList()}}},V=j,P=(r("62e7"),Object(g["a"])(V,A,M,!1,null,"1f32c7e4",null)),q=P.exports,D={name:"eidtPostMsg",components:{pagination:l["a"],employeeList:k,studentList:N,teacherList:q},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(s["a"])(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.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(s["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=14;break}return e.prev=1,i=r.chioseIdList.map((function(e){return e.userId})).join(","),e.next=5,Object(o["a"])({userId:i,imGroupId:r.$route.query.imGroupId,roleType:r.memberForm.roleType});case 5:e.sent,r.$message.success("添加成功"),r.$emit("getList"),r.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 r=this.chioseIdList.map((function(e){return e.id}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(i){e.push(i.id),-1!=r.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 r=this.chioseIdList.map((function(e){return e.id}));-1!=r.indexOf(t.id)&&(this.chioseIdList.splice(r.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}}},U=D,B=(r("5625"),Object(g["a"])(U,L,T,!1,null,"7b7f6446",null)),H=B.exports,z={components:{pagination:l["a"],"count-to":d.a,eidtCatInfo:p["a"],addMember:H,resetRoleType:I},data:function(){return{catRoleList:h["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(u["Kb"])({}).then((function(t){200==t.code&&(e.soundList=t.data)})),this.getDetail(),this.getList()},getDetail: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.prev=0,e.next=3,Object(o["h"])({imGroupId:this.imGroupId});case 3:t=e.sent,this.detail=Object(n["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(s["a"])(regeneratorRuntime.mark((function e(){var t,r,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(o["k"])(Object(n["a"])(Object(n["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,r=this.chioseIdList.map((function(e){return e.id})),this.isNewPage=!0,this.$nextTick((function(){i.tableList.forEach((function(e){-1!=r.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 r=this.chioseIdList.map((function(e){return e.id}));this.$nextTick((function(){var e=[];t.tableList.forEach((function(i){e.push(i.id),-1!=r.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 r=this.chioseIdList.map((function(e){return e.id}));-1!=r.indexOf(t.id)&&(this.chioseIdList.splice(r.indexOf(t.id),1),this.chioseIdList.length<=0&&this.clearCom())},onReSet:function(){this.rules=Object(n["a"])(Object(n["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(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.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(o["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(s["a"])(regeneratorRuntime.mark((function e(){var t,r;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("请至少选择一位".concat(str)),e.abrupt("return");case 3:return e.prev=3,t=this.chioseIdList.map((function(e){return e.userId})).join(","),r=this.chioseIdList.map((function(e){return e.user.username})).join(","),r.substring(0,r.length-1),e.next=9,this.$confirm('是否确认移除成员 "'.concat(r,'" ?'),"提示",{type:"warning"});case 9:return e.next=11,Object(o["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=z,X=(r("bd36"),Object(g["a"])(W,i,a,!1,null,"097e1f60",null));t["default"]=X.exports},5625:function(e,t,r){"use strict";r("5720")},5720:function(e,t,r){},"62e7":function(e,t,r){"use strict";r("a723")},"6a57":function(e,t,r){},"876e":function(e,t,r){"use strict";r("2a22")},"92e3":function(e,t,r){"use strict";r.d(t,"u",(function(){return o})),r.d(t,"F",(function(){return u})),r.d(t,"s",(function(){return c})),r.d(t,"c",(function(){return d})),r.d(t,"C",(function(){return h})),r.d(t,"S",(function(){return p})),r.d(t,"R",(function(){return m})),r.d(t,"d",(function(){return f})),r.d(t,"J",(function(){return b})),r.d(t,"w",(function(){return v})),r.d(t,"U",(function(){return g})),r.d(t,"t",(function(){return y})),r.d(t,"o",(function(){return I})),r.d(t,"T",(function(){return L})),r.d(t,"M",(function(){return T})),r.d(t,"W",(function(){return _})),r.d(t,"X",(function(){return O})),r.d(t,"L",(function(){return S})),r.d(t,"P",(function(){return w})),r.d(t,"A",(function(){return E})),r.d(t,"l",(function(){return k})),r.d(t,"Q",(function(){return R})),r.d(t,"V",(function(){return x})),r.d(t,"G",(function(){return F})),r.d(t,"m",(function(){return C})),r.d(t,"v",(function(){return $})),r.d(t,"K",(function(){return G})),r.d(t,"f",(function(){return N})),r.d(t,"e",(function(){return A})),r.d(t,"I",(function(){return M})),r.d(t,"H",(function(){return j})),r.d(t,"O",(function(){return V})),r.d(t,"E",(function(){return P})),r.d(t,"a",(function(){return q})),r.d(t,"x",(function(){return D})),r.d(t,"p",(function(){return U})),r.d(t,"n",(function(){return B})),r.d(t,"q",(function(){return H})),r.d(t,"g",(function(){return z})),r.d(t,"D",(function(){return W})),r.d(t,"r",(function(){return X})),r.d(t,"B",(function(){return Y})),r.d(t,"z",(function(){return K})),r.d(t,"y",(function(){return J})),r.d(t,"h",(function(){return Q})),r.d(t,"k",(function(){return Z})),r.d(t,"i",(function(){return ee})),r.d(t,"j",(function(){return te})),r.d(t,"N",(function(){return re})),r.d(t,"b",(function(){return ae}));var i=r("b85c"),a=r("3835"),n=r("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"}]):(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"}]);var c=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],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:"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:"直播购物"}],v=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],g=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",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:"加油包"}],_=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],O=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"VIP课回访",label:"VIP课回访"},{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:"汇付"}],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:"高三"}],R=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],x=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],F=ie(n["musicGroupType"]),C=ie(n["classTime"]),$=ie(n["courseViewType"]),G=ie(n["payOrderType"]),N=ie(n["auditType"]),A=ie(n["auditPaymentType"]),M=ie(n["orderServerType"]),j=ie(n["orderAuditType"]),V=ie(n["rewardModeType"]),P=ie(n["musicClassType"]),q=ie(n["ProbationPeriodStatus"]),D=ie(n["downListType"]),U=ie(n["conclusion"]),B=ie(n["clientType"]),H=ie(n["couponType"]),z=ie(n["backType"]),W=ie(n["memberEnum"]),X=ie(n["coupontypeDetail"]),Y=ie(n["issue"]),K=ie(n["feedbackType"]),J=ie(n["feedbackTypeDesc"]),Q=ie(n["campState"]),Z=ie(n["catgGoupType"]),ee=ie(n["catRole"]),te=ie(n["catType"]),re=ie(n["quiteReason"]);function ie(e){var t=[];for(var r in e)t.push({label:e[r],value:r});return t}var ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],r=Object(a["a"])(t,2),n=r[0],s=r[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,r){"use strict";var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("el-dialog",{attrs:{width:"500px",title:e.title,visible:e.lookVisible,"before-close":e.onClose},on:{"update:visible":function(t){e.lookVisible=t}}},[r("el-form",{ref:"eidtPostMsg",attrs:{model:e.formes,"label-width":"120px"}},["name"==e.type?r("el-form-item",{attrs:{label:"群聊名称",rules:[{required:!0,message:"请输入群聊名称"}],prop:"name"}},[r("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?r("el-form-item",{attrs:{label:"群聊类型",rules:[{required:!0,message:"请选择群聊类型"}],prop:"groupType"}},[r("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 r("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),"memo"==e.type?r("el-form-item",{attrs:{label:"群聊备注",rules:[{required:!0,message:"请输入群聊备注"}],prop:"memo"}},[r("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(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.onClose}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitMsg}},[e._v("确 定")])],1)],1)],1)},a=[],n=(r("7f7f"),r("96cf"),r("1da1")),s=r("5530"),l=r("2fc8"),o=r("92e3"),u={name:"eidtPostMsg",data:function(){return{formes:{id:"",name:"",groupType:"",memo:""},catgGoupTypeList:o["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(s["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(n["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!r){t.next=13;break}return t.prev=1,t.next=4,Object(l["u"])(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()}}}}},c=u,d=(r("dc90"),r("2877")),h=Object(d["a"])(c,i,a,!1,null,"5c414ca4",null);t["a"]=h.exports},a723:function(e,t,r){},b3e5:function(e,t,r){},bd36:function(e,t,r){"use strict";r("ddcc")},dc90:function(e,t,r){"use strict";r("e541")},ddcc:function(e,t,r){},e4f5:function(e,t,r){"use strict";r("b3e5")},e541:function(e,t,r){},e8c8:function(e,t,r){"use strict";r("6a57")},ec1b:function(e,t,r){!function(t,r){e.exports=r()}(0,(function(){return function(e){function t(i){if(r[i])return r[i].exports;var a=r[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,i){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=2)}([function(e,t,r){var i=r(4)(r(1),r(5),null,null);e.exports=i.exports},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(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,r,i){return r*(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("."),r=t[0],i=t.length>1?this.decimal+t[1]:"",a=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;a.test(r);)r=r.replace(a,"$1"+this.separator+"$2");return this.prefix+r+i+this.suffix}},destroyed:function(){(0,i.cancelAnimationFrame)(this.rAF)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r(0),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=a.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",a.default)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=0,a="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<a.length&&(!n||!s);o++)l=a[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(),r=Math.max(0,16-(t-i)),a=window.setTimeout((function(){e(t+r)}),r);return i=t+r,a},t.cancelAnimationFrame=s=function(e){window.clearTimeout(e)})}t.requestAnimationFrame=n,t.cancelAnimationFrame=s},function(e,t){e.exports=function(e,t,r,i){var a,n=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(a=e,n=e.default);var l="function"==typeof n?n.options:n;if(t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns),r&&(l._scopeId=r),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:a,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:[]}}])}))}}]);
|