chunk-66b3863a.8919cb33.js 39 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-66b3863a"],{"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,a,l){return e/=l/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function i(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(),r=e-s,o=20,u=0;t="undefined"===typeof t?500:t;var c=function e(){u+=o;var n=Math.easeInOutQuad(u,s,r,t);i(n),u<t?l(e):a&&"function"===typeof a&&a()};c()}},"1e11":function(e,t,a){"use strict";a("fb95")},"2b4f":function(e,t,a){"use strict";a("a518")},"2fc8":function(e,t,a){"use strict";a.d(t,"i",(function(){return r})),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 f})),a.d(t,"s",(function(){return p})),a.d(t,"b",(function(){return b})),a.d(t,"u",(function(){return m})),a.d(t,"k",(function(){return v})),a.d(t,"h",(function(){return h})),a.d(t,"m",(function(){return g})),a.d(t,"p",(function(){return y})),a.d(t,"g",(function(){return O})),a.d(t,"a",(function(){return T})),a.d(t,"q",(function(){return I})),a.d(t,"r",(function(){return L})),a.d(t,"c",(function(){return E})),a.d(t,"f",(function(){return S})),a.d(t,"n",(function(){return _})),a.d(t,"o",(function(){return k}));var l=a("829b"),i=a("4328"),n=a.n(i),s="/api-web";function r(e){return Object(l["a"])({url:s+"/imSendGroupMessage/queryGroupPage",method:"POST",requestType:"form",data:e})}function o(e){return Object(l["a"])({url:s+"/imSendGroupMessage/queryGroupPage1",method:"POST",requestType:"form",data:e})}function u(e){return Object(l["a"])({url:s+"/imSendGroupMessage/send",method:"POST",data:e})}function c(e){return Object(l["a"])({url:s+"/imSendGroupMessage/queryPage",method:"POST",requestType:"form",data:e})}function d(e){return Object(l["a"])({url:s+"/imSendGroupMessage/delete",method:"POST",requestType:"form",data:e})}function f(e){return Object(l["a"])({url:s+"/imSendGroupMessage/deleteGroupList",method:"POST",requestType:"form",data:e})}function p(e){return Object(l["a"])({url:s+"/imSendGroupMessage/update",method:"POST",data:e})}function b(e){return Object(l["a"])({url:s+"/imSendGroupMessage/addGroupList",method:"POST",requestType:"form",data:e})}function m(e){return Object(l["a"])({url:s+"/imGroup/updateImGroup",method:"POST",data:e})}function v(e){return Object(l["a"])({url:s+"/imGroupMember/queryGroupMemberPage",method:"POST",params:e,data:e})}function h(e){return Object(l["a"])({url:s+"/imGroup/queryGroupDetail",method:"get",params:e,data:e})}function g(e){return Object(l["a"])({url:s+"/studentManage/queryStudentBasicInfo",method:"get",params:e,data:e})}function y(e){return Object(l["a"])({url:s+"/teacher/queryTeacherBasicInfo",method:"get",params:e,data:e})}function O(e){return Object(l["a"])({url:s+"/employee/queryEmployeeBasicInfo",method:"get",params:e,data:e})}function T(e){return Object(l["a"])({url:s+"/imGroupMember/addGroupMember",method:"post",params:e,data:n.a.stringify(e)})}function I(e){return Object(l["a"])({url:s+"/imGroup/quitGroup",method:"post",params:e,data:n.a.stringify(e)})}function L(e){return Object(l["a"])({url:s+"/imGroup/updateRoleType",method:"post",params:e,data:n.a.stringify(e)})}function E(e){return Object(l["a"])({url:s+"/imGroup/createGroup",method:"post",data:e})}function S(e){return Object(l["a"])({url:s+"/imGroup/dismissGroup",method:"post",requestType:"form",data:e})}function _(e){return Object(l["a"])({url:s+"/imSendGroupMessage/queryGroupAll",method:"POST",requestType:"form",data:e})}function k(e){return Object(l["a"])({url:s+"/imSendGroupMessage/queryGroupAll1",method:"POST",requestType:"form",data:e})}},4642:function(e,t,a){},"50cd":function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{width:"1200px",title:"查看群组",visible:e.lookVisible,"before-close":e.onClose},on:{"update:visible":function(t){e.lookVisible=t}}},[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",[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(" "),e.activeRow.sendFlag?e._e():a("div",{staticClass:"btnWrap",staticStyle:{"margin-bottom":"20px"}},[a("auth",{attrs:{auths:"imSendGroupMessage/addGroupList"}},[a("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:e.addMsg}},[e._v("\n 添加\n ")])],1),e._v(" "),a("auth",{attrs:{auths:"imSendGroupMessage/deleteGroupList"}},[a("el-button",{attrs:{type:"danger"},on:{click:e.deleteGroups}},[e._v("\n 删除\n ")])],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:"id",label:"群组"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"群组名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memberNum",label:"人数"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"id",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e.activeRow.sendFlag?e._e():a("auth",{attrs:{auths:"imSendGroupMessage/deleteGroupList"}},[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.deleteGroup(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),e._v(" "),a("addGroupmsg",{ref:"addGroupmsg",on:{clear:e.clearCom,getList:e.getList}})],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.onClose}},[e._v("确 定")])],1)])],1)},i=[],n=(a("386d"),a("c80c")),s=(a("ac6a"),a("db72")),r=(a("96cf"),a("3b8d")),o=a("2fc8"),u=a("333d"),c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[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",{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",[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:"id",label:"群组"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"群组名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"memberNum",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),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)])],1)},d=[],f={name:"eidtPostMsg",components:{pagination:u["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},type:""}},mounted:function(){},methods:{getList:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,l,i,r=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,!this.type){e.next=12;break}return e.next=4,Object(o["n"])(Object(s["a"])(Object(s["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit,imSendGroupMessageId:this.activeRow.id}));case 4: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(){r.tableList.forEach((function(e){-1!=a.indexOf(e.id)&&r.$refs.multipleSelection.toggleRowSelection(e,!0)})),r.isNewPage=!1})),e.next=20;break;case 12:return e.next=14,Object(o["i"])(Object(s["a"])(Object(s["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit,imSendGroupMessageId:this.activeRow.id}));case 14:l=e.sent,this.tableList=l.data.rows,this.rules.total=l.data.total,i=this.chioseIdList.map((function(e){return e.id})),this.isNewPage=!0,this.$nextTick((function(){r.tableList.forEach((function(e){-1!=i.indexOf(e.id)&&r.$refs.multipleSelection.toggleRowSelection(e,!0)})),r.isNewPage=!1}));case 20:e.next=25;break;case 22:e.prev=22,e.t0=e["catch"](0),console.log(e.t0);case 25:case"end":return e.stop()}}),e,this,[[0,22]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm.search="",this.clearCom(),this.search()},submit:function(){var e=Object(r["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:if(console.log("添加"),this.chioseIdList&&!(this.chioseIdList.length<=0)){e.next=4;break}return this.$message.error("请至少选择一个群组"),e.abrupt("return");case 4:return e.prev=4,t=this.chioseIdList.map((function(e){return e.id})).join(","),e.next=8,Object(o["b"])({groupIds:t,imSendGroupMessageId:this.activeRow.id});case 8:e.sent,this.$message.success("添加成功"),this.$emit("getList"),this.onClose(),e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](4),console.log(e.t0);case 17:console.log(this.chioseIdList);case 18:case"end":return e.stop()}}),e,this,[[4,14]])})));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(l){e.push(l.id),-1!=a.indexOf(l.id)&&t.$refs.multipleSelection.toggleRowSelection(l,!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())},onClose:function(){this.clearCom(),this.lookVisible=!1},openDioag:function(e,t){this.activeRow=e,this.type=t,this.lookVisible=!0,this.getList()}}},p=f,b=(a("8da2"),a("2877")),m=Object(b["a"])(p,c,d,!1,null,"4e87e2b1",null),v=m.exports,h={name:"eidtPostMsg",components:{pagination:u["a"],addGroupmsg:v},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},type:""}},mounted:function(){},methods:{getList:function(){var e=Object(r["a"])(Object(n["a"])().mark((function e(){var t,a,l,i,r=this;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.prev=0,!this.type){e.next=12;break}return e.next=4,Object(o["o"])(Object(s["a"])(Object(s["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit,imSendGroupMessageId:this.activeRow.id}));case 4: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(){r.tableList.forEach((function(e){-1!=a.indexOf(e.id)&&r.$refs.multipleSelection.toggleRowSelection(e,!0)})),r.isNewPage=!1})),e.next=20;break;case 12:return e.next=14,Object(o["j"])(Object(s["a"])(Object(s["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit,imSendGroupMessageId:this.activeRow.id}));case 14:l=e.sent,this.tableList=l.data.rows,this.rules.total=l.data.total,i=this.chioseIdList.map((function(e){return e.id})),this.isNewPage=!0,this.$nextTick((function(){r.tableList.forEach((function(e){-1!=i.indexOf(e.id)&&r.$refs.multipleSelection.toggleRowSelection(e,!0)})),r.isNewPage=!1}));case 20:e.next=25;break;case 22:e.prev=22,e.t0=e["catch"](0),console.log(e.t0);case 25:case"end":return e.stop()}}),e,this,[[0,22]])})));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()},addMsg:function(){this.$refs.addGroupmsg.openDioag(this.activeRow,this.type)},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(l){e.push(l.id),-1!=a.indexOf(l.id)&&t.$refs.multipleSelection.toggleRowSelection(l,!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())},onClose:function(){this.clearCom(),this.lookVisible=!1},openDioag:function(e,t){this.activeRow=e,this.type=t,this.lookVisible=!0,this.getList()},deleteGroup:function(e){var t=this;this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["e"])({groupIds:e.id,imSendGroupMessageId:t.activeRow.id}).then((function(e){200===e.code&&(t.$message.success("删除成功"),t.getList())}))})).catch()},deleteGroups:function(){var e=this;!this.chioseIdList||this.chioseIdList.length<=0?this.$message.error("请至少选择一个群组"):this.$confirm("确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var t=e.chioseIdList.map((function(e){return e.id})).join(",");Object(o["e"])({groupIds:t,imSendGroupMessageId:e.activeRow.id}).then((function(t){200===t.code&&(e.$message.success("删除成功"),e.getList())}))})).catch()}}},g=h,y=(a("1e11"),Object(b["a"])(g,l,i,!1,null,"9d4d263e",null));t["a"]=y.exports},"8da2":function(e,t,a){"use strict";a("e641")},"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 f})),a.d(t,"Y",(function(){return p})),a.d(t,"X",(function(){return b})),a.d(t,"d",(function(){return m})),a.d(t,"L",(function(){return v})),a.d(t,"w",(function(){return h})),a.d(t,"ab",(function(){return g})),a.d(t,"t",(function(){return y})),a.d(t,"o",(function(){return O})),a.d(t,"Z",(function(){return T})),a.d(t,"P",(function(){return I})),a.d(t,"cb",(function(){return L})),a.d(t,"db",(function(){return E})),a.d(t,"O",(function(){return S})),a.d(t,"T",(function(){return _})),a.d(t,"B",(function(){return k})),a.d(t,"l",(function(){return C})),a.d(t,"W",(function(){return w})),a.d(t,"bb",(function(){return M})),a.d(t,"I",(function(){return N})),a.d(t,"m",(function(){return R})),a.d(t,"v",(function(){return G})),a.d(t,"M",(function(){return x})),a.d(t,"f",(function(){return j})),a.d(t,"e",(function(){return P})),a.d(t,"K",(function(){return A})),a.d(t,"J",(function(){return $})),a.d(t,"S",(function(){return V})),a.d(t,"G",(function(){return D})),a.d(t,"a",(function(){return U})),a.d(t,"x",(function(){return F})),a.d(t,"p",(function(){return q})),a.d(t,"n",(function(){return H})),a.d(t,"q",(function(){return Y})),a.d(t,"g",(function(){return B})),a.d(t,"F",(function(){return z})),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 le})),a.d(t,"E",(function(){return ie})),a.d(t,"y",(function(){return ne})),a.d(t,"Q",(function(){return se})),a.d(t,"U",(function(){return re})),a.d(t,"V",(function(){return oe})),a.d(t,"b",(function(){return ce}));var l=a("2d63"),i=a("768b"),n=a("267e"),s=sessionStorage.getItem("tenantConfig");s=s?JSON.parse(s):{};var r=s.tenantId,o=null,u=null;1==r?(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}],f=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],p=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],b=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],m=[].concat(b,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),v=[{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:"直播课购买"}],h=[{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:"已结束"}],O=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],T=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],I=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],L=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],E=[{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:"易宝"}],_=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],k=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],C=[{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:"高三"}],w=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],M=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],N=ue(n["musicGroupType"]),R=ue(n["classTime"]),G=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],x=ue(n["payOrderType"]),j=ue(n["auditType"]),P=ue(n["auditPaymentType"]),A=ue(n["orderServerType"]),$=ue(n["orderAuditType"]),V=ue(n["rewardModeType"]),D=ue(n["musicClassType"]),U=ue(n["ProbationPeriodStatus"]),F=ue(n["downListType"]),q=ue(n["conclusion"]),H=ue(n["clientType"]),Y=ue(n["couponType"]),B=ue(n["backType"]),z=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"]),le=ue(n["payUserType"]),ie=ue(n["levelStatus"]),ne=ue(n["evaluateStatus"]),se=ue(n["problemType"]),re=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(i["a"])(t,2),n=a[0],s=a[1],r={};if(e&&e.length){var o,u=Object(l["a"])(e);try{for(u.s();!(o=u.n()).done;){var c=o.value;r[c[n]]=c[s]}}catch(d){u.e(d)}finally{u.f()}}return r}},a339:function(e,t,a){"use strict";var l=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)},i=[],n=(a("7f7f"),a("c80c")),s=(a("96cf"),a("3b8d")),r=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(r["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(r["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,f=(a("dc90"),a("2877")),p=Object(f["a"])(d,l,i,!1,null,"5c414ca4",null);t["a"]=p.exports},a518:function(e,t,a){},b35e:function(e,t,a){"use strict";var l=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:"groupName"}},[a("el-input",{staticClass:"w100",model:{value:e.formes.groupName,callback:function(t){e.$set(e.formes,"groupName",t)},expression:"formes.groupName"}})],1),e._v(" "),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._v(" "),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.type,callback:function(t){e.$set(e.formes,"type","string"===typeof t?t.trim():t)},expression:"formes.type"}},e._l(e.catTypeList,(function(e,t){return a("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),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)},i=[],n=(a("7f7f"),a("c80c")),s=(a("96cf"),a("3b8d")),r=a("db72"),o=a("2fc8"),u=a("92e3"),c={name:"eidtPostMsg",data:function(){return{formes:{id:"",groupName:"",groupType:"",type:""},catgGoupTypeList:u["k"],catTypeList:u["j"],lookVisible:!1,chioseIdList:null,activeRow:null,type:"",title:""}},mounted:function(){this.init()},methods:{init:function(){},openDioag:function(){this.lookVisible=!0},openResetDioag:function(e,t){this.type=t,this.title="name"==t?"修改群聊名称":"修改群聊类型",this.formes=Object(r["a"])({},e),this.lookVisible=!0},onClose:function(){this.formes={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["c"])(Object(r["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,f=(a("2b4f"),a("2877")),p=Object(f["a"])(d,l,i,!1,null,"b1634578",null);t["a"]=p.exports},c88e:function(e,t,a){"use strict";a("4642")},dc90:function(e,t,a){"use strict";a("e541")},e541:function(e,t,a){},e641:function(e,t,a){},ed08:function(e,t,a){"use strict";a.d(t,"c",(function(){return s})),a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return o}));var l=a("bd86"),i=(a("c5f6"),a("28a5"),a("a481"),a("6b54"),a("7618"),a("5a0c")),n=a.n(i);var s=function(e){var t=[];for(var a in e)if(e.hasOwnProperty(a)){var l=e[a],i=a.toLocaleUpperCase();t.push({label:l,value:"TRUE"===i||"FALSE"===i?"TRUE"===i:a})}return t},r=function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?(t={},Object(l["a"])(t,a[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(i):""),Object(l["a"])(t,a[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(i):""),t):{}},o=function(e){var t,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"YYYY-MM-DD";return e&&e.length?"YYYY-MM-DD"===s?(t={},Object(l["a"])(t,i[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(s)+" 00:00:00":""),Object(l["a"])(t,i[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(s)+" 23:59:59":""),t):(a={},Object(l["a"])(a,i[0]||"start",n()(e[0]).isValid()?n()(e[0]).format(s):""),Object(l["a"])(a,i[1]||"end",n()(e[1]).isValid()?n()(e[1]).format(s):""),a):{}}},f7cd:function(e,t,a){"use strict";var l=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:"postType"}},[a("el-radio-group",{on:{change:function(){e.formes.sendTime=""}},model:{value:e.formes.postType,callback:function(t){e.$set(e.formes,"postType",t)},expression:"formes.postType"}},[a("el-radio",{attrs:{label:"0"}},[e._v("即时发送")]),e._v(" "),a("el-radio",{attrs:{label:"1"}},[e._v("定时发送")])],1)],1),e._v(" "),"1"==e.formes.postType?a("el-form-item",{attrs:{label:"发送时间",rules:[{required:!0,message:"请选择发送时间"}],prop:"sendTime"}},[a("el-date-picker",{attrs:{type:"datetime",placeholder:"请选择发送时间",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss","picker-options":e.payDate()},model:{value:e.formes.sendTime,callback:function(t){e.$set(e.formes,"sendTime",t)},expression:"formes.sendTime"}})],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"发送内容",rules:[{required:!0,message:"请输入发送内容"}],prop:"messageContent"}},[a("el-input",{staticClass:"w100",attrs:{type:"textarea",rows:3},model:{value:e.formes.messageContent,callback:function(t){e.$set(e.formes,"messageContent",t)},expression:"formes.messageContent"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"消息类型",prop:"messageType"}},[a("el-radio-group",{on:{change:function(){e.formes.fileUrl="",e.formes.fileName="",e.formes.fileSize=0}},model:{value:e.formes.messageType,callback:function(t){e.$set(e.formes,"messageType",t)},expression:"formes.messageType"}},[a("el-radio",{attrs:{label:"IMG"}},[e._v("图片消息")]),e._v(" "),a("el-radio",{attrs:{label:"FILE"}},[e._v("文件消息")])],1)],1),e._v(" "),"IMG"===e.formes.messageType?a("el-form-item",{attrs:{label:"附件(图片)",prop:"fileUrl",rules:[{required:!0,message:"请上传图片"}]}},[a("singe-file-upload",{attrs:{tips:"仅支持上传 PNG/JPG",accept:".png, .jpg"},on:{success:e.onFileSuccess},model:{value:e.formes.fileUrl,callback:function(t){e.$set(e.formes,"fileUrl",t)},expression:"formes.fileUrl"}})],1):e._e(),e._v(" "),"FILE"===e.formes.messageType?a("el-form-item",{attrs:{label:"附件(PDF)",prop:"fileUrl",rules:[{required:!0,message:"请上传文件"}]}},[a("singe-file-upload",{attrs:{tips:"仅支持上传PDF文件",accept:".pdf"},on:{success:e.onFileSuccess},model:{value:e.formes.fileUrl,callback:function(t){e.$set(e.formes,"fileUrl",t)},expression:"formes.fileUrl"}})],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)},i=[],n=a("c80c"),s=(a("96cf"),a("3b8d")),r=a("db72"),o=a("2fc8"),u={name:"eidtPostMsg",data:function(){return{formes:{id:"",postType:"0",sendTime:"",messageContent:"",messageType:"TXT",fileName:"",fileSize:0},lookVisible:!1,chioseIdList:null,activeRow:null,type:""}},mounted:function(){this.init()},methods:{init:function(){},openDioag:function(e,t){this.chioseIdList=e,this.type=t,this.lookVisible=!0},openResetDioag:function(e,t){e.sendTime&&(e.postType="1"),this.activeRow=e,this.type=t,this.formes=Object(r["a"])({},e),this.lookVisible=!0},onClose:function(){this.formes={id:"",postType:"0",sendTime:"",messageContent:"",messageType:"",fileName:"",fileSize:0},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){var l,i,s;return Object(n["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a){t.next=28;break}if(t.prev=1,!e.activeRow||!e.activeRow.id){t.next=14;break}return l=Object(r["a"])({},e.formes),console.log(e.type,"type"),e.type&&(l.isIncludeSender=0),t.next=8,Object(o["s"])(Object(r["a"])({},l));case 8:t.sent,e.$message.success("修改成功"),e.$emit("clear"),e.onClose(),t.next=23;break;case 14:return i=e.chioseIdList.map((function(e){return e.id})).join(","),s=Object(r["a"])(Object(r["a"])({},e.formes),{},{targetIds:i}),e.type&&(s.isIncludeSender=0),t.next=19,Object(o["t"])(Object(r["a"])({},s));case 19:t.sent,e.$message.success("发送成功"),e.$emit("clear"),e.onClose();case 23:t.next=28;break;case 25:t.prev=25,t.t0=t["catch"](1),console.log(t.t0);case 28:case"end":return t.stop()}}),t,null,[[1,25]])})));return function(e){return t.apply(this,arguments)}}())},onFileSuccess:function(e){this.formes.fileName=e.fileName,this.formes.fileSize=e.fileSize},payDate:function(){return{firstDayOfWeek:1,disabledDate:function(e){return e.getTime()+864e5<(new Date).getTime()}}}}},c=u,d=(a("c88e"),a("2877")),f=Object(d["a"])(c,l,i,!1,null,"ed461adc",null);t["a"]=f.exports},fb95:function(e,t,a){}}]);