1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0f2b4d83","chunk-16caefa0","chunk-3c74d407","chunk-08a3598d","chunk-7e092b22","chunk-08dff963"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,n,a){return t/=a/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,n){var i=o(),u=t-i,s=20,c=0;e="undefined"===typeof e?500:e;var l=function t(){c+=s;var o=Math.easeInOutQuad(c,i,u,e);r(o),c<e?a(t):n&&"function"===typeof n&&n()};l()}},"0d9e":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("el-row",{staticClass:"music-title"},[n("el-col",{attrs:{span:6}},[t._v("\n 一级分类 \n "),n("el-popover",{attrs:{placement:"right",width:"300",trigger:"click"}},[n("el-input",{staticStyle:{width:"73%"},attrs:{size:"medium",autocomplete:"off"},model:{value:t.oneTypeName,callback:function(e){t.oneTypeName=e},expression:"oneTypeName"}}),t._v(" "),n("el-button",{staticStyle:{margin:"0"},attrs:{type:"primary",size:"medium"},on:{click:t.onAddMusic}},[t._v("提交")]),t._v(" "),n("el-button",{attrs:{slot:"reference",type:"primary",size:"mini",round:"",icon:"el-icon-plus"},slot:"reference"},[t._v("添加")])],1)],1),t._v(" "),n("el-col",{attrs:{span:18}},[t._v("\n 二级分类\n ")])],1),t._v(" "),t._l(t.subjectList,(function(e,a){return n("el-row",{key:e.id},[n("el-col",{attrs:{span:6}},[n("el-button",{attrs:{icon:"el-icon-delete",circle:""},on:{click:function(n){return t.subjectDelete(e)}}}),t._v(" "),n("span",{staticClass:"one_name"},[t._v(t._s(e.name))])],1),t._v(" "),n("el-col",{staticClass:"tow_col",attrs:{span:18}},[t._l(e.subjects,(function(e){return n("el-tag",{key:e.id,attrs:{type:"info",effect:"dark",closable:"","disable-transitions":!1},on:{close:function(n){return t.subjectDelete(e)}}},[t._v(" "+t._s(e.name))])})),t._v(" "),n("span",{staticStyle:{display:"inline-block"}},[e.inputStatus?n("el-input",{key:"tag",ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small"},model:{value:t.inputValue[a],callback:function(e){t.$set(t.inputValue,a,e)},expression:"inputValue[index]"}}):n("el-button",{key:"tag",attrs:{type:"primary",size:"mini",round:"",icon:"el-icon-plus"},on:{click:function(t){e.inputStatus=!0}}},[t._v("添加")]),t._v(" "),e.inputStatus?n("el-button",{attrs:{type:"info",size:"mini",round:"",icon:"el-icon-check"},on:{click:function(n){return t.onSave(e,a)}}},[t._v("保存")]):t._e()],1)],2)],1)}))],2)])},r=[],o=(n("ac6a"),n("333d")),i=n("4360"),u=n("d349"),s={components:{pagination:o["a"]},name:"musicalManager",data:function(){return{organId:i["a"].getters.organ,oneTypeName:null,subjectList:[],inputValue:[]}},mounted:function(){this.getList()},methods:{onAddMusic:function(){var t=this;this.oneTypeName&&Object(u["n"])({parentSubjectId:0,name:this.oneTypeName}).then((function(e){t.messageTips("添加",e)}))},onSave:function(t,e){var n=this;this.inputValue[e]&&Object(u["n"])({parentSubjectId:t.id,name:this.inputValue[e]}).then((function(t){n.messageTips("添加",t)}))},subjectDelete:function(t){var e=this;Object(u["n"])({delFlag:"YES",id:t.id}).then((function(t){e.messageTips("删除",t)}))},messageTips:function(t,e){200==e.code?(this.$message({message:t+"成功",type:"success"}),this.getList()):this.$message.error(e.msg)},getList:function(){var t=this;Object(u["m"])({delFlag:0,rows:9999}).then((function(e){var n=e.data;if(200==e.code){var a=[];n.rows.forEach((function(t){t.inputStatus=!1,a.push(t)})),t.subjectList=a}}))}}},c=s,l=(n("be49"),n("2877")),p=Object(l["a"])(c,a,r,!1,null,"77a4c6ea",null);e["default"]=p.exports},1127:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("h2",[t._v("\n 全局配置\n ")]),t._v(" "),n("div",{staticClass:"m-core"},[n("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeIndex,callback:function(e){t.activeIndex=e},expression:"activeIndex"}},[n("el-tab-pane",{attrs:{label:"参数设置",name:"0"}},[t.activeStatus[0]?n("overallManager"):t._e()],1),t._v(" "),n("el-tab-pane",{attrs:{label:"声部设置",name:"1"}},[t.activeStatus[1]?n("musicalManager"):t._e()],1),t._v(" "),n("el-tab-pane",{attrs:{label:"建团收费类型",name:"2"}},[t.activeStatus[2]?n("typesManager"):t._e()],1),t._v(" "),n("el-tab-pane",{attrs:{label:"VIP课程参数设置",name:"3"}},[t.activeStatus[3]?n("vipParameterManager"):t._e()],1),t._v(" "),n("el-tab-pane",{attrs:{label:"作业模板管理",name:"4"}},[t.activeStatus[4]?n("jobTemplateSetting"):t._e()],1),t._v(" "),n("el-tab-pane",{attrs:{label:"热词标签管理",name:"5"}},[t.activeStatus[5]?n("errorManager"):t._e()],1)],1)],1)])},r=[],o=(n("7f7f"),n("48d0")),i=n("0d9e"),u=n("f946"),s=n("2af9"),c=n("135b"),l=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("div",{staticClass:"newBand",on:{click:function(e){return t.openTypes("create")}}},[t._v("添加")]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"id",label:"编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"name",label:"热词标签"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.openTypes("update",e.row)}}},[t._v("修改")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onTypesDel(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)]),t._v(" "),n("el-dialog",{attrs:{title:t.formTitle[t.formActionTitle],visible:t.typeStatus,width:"500px"},on:{"update:visible":function(e){t.typeStatus=e},close:function(e){return t.onFormClose("ruleForm")}}},[n("el-form",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules}},[n("el-form-item",{attrs:{label:"热词内容",prop:"name","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.typeStatus=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onTypesSubmit("ruleForm")}}},[t._v("确 定")])],1)],1)],1)},p=[],f=n("333d"),d=n("4360"),m=n("99b4"),g={components:{pagination:f["a"]},name:"errormanager",data:function(){return{tableList:[],subjectList:[],formActionTitle:"create",formTitle:{create:"添加热词标签",update:"修改热词标签"},typeStatus:!1,formLabelWidth:"120px",form:{name:null,organId:d["a"].getters.organ},rules:{name:[{required:!0,message:"请输入热词标签",trigger:"blur"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList()},methods:{onTypesSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;"create"==e.formActionTitle?(e.form.id&&delete e.form.id,Object(m["n"])(e.form).then((function(t){e.messageTips("添加",t)}))):"update"==e.formActionTitle&&Object(m["p"])(e.form).then((function(t){e.messageTips("修改",t)}))}))},onTypesDel:function(t){var e=this;Object(m["o"])(t.id).then((function(t){e.messageTips("删除",t)}))},messageTips:function(t,e){200==e.code?(this.$message({message:t+"成功",type:"success"}),this.typeStatus=!1,this.getList()):this.$message.error(e.msg)},getList:function(){var t=this;Object(m["m"])({rows:this.pageInfo.limit,page:this.pageInfo.page}).then((function(e){var n=e.data;200==e.code&&(t.tableList=n.rows,t.pageInfo.total=n.total)}))},openTypes:function(t,e){this.typeStatus=!0,this.formActionTitle=t,"update"==t&&(console.log(name),this.form={id:e.id,name:e.name,organId:d["a"].getters.organ})},onFormClose:function(t){this.form={name:null,subjectIds:[],organId:d["a"].getters.organ},this.$refs[t].resetFields()}}},b=g,v=(n("f4e8"),n("2877")),h=Object(v["a"])(b,l,p,!1,null,"6e248fac",null),y=h.exports,_={components:{overallManager:o["default"],musicalManager:i["default"],typesManager:u["default"],vipParameterManager:s["default"],jobTemplateSetting:c["default"],errorManager:y},name:"globalConfig",data:function(){return{activeIndex:"0",activeStatus:[!0,!1,!1,!1,!1,!1,!1]}},methods:{handleClick:function(t){this.activeIndex=t.name,this.activeStatus=[!1,!1,!1,!1,!1,!1,!1],this.activeStatus[t.name]=!0}}},j=_,S=(n("a648"),Object(v["a"])(j,a,r,!1,null,"778f127d",null));e["default"]=S.exports},"11e9":function(t,e,n){var a=n("52a7"),r=n("4630"),o=n("6821"),i=n("6a99"),u=n("69a8"),s=n("c69a"),c=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?c:function(t,e){if(t=o(t),e=i(e,!0),s)try{return c(t,e)}catch(n){}if(u(t,e))return r(!a.f.call(t,e),t[e])}},"135b":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("div",{staticClass:"newBand",on:{click:function(e){return t.openJob("create")}}},[t._v("添加")]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"name",label:"作业模板名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"classGroupTypeName",label:"对应课程类型"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"声部"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.subjectName?e.row.subjectName:"无")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"content",label:"模板内容"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.openJob("update",e.row)}}},[t._v("修改")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onJobDel(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1),t._v(" "),n("el-dialog",{attrs:{title:t.formTitle[t.formActionTitle],visible:t.jobStatus,width:"500px"},on:{"update:visible":function(e){t.jobStatus=e},close:function(e){return t.onFormClose("ruleForm")}}},[n("el-form",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules}},[n("el-form-item",{attrs:{label:"作业模板名称",prop:"name","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"对应课程类型",prop:"classGroupType","label-width":t.formLabelWidth}},[n("el-radio-group",{attrs:{disabled:"update"==t.formActionTitle},model:{value:t.form.classGroupType,callback:function(e){t.$set(t.form,"classGroupType",e)},expression:"form.classGroupType"}},[n("el-radio",{attrs:{label:"NORMAL"}},[t._v("单技课")]),t._v(" "),n("el-radio",{attrs:{label:"MIX"}},[t._v("合奏课")])],1)],1),t._v(" "),"MIX"!=t.form.classGroupType?n("el-form-item",{attrs:{label:"声部选择",prop:"subjectId","label-width":t.formLabelWidth}},[n("el-select",{model:{value:t.form.subjectId,callback:function(e){t.$set(t.form,"subjectId",e)},expression:"form.subjectId"}},t._l(t.subjectList,(function(e){return n("el-option-group",{key:e.label,attrs:{label:e.label}},t._l(e.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)})),1)],1):t._e(),t._v(" "),n("el-form-item",{attrs:{label:"作业内容",prop:"content","label-width":t.formLabelWidth}},[n("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.jobStatus=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onJobSubmit("ruleForm")}}},[t._v("确 定")])],1)],1)],1)])},r=[],o=(n("ac6a"),n("7f7f"),n("333d")),i=n("4360"),u=n("d349"),s={components:{pagination:o["a"]},name:"adminManager",data:function(){return{tableList:[],subjectList:[],formActionTitle:"create",formTitle:{create:"添加作业模板",update:"修改作业模板"},jobStatus:!1,formLabelWidth:"120px",form:{name:null,classGroupType:null,subjectId:null,content:null,organId:i["a"].getters.organ},rules:{name:[{required:!0,message:"请输入作业模板名称",trigger:"blur"}],classGroupType:[{required:!0,message:"请选择对应课程类型",trigger:"change"}],subjectId:[{required:!0,message:"请选择声部",trigger:"change"}],content:[{required:!0,message:"请输入作业内容",trigger:"blur"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},organId:i["a"].getters.organ}},mounted:function(){this.getList(),this.getSubjectTree()},methods:{onJobSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;"create"==e.formActionTitle?(e.form.id&&delete e.form.id,Object(u["j"])(e.form).then((function(t){e.messageTips("添加",t)}))):"update"==e.formActionTitle&&("MIX"==e.form.classGroupType&&(e.form.subjectId=""),Object(u["l"])(e.form).then((function(t){e.messageTips("修改",t)})))}))},openJob:function(t,e){this.jobStatus=!0,this.formActionTitle=t,"update"==t&&(this.form={id:e.id,name:e.name,classGroupType:e.classGroupType,subjectId:e.subjectId,content:e.content,organId:i["a"].getters.organ})},onJobDel:function(t){var e=this;Object(u["k"])(t.id).then((function(t){e.messageTips("删除",t)}))},messageTips:function(t,e){200==e.code?(this.$message({message:t+"成功",type:"success"}),this.jobStatus=!1,this.getList()):this.$message.error(e.msg)},getList:function(){var t=this;Object(u["h"])({delFlag:0,organId:this.organId,rows:this.pageInfo.limit,page:this.pageInfo.page}).then((function(e){200==e.code&&e.data&&(t.tableList=e.data.rows,t.pageInfo.total=e.data.total)}))},onFormClose:function(t){this.form={name:null,classGroupType:null,subjectId:null,content:null,organId:i["a"].getters.organ},this.$refs[t].resetFields()},getSubjectTree:function(){var t=this;Object(u["m"])({delFlag:0,rows:9999}).then((function(e){var n=e.data;if(200==e.code){var a=[];n.rows.forEach((function(t,e){var n=[];t.subjects.forEach((function(t){n.push({value:t.id,label:t.name})})),a[e]={label:t.name,options:n}})),t.subjectList=a}}))}}},c=s,l=(n("8b26"),n("2877")),p=Object(l["a"])(c,a,r,!1,null,"588b76b1",null);e["default"]=p.exports},"2af9":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("div",{staticClass:"listWrap"},[n("div",{staticClass:"left"},[n("div",{staticClass:"newBand",on:{click:t.addGroupCategory}},[t._v("新建")]),t._v(" "),n("el-table",{attrs:{data:t.leftList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{label:"课程形式",prop:"name",width:"180"}}),t._v(" "),n("el-table-column",{attrs:{label:"班级人数",prop:"studentNum",width:"180"}}),t._v(" "),n("el-table-column",{attrs:{label:"课程课时",prop:"singleClassMinutes",width:"180"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.resetGroupCategory(e.row)}}},[t._v("修改")]),t._v(" "),n("el-popover",{ref:e.row.id,attrs:{placement:"top",width:"160"}},[n("p",[t._v("您确定删除该课程形态吗?")]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e._self.$refs[e.row.id].doClose()}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(n){return t.removeGroupCategory(e)}}},[t._v("确定")])],1),t._v(" "),n("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("删除")])],1)],1)]}}])})],1)],1),t._v(" "),n("div",{staticClass:"right"},[n("div",{staticClass:"newBand",on:{click:t.addVipTimer}},[t._v("新建")]),t._v(" "),n("el-table",{attrs:{data:t.rightList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{label:"达到课时总数/次",prop:"maxClassTimes",width:"180"}}),t._v(" "),n("el-table-column",{attrs:{label:"可排课时间段",prop:"month",width:"180"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.resetTimerList(e.row)}}},[t._v("修改")]),t._v(" "),n("el-popover",{ref:e.row.id,attrs:{placement:"top",width:"160"}},[n("p",[t._v("您确定删除该周期循环吗?")]),t._v(" "),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(t){e._self.$refs[e.row.id].doClose()}}},[t._v("取消")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(n){return t.removeDefaultClassesCycle(e)}}},[t._v("确定")])],1),t._v(" "),n("el-button",{attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("删除")])],1)],1)]}}])})],1)],1)])]),t._v(" "),n("el-dialog",{attrs:{title:"vip课程形式",width:"500px",visible:t.vipStatus},on:{"update:visible":function(e){t.vipStatus=e}}},[n("el-form",{ref:"vipStatus",attrs:{model:t.vipStatusFrom}},[n("el-form-item",{attrs:{label:"课程形式",prop:"name","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.vipStatusFrom.name,callback:function(e){t.$set(t.vipStatusFrom,"name",e)},expression:"vipStatusFrom.name"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"班级人数",prop:"num","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.vipStatusFrom.num,callback:function(e){t.$set(t.vipStatusFrom,"num",e)},expression:"vipStatusFrom.num"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"课程课时",prop:"timer","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.vipStatusFrom.timer,callback:function(e){t.$set(t.vipStatusFrom,"timer",e)},expression:"vipStatusFrom.timer"}})],1)],1),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.closeVipStatus}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.addVipStatus}},[t._v("确 定")])],1)],1),t._v(" "),n("el-dialog",{attrs:{title:"vip时间段",width:"500px",visible:t.timerStatus},on:{"update:visible":function(e){t.timerStatus=e}}},[n("el-form",{ref:"timerStatus",attrs:{model:t.vipTimerFrom}},[n("el-form-item",{attrs:{label:"达到课时总数/次",prop:"count","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.vipTimerFrom.count,callback:function(e){t.$set(t.vipTimerFrom,"count",e)},expression:"vipTimerFrom.count"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"可排课时间段/月",prop:"timer","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.vipTimerFrom.timer,callback:function(e){t.$set(t.vipTimerFrom,"timer",e)},expression:"vipTimerFrom.timer"}})],1)],1),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.timerStatus=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.addTimerStatus}},[t._v("确 定")])],1)],1)],1)},r=[],o=(n("7f7f"),n("7e78")),i={data:function(){return{leftList:[],rightList:[],vipStatus:!1,formLabelWidth:"120px",vipStatusFrom:{name:"",num:"",timer:"",isAdd:!0,id:""},statusRemovevisible:!1,timerStatus:!1,vipTimerFrom:{count:"",timer:"",isAdd:!0,id:""}}},mounted:function(){this.getVipGroupCategoryList(),this.getDefaultClassesCycle()},methods:{getVipGroupCategoryList:function(){var t=this;Object(o["y"])().then((function(e){200==e.code&&(t.leftList=e.data)}))},getDefaultClassesCycle:function(){var t=this;Object(o["i"])().then((function(e){t.rightList=e.data}))},addGroupCategory:function(){this.vipStatus=!0,this.vipStatusFrom.isAdd=!0,this.vipStatusFrom.id=""},closeVipStatus:function(){this.vipStatus=!1},addVipStatus:function(){var t=this;this.vipStatusFrom.isAdd?Object(o["c"])({name:this.vipStatusFrom.name,singleClassMinutes:this.vipStatusFrom.timer,studentNum:this.vipStatusFrom.num}).then((function(e){200==e.code&&(t.getVipGroupCategoryList(),t.vipStatus=!1)})):Object(o["v"])({name:this.vipStatusFrom.name,singleClassMinutes:this.vipStatusFrom.timer,studentNum:this.vipStatusFrom.num,id:this.vipStatusFrom.id}).then((function(e){t.getVipGroupCategoryList(),t.vipStatus=!1}))},resetGroupCategory:function(t){console.log(t),this.vipStatus=!0,this.vipStatusFrom.name=t.name,this.vipStatusFrom.timer=t.singleClassMinutes,this.vipStatusFrom.num=t.studentNum,this.vipStatusFrom.id=t.id,this.vipStatusFrom.isAdd=!1},removeGroupCategory:function(t){var e=this;Object(o["r"])({id:t.row.id}).then((function(t){200==t.code&&e.getVipGroupCategoryList()}))},addVipTimer:function(){this.timerStatus=!0,this.vipTimerFrom.isAdd=!0,this.vipTimerFrom.id=""},addTimerStatus:function(){var t=this;this.vipTimerFrom.isAdd?Object(o["a"])({organId:this.$store.getters.organ,maxClassTimes:this.vipTimerFrom.count,month:this.vipTimerFrom.timer}).then((function(e){200==e.code&&(t.getDefaultClassesCycle(),t.timerStatus=!1)})):Object(o["s"])({maxClassTimes:this.vipTimerFrom.count,month:this.vipTimerFrom.timer,id:this.vipTimerFrom.id}).then((function(e){t.getDefaultClassesCycle(),t.timerStatus=!1}))},resetTimerList:function(t){this.timerStatus=!0,this.vipTimerFrom.count=t.maxClassTimes,this.vipTimerFrom.timer=t.month,this.vipTimerFrom.id=t.id,this.vipTimerFrom.isAdd=!1},removeDefaultClassesCycle:function(t){var e=this;Object(o["p"])({id:t.row.id}).then((function(n){200==n.code&&(t._self.$refs[t.$index].doClose(),e.getDefaultClassesCycle())}))}},watch:{vipStatus:function(t){t||this.$refs["vipStatus"].resetFields()},timerStatus:function(t){t||this.$refs["timerStatus"].resetFields()}}},u=i,s=(n("30fd"),n("2877")),c=Object(s["a"])(u,a,r,!1,null,"28deca8c",null);e["default"]=c.exports},"2cad":function(t,e,n){},"30fd":function(t,e,n){"use strict";var a=n("462e"),r=n.n(a);r.a},"333d":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},r=[],o=(n("c5f6"),n("09f4")),i={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(o["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(o["a"])(0,800)}}},u=i,s=(n("c0b9"),n("2877")),c=Object(s["a"])(u,a,r,!1,null,"31cb099a",null);e["a"]=c.exports},"3f765":function(t,e,n){},"462e":function(t,e,n){},"48d0":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("el-row",t._l(t.configList,(function(e,a){return n("el-col",{key:e.id,attrs:{span:12}},[t._v("\n "+t._s(e.description[0])+"\n "),n("el-input",{attrs:{type:"number"},model:{value:t.input[a],callback:function(e){t.$set(t.input,a,e)},expression:"input[index]"}},["default_password"!==e.paramName?n("template",{slot:"append"},[t._v(t._s(e.description[1]))]):t._e()],2),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(n){return t.onSave(e,a)}}},[t._v("保存")])],1)})),1)],1)])},r=[],o=(n("28a5"),n("ac6a"),n("333d")),i=n("4360"),u=n("a6e9"),s={components:{pagination:o["a"]},name:"musicalManager",data:function(){return{organId:i["a"].getters.organ,configList:[],input:[]}},mounted:function(){this.__init()},methods:{__init:function(){var t=this;Object(u["a"])({group:"default"}).then((function(e){200==e.code&&e.data.length>0&&e.data.forEach((function(e,n){t.input[n]=e.paranValue,t.configList.push({id:e.id,paramName:e.paramName,paranValue:e.paranValue,description:e.description.split("{}")})}))}))},onSave:function(t,e){var n=this,a={id:t.id,paranValue:this.input[e],paramName:t.paramName,description:t.description.join("{}")};Object(u["b"])(a).then((function(t){200==t.code&&n.$message({message:"修改成功",type:"success"})}))}}},c=s,l=(n("5e43"),n("2877")),p=Object(l["a"])(c,a,r,!1,null,"3e894e35",null);e["default"]=p.exports},5061:function(t,e,n){},"51c6":function(t,e,n){"use strict";var a=n("f7b0"),r=n.n(a);r.a},"5dbc":function(t,e,n){var a=n("d3f4"),r=n("8b97").set;t.exports=function(t,e,n){var o,i=e.constructor;return i!==n&&"function"==typeof i&&(o=i.prototype)!==n.prototype&&a(o)&&r&&r(t,o),t}},"5e43":function(t,e,n){"use strict";var a=n("5061"),r=n.n(a);r.a},"7e78":function(t,e,n){"use strict";n.d(e,"y",(function(){return u})),n.d(e,"i",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"v",(function(){return l})),n.d(e,"r",(function(){return p})),n.d(e,"a",(function(){return f})),n.d(e,"s",(function(){return d})),n.d(e,"p",(function(){return m})),n.d(e,"f",(function(){return g})),n.d(e,"w",(function(){return b})),n.d(e,"x",(function(){return v})),n.d(e,"b",(function(){return h})),n.d(e,"t",(function(){return y})),n.d(e,"q",(function(){return _})),n.d(e,"n",(function(){return j})),n.d(e,"l",(function(){return S})),n.d(e,"g",(function(){return T})),n.d(e,"o",(function(){return O})),n.d(e,"h",(function(){return C})),n.d(e,"m",(function(){return w})),n.d(e,"j",(function(){return I})),n.d(e,"u",(function(){return k})),n.d(e,"k",(function(){return F})),n.d(e,"e",(function(){return L})),n.d(e,"d",(function(){return x}));var a=n("b775"),r=n("4328"),o=n.n(r),i="/api-web";function u(t){return Object(a["a"])({url:i+"/vipGroupCategory/queryAll",method:"get",params:t})}function s(t){return Object(a["a"])({url:i+"/vipGroupDefaultClassesCycle/queryAll",method:"get",params:t})}function c(t){return Object(a["a"])({url:i+"/vipGroupCategory/add",method:"post",data:o.a.stringify(t)})}function l(t){return Object(a["a"])({url:i+"/vipGroupCategory/update",method:"post",data:o.a.stringify(t)})}function p(t){return Object(a["a"])({url:i+"/vipGroupCategory/delete",method:"post",data:o.a.stringify(t)})}function f(t){return Object(a["a"])({url:i+"/vipGroupDefaultClassesCycle/add",method:"post",data:o.a.stringify(t)})}function d(t){return Object(a["a"])({url:i+"/vipGroupDefaultClassesCycle/update",method:"post",data:o.a.stringify(t)})}function m(t){return Object(a["a"])({url:i+"/vipGroupDefaultClassesCycle/delete",method:"post",data:o.a.stringify(t)})}function g(t){return Object(a["a"])({url:i+"/vipGroupDefaultClassesUnitPrice/add",method:"post",data:o.a.stringify(t)})}function b(t){return Object(a["a"])({url:i+"/vipGroupActivity/queryPage",method:"get",params:t})}function v(t){return Object(a["a"])({url:i+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})}function h(t){return Object(a["a"])({url:i+"/vipGroupActivity/addVipGroupActivity",method:"POST",data:t})}function y(t){return Object(a["a"])({url:i+"/vipGroupActivity/update",method:"POST",data:t})}function _(t){return Object(a["a"])({url:i+"/vipGroupActivity/delete",method:"POST",data:o.a.stringify(t)})}function j(t){return Object(a["a"])({url:i+"/vipGroupManage/queryAll",method:"GET",params:t})}function S(t){return Object(a["a"])({url:i+"/vipGroupManage/getVipGroupDetail",method:"GET",params:t})}function T(t){return Object(a["a"])({url:i+"/vipGroupManage/findVipGroupStudents",method:"GET",params:t})}function O(t){return Object(a["a"])({url:i+"/vipGroupManage/applyRefundForStudent",method:"POST",data:o.a.stringify(t)})}function C(t){return Object(a["a"])({url:i+"/vipGroupManage/findVipGroupTeachingRecord",method:"get",params:t})}function w(t){return Object(a["a"])({url:i+"/vipGroupManage/findVipGroupSalarys",method:"get",params:t})}function I(t){return Object(a["a"])({url:i+"/vipGroupManage/findVipGroupAttendanceStudents",method:"get",params:t})}function k(t){return Object(a["a"])({url:i+"/vipGroupManage/classStartDateAdjust",method:"POST",params:t})}function F(t){return Object(a["a"])({url:i+"/vipGroupManage/getVipGroupCostCount",method:"POST",params:t})}function L(t){return Object(a["a"])({url:i+"/vipGroupManage/vipGroupApply",method:"POST",data:t})}function x(t){return Object(a["a"])({url:i+"/vipGroupManage/stopVipGroup",method:"POST",data:o.a.stringify(t)})}},"88e7":function(t,e,n){},"8b26":function(t,e,n){"use strict";var a=n("88e7"),r=n.n(a);r.a},"8b97":function(t,e,n){var a=n("d3f4"),r=n("cb7c"),o=function(t,e){if(r(t),!a(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,a){try{a=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),a(t,[]),e=!(t instanceof Array)}catch(r){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:a(t,n),t}}({},!1):void 0),check:o}},9093:function(t,e,n){var a=n("ce10"),r=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return a(t,r)}},"99b4":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return c})),n.d(e,"s",(function(){return l})),n.d(e,"q",(function(){return p})),n.d(e,"x",(function(){return f})),n.d(e,"w",(function(){return d})),n.d(e,"y",(function(){return m})),n.d(e,"r",(function(){return g})),n.d(e,"h",(function(){return b})),n.d(e,"j",(function(){return v})),n.d(e,"l",(function(){return h})),n.d(e,"i",(function(){return y})),n.d(e,"u",(function(){return _})),n.d(e,"k",(function(){return j})),n.d(e,"v",(function(){return S})),n.d(e,"t",(function(){return T})),n.d(e,"d",(function(){return O})),n.d(e,"f",(function(){return C})),n.d(e,"e",(function(){return w})),n.d(e,"g",(function(){return I})),n.d(e,"m",(function(){return k})),n.d(e,"n",(function(){return F})),n.d(e,"p",(function(){return L})),n.d(e,"o",(function(){return x}));var a=n("b775"),r=n("4328"),o=n.n(r),i="/api-web";function u(t){return Object(a["a"])({url:i+"/cooperationOrgan/add",method:"post",data:o.a.stringify(t)})}function s(t){return Object(a["a"])({url:i+"/cooperationOrgan/update",method:"put",data:o.a.stringify(t)})}function c(t){return Object(a["a"])({url:i+"/cooperationOrgan/del/".concat(t),method:"post"})}function l(t){return Object(a["a"])({url:i+"/cooperationOrgan/queryPage",method:"get",params:t})}function p(t){return Object(a["a"])({url:i+"/cooperationOrgan/queryByOrganId",method:"get",params:t})}function f(t){return Object(a["a"])({url:i+"/school/queryPage",method:"get",params:t})}function d(t){return Object(a["a"])({url:i+"/school/add",method:"post",data:o.a.stringify(t)})}function m(t){return Object(a["a"])({url:i+"/school/update",method:"post",data:o.a.stringify(t)})}function g(t){return Object(a["a"])({url:i+"/employee/queryEmployByOrganId",method:"get",params:t})}function b(t){return Object(a["a"])({url:i+"/employee/add",method:"post",data:t})}function v(t){return Object(a["a"])({url:i+"/employee/update",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function y(t){return Object(a["a"])({url:i+"/employee/employeeOperate",method:"post",data:o.a.stringify(t)})}function _(t){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function j(t){return Object(a["a"])({url:"/api-auth/role/".concat(t.id),method:"get"})}function S(t){return Object(a["a"])({url:"/api-auth/role/update",method:"post",data:t})}function T(t){return Object(a["a"])({url:"/api-auth/role/add",method:"post",data:t})}function O(t){return Object(a["a"])({url:i+"/courseScheduleRewards/queryPage",method:"get",params:t})}function C(t){return Object(a["a"])({url:i+"/courseScheduleRewards/query",method:"get",params:t})}function w(t){return Object(a["a"])({url:i+"/courseScheduleRewards/add",method:"post",data:o.a.stringify(t)})}function I(t){return Object(a["a"])({url:i+"/courseScheduleRewards/update",method:"post",data:o.a.stringify(t)})}function k(t){return Object(a["a"])({url:i+"/hotWordLabelManage/queryPage",method:"get",params:t})}function F(t){return Object(a["a"])({url:i+"/hotWordLabelManage/add",method:"post",data:o.a.stringify(t)})}function L(t){return Object(a["a"])({url:i+"/hotWordLabelManage/update",method:"post",data:o.a.stringify(t)})}function x(t){return Object(a["a"])({url:i+"/hotWordLabelManage/del/".concat(t),method:"post"})}},"9f38":function(t,e,n){},a648:function(t,e,n){"use strict";var a=n("9f38"),r=n.n(a);r.a},a6e9:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s}));var a=n("b775"),r=n("4328"),o=n.n(r),i="/api-web";function u(t){return Object(a["a"])({url:i+"/sysConfig/list",method:"get",params:t})}function s(t){return Object(a["a"])({url:i+"/sysConfig/update",method:"post",data:o.a.stringify(t)})}},aa77:function(t,e,n){var a=n("5ca1"),r=n("be13"),o=n("79e5"),i=n("fdef"),u="["+i+"]",s="
",c=RegExp("^"+u+u+"*"),l=RegExp(u+u+"*$"),p=function(t,e,n){var r={},u=o((function(){return!!i[t]()||s[t]()!=s})),c=r[t]=u?e(f):i[t];n&&(r[n]=c),a(a.P+a.F*u,"String",r)},f=p.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};t.exports=p},be49:function(t,e,n){"use strict";var a=n("3f765"),r=n.n(a);r.a},c0b9:function(t,e,n){"use strict";var a=n("de4e"),r=n.n(a);r.a},c5f6:function(t,e,n){"use strict";var a=n("7726"),r=n("69a8"),o=n("2d95"),i=n("5dbc"),u=n("6a99"),s=n("79e5"),c=n("9093").f,l=n("11e9").f,p=n("86cc").f,f=n("aa77").trim,d="Number",m=a[d],g=m,b=m.prototype,v=o(n("2aeb")(b))==d,h="trim"in String.prototype,y=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){e=h?e.trim():f(e,3);var n,a,r,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:a=2,r=49;break;case 79:case 111:a=8,r=55;break;default:return+e}for(var i,s=e.slice(2),c=0,l=s.length;c<l;c++)if(i=s.charCodeAt(c),i<48||i>r)return NaN;return parseInt(s,a)}}return+e};if(!m(" 0o1")||!m("0b1")||m("+0x1")){m=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof m&&(v?s((function(){b.valueOf.call(n)})):o(n)!=d)?i(new g(y(e)),n,m):y(e)};for(var _,j=n("9e1e")?c(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;j.length>S;S++)r(g,_=j[S])&&!r(m,_)&&p(m,_,l(g,_));m.prototype=b,b.constructor=m,n("2aba")(a,d,m)}},d349:function(t,e,n){"use strict";n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"i",(function(){return p})),n.d(e,"m",(function(){return f})),n.d(e,"n",(function(){return d})),n.d(e,"f",(function(){return m})),n.d(e,"g",(function(){return g})),n.d(e,"e",(function(){return b})),n.d(e,"h",(function(){return v})),n.d(e,"l",(function(){return h})),n.d(e,"j",(function(){return y})),n.d(e,"k",(function(){return _}));var a=n("b775"),r=n("4328"),o=n.n(r),i="/api-web";function u(t){return Object(a["a"])({url:i+"/organization/queryPage",method:"get",params:t})}function s(t){return Object(a["a"])({url:i+"/organization/add",method:"post",data:o.a.stringify(t)})}function c(t){return Object(a["a"])({url:i+"/organization/update",method:"post",data:o.a.stringify(t)})}function l(t){return Object(a["a"])({url:i+"/area/queryChild",method:"get",params:t})}function p(t){return Object(a["a"])({url:i+"/area/getParentArea/".concat(t.id),method:"get"})}function f(t){return Object(a["a"])({url:i+"/subject/queryPageTree",method:"get",params:t})}function d(t){return Object(a["a"])({url:i+"/subject/upset",method:"post",data:t})}function m(t){return Object(a["a"])({url:i+"/chargeType/queryPage",method:"get",params:t})}function g(t){return Object(a["a"])({url:i+"/chargeType/upSet",method:"post",data:t})}function b(t){return Object(a["a"])({url:i+"/chargeType/del/".concat(t),method:"post"})}function v(t){return Object(a["a"])({url:i+"/courseHomeworkTemplate/queryPage",method:"post",data:t})}function h(t){return Object(a["a"])({url:i+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(t)})}function y(t){return Object(a["a"])({url:i+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(t)})}function _(t){return Object(a["a"])({url:i+"/courseHomeworkTemplate/del/".concat(t),method:"post"})}},de4e:function(t,e,n){},f4e8:function(t,e,n){"use strict";var a=n("2cad"),r=n.n(a);r.a},f7b0:function(t,e,n){},f946:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("div",{staticClass:"newBand",on:{click:function(e){return t.openTypes("create")}}},[t._v("添加")]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"name",label:"收费类型"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"声部组合"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("joinArray")(e.row.subjectName,","))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.openTypes("update",e.row)}}},[t._v("修改")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onTypesDel(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)]),t._v(" "),n("el-dialog",{attrs:{title:t.formTitle[t.formActionTitle],visible:t.typeStatus,width:"500px"},on:{"update:visible":function(e){t.typeStatus=e},close:function(e){return t.onFormClose("ruleForm")}}},[n("el-form",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules}},[n("el-form-item",{attrs:{label:"收费类型",prop:"name","label-width":t.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),t._v(" "),"MIX"!=t.form.classGroupType?n("el-form-item",{attrs:{label:"声部选择",prop:"subjectIds","label-width":t.formLabelWidth}},[n("el-select",{attrs:{multiple:""},model:{value:t.form.subjectIds,callback:function(e){t.$set(t.form,"subjectIds",e)},expression:"form.subjectIds"}},t._l(t.subjectList,(function(e){return n("el-option-group",{key:e.label,attrs:{label:e.label}},t._l(e.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)})),1)],1):t._e()],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.typeStatus=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onTypesSubmit("ruleForm")}}},[t._v("确 定")])],1)],1)],1)},r=[],o=(n("7f7f"),n("ac6a"),n("333d")),i=n("4360"),u=n("d349"),s={components:{pagination:o["a"]},name:"adminManager",data:function(){return{tableList:[],subjectList:[],formActionTitle:"create",formTitle:{create:"添加收费类型",update:"修改收费类型"},typeStatus:!1,formLabelWidth:"120px",form:{name:null,subjectIds:[],organId:i["a"].getters.organ},rules:{name:[{required:!0,message:"请输入类型名称",trigger:"blur"}],subjectIds:[{required:!0,message:"请选择声部组合",trigger:"change"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList(),this.getSubjectTree()},methods:{onTypesSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;"create"==e.formActionTitle?(e.form.id&&delete e.form.id,Object(u["g"])(e.form).then((function(t){e.messageTips("添加",t)}))):"update"==e.formActionTitle&&Object(u["g"])(e.form).then((function(t){e.messageTips("修改",t)}))}))},messageTips:function(t,e){200==e.code?(this.$message({message:t+"成功",type:"success"}),this.typeStatus=!1,this.getList()):this.$message.error(e.msg)},onTypesDel:function(t){var e=this;Object(u["e"])(t.id).then((function(t){e.messageTips("删除",t)}))},getList:function(){var t=this;Object(u["f"])({rows:this.pageInfo.limit,page:this.pageInfo.page}).then((function(e){var n=e.data;200==e.code&&(n.rows.forEach((function(t){var e=[],n=[];t.subjects.forEach((function(t){e.push(t.name),n.push(t.id)})),t.subjectName=e,t.subjectIds=n})),t.tableList=n.rows,t.pageInfo.total=n.total)}))},openTypes:function(t,e){this.typeStatus=!0,this.formActionTitle=t,"update"==t&&(this.form={id:e.id,name:e.name,subjectIds:e.subjectIds,organId:i["a"].getters.organ})},onFormClose:function(t){this.form={name:null,subjectIds:[],organId:i["a"].getters.organ},this.$refs[t].resetFields()},getSubjectTree:function(){var t=this;Object(u["m"])({delFlag:0,rows:9999}).then((function(e){var n=e.data;if(200==e.code){var a=[];n.rows.forEach((function(t,e){var n=[];t.subjects&&t.subjects.forEach((function(t){n.push({value:t.id,label:t.name})})),a[e]={label:t.name,options:n}})),t.subjectList=a}}))}}},c=s,l=(n("51c6"),n("2877")),p=Object(l["a"])(c,a,r,!1,null,"638a4dff",null);e["default"]=p.exports},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}}]);
|