chunk-4a8375df.c54ef3b0.js 45 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4a8375df","chunk-43eca54b","chunk-02575c59","chunk-3ad08d44","chunk-2f86221d"],{"0938":function(e,t,n){"use strict";var a=n("88a2"),i=n.n(a);i.a},"09f4":function(e,t,n){"use strict";n.d(t,"a",function(){return o}),Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var a=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 r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(e,t,n){var o=r(),s=e-o,u=20,c=0;t="undefined"===typeof t?500:t;var l=function e(){c+=u;var r=Math.easeInOutQuad(c,o,s,t);i(r),c<t?a(e):n&&"function"===typeof n&&n()};l()}},"0d9e":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("el-row",{staticClass:"music-title"},[n("el-col",{attrs:{span:6}},[e._v("\n 一级分类\n "),n("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"subject/upset",expression:"'subject/upset'"}],attrs:{placement:"right",width:"300",trigger:"click"}},[n("el-input",{staticStyle:{width:"73%"},attrs:{size:"medium",autocomplete:"off"},model:{value:e.oneTypeName,callback:function(t){e.oneTypeName="string"===typeof t?t.trim():t},expression:"oneTypeName"}}),e._v(" "),n("el-button",{staticStyle:{margin:"0"},attrs:{type:"primary",size:"medium"},on:{click:e.onAddMusic}},[e._v("提交")]),e._v(" "),n("el-button",{attrs:{slot:"reference",type:"primary",size:"mini",round:"",icon:"el-icon-plus"},slot:"reference"},[e._v("添加")])],1)],1),e._v(" "),n("el-col",{attrs:{span:18}},[e._v("\n 二级分类\n ")])],1),e._v(" "),e._l(e.subjectList,function(t,a){return n("el-row",{key:t.id},[n("el-col",{attrs:{span:6}},[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"subject/upset",expression:"'subject/upset'"}],attrs:{icon:"el-icon-delete",circle:""},on:{click:function(n){return e.subjectDelete(t)}}}),e._v(" "),n("span",{staticClass:"one_name"},[e._v(e._s(t.name))])],1),e._v(" "),n("el-col",{staticClass:"tow_col",attrs:{span:18}},[e._l(t.subjects,function(t){return n("el-tag",{key:t.id,attrs:{type:"info",effect:"dark",closable:"","disable-transitions":!1},on:{close:function(n){return e.subjectDelete(t)}}},[e._v(" "+e._s(t.name))])}),e._v(" "),n("span",{staticStyle:{display:"inline-block"}},[t.inputStatus?n("el-input",{key:"tag",ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small"},model:{value:e.inputValue[a],callback:function(t){e.$set(e.inputValue,a,"string"===typeof t?t.trim():t)},expression:"inputValue[index]"}}):n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"subject/upset",expression:"'subject/upset'"}],key:"tag",attrs:{type:"primary",size:"mini",round:"",icon:"el-icon-plus"},on:{click:function(e){t.inputStatus=!0}}},[e._v("添加")]),e._v(" "),t.inputStatus?n("el-button",{attrs:{type:"info",size:"mini",round:"",icon:"el-icon-check"},on:{click:function(n){return e.onSave(t,a)}}},[e._v("保存")]):e._e()],1)],2)],1)})],2)])},i=[],r=(n("ac6a"),n("333d")),o=n("d349"),s={components:{pagination:r["a"]},name:"musicalManager",data:function(){return{oneTypeName:null,subjectList:[],inputValue:[]}},mounted:function(){this.getList()},methods:{onAddMusic:function(){var e=this;this.oneTypeName&&Object(o["r"])({parentSubjectId:0,tenantId:1,name:this.oneTypeName}).then(function(t){e.messageTips("添加",t),200==t.code&&(e.oneTypeName=null)})},onSave:function(e,t){var n=this;this.inputValue[t]&&Object(o["r"])({parentSubjectId:e.id,tenantId:1,name:this.inputValue[t]}).then(function(e){n.messageTips("添加",e),200==e.code&&(n.inputValue[t]=null)})},subjectDelete:function(e){var t=this;Object(o["r"])({delFlag:"YES",id:e.id}).then(function(e){t.messageTips("删除",e)})},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.getList()):this.$message.error(t.msg)},getList:function(){var e=this;Object(o["q"])({delFlag:0,tenantId:1,rows:9999}).then(function(t){var n=t.data;if(200==t.code){var a=[];n.rows.forEach(function(e){e.inputStatus=!1,a.push(e)}),e.subjectList=a}})}}},u=s,c=(n("0938"),n("2877")),l=Object(c["a"])(u,a,i,!1,null,"3d9d5acc",null);t["default"]=l.exports},1127:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[e._m(0),e._v(" "),n("div",{staticClass:"m-core"},[n("el-tabs",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permissionList.musicalManager?n("el-tab-pane",{attrs:{label:"声部设置(对内)",name:"0"}},[0==e.activeIndex?n("musicalManager"):e._e()],1):e._e(),e._v(" "),e.permissionList.musicalManagerOut?n("el-tab-pane",{attrs:{label:"声部设置(对外)",name:"1"}},[1==e.activeIndex?n("musicalManagerOut"):e._e()],1):e._e(),e._v(" "),e.permissionList.typesManager?n("el-tab-pane",{attrs:{label:"乐团收费类型",name:"2"}},[2==e.activeIndex?n("typesManager"):e._e()],1):e._e(),e._v(" "),e.permissionList.chargesList?n("el-tab-pane",{attrs:{label:"乐团收费标准",name:"3"}},[3==e.activeIndex?n("chargesList"):e._e()],1):e._e(),e._v(" "),e.permissionList.jobTemplateSetting?n("el-tab-pane",{attrs:{label:"乐团作业模板",name:"4"}},[4==e.activeIndex?n("jobTemplateSetting"):e._e()],1):e._e(),e._v(" "),e.permissionList.errorManager?n("el-tab-pane",{attrs:{label:"热词标签",name:"5"}},[5==e.activeIndex?n("errorManager"):e._e()],1):e._e(),e._v(" "),e.permissionList.overallManager?n("el-tab-pane",{attrs:{label:"参数设置",name:"6"}},[6==e.activeIndex?n("overallManager"):e._e()],1):e._e(),e._v(" "),e.permissionList.overallManagerTwo?n("el-tab-pane",{attrs:{label:"收费分润配置",name:"7"}},[7==e.activeIndex?n("overallManagerTwo"):e._e()],1):e._e(),e._v(" "),e.permissionList.holidaySetting?n("el-tab-pane",{attrs:{label:"节假日设置",name:"8"}},[8==e.activeIndex?n("holidaySetting"):e._e()],1):e._e()],1)],1)])},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("全局配置\n ")])}],r=(n("7f7f"),n("48d0")),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("el-row",e._l(e.configList,function(t,a){return n("el-col",{key:t.id,attrs:{span:12}},[e._v("\n "+e._s(t.description[0])+"\n "),n("el-input",{model:{value:e.input[a],callback:function(t){e.$set(e.input,a,"string"===typeof t?t.trim():t)},expression:"input[index]"}},[t.description[1]?n("template",{slot:"append"},[e._v(e._s(t.description[1]))]):e._e()],2),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysConfig/update",expression:"'sysConfig/update'"}],attrs:{type:"primary"},on:{click:function(n){return e.onSave(t,a)}}},[e._v("保存")])],1)}),1)],1)])},s=[],u=(n("28a5"),n("ac6a"),n("333d")),c=n("a6e9"),l={components:{pagination:u["a"]},name:"overallManagerTwo",data:function(){return{configList:[],input:[]}},mounted:function(){this.__init()},methods:{__init:function(){var e=this;Object(c["a"])({group:"payment_config"}).then(function(t){200==t.code&&t.data.length>0&&t.data.forEach(function(t,n){e.input[n]=t.paranValue,e.configList.push({id:t.id,paramName:t.paramName,paranValue:t.paranValue,description:t.description.split("{}")})})})},onSave:function(e,t){var n=this,a={id:e.id,paranValue:this.input[t],paramName:e.paramName,description:e.description.join("{}")};Object(c["b"])(a).then(function(e){200==e.code&&n.$message.success("修改成功")})}}},p=l,d=(n("95fe"),n("2877")),f=Object(d["a"])(p,o,s,!1,null,"304032c3",null),m=f.exports,g=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[e.dataStatus?n("calendar",{staticClass:"calendarComponent",attrs:{"first-day-of-week":1,multiple:"","select-date":e.dateList,width:"800px"}}):e._e(),e._v(" "),e.dataStatus?n("div",{staticStyle:{width:"800px",margin:"10px auto","text-align":"center"}},[n("el-button",{staticStyle:{padding:"16px 33px","font-size":"18px"},attrs:{type:"primary"},on:{click:e.onSave}},[e._v("保  存")])],1):e._e()],1)])},b=[],h=n("941d"),v=n.n(h),y={components:{pagination:u["a"],Calendar:v.a},name:"holidaySetting",data:function(){return{configList:[],dateList:[],dataStatus:!1}},mounted:function(){this.__init()},methods:{__init:function(){var e=this;Object(c["a"])({group:"holiday"}).then(function(t){if(200==t.code&&t.data.length>0){var n=t.data[0];e.configList=n,e.dateList=n.paranValue?JSON.parse(n.paranValue):[],e.dataStatus=!0}})},onSave:function(){var e=this,t=this.configList,n={id:t.id,paranValue:JSON.stringify(this.dateList),paramName:t.paramName};Object(c["b"])(n).then(function(t){200==t.code?e.$message.success("保存成功"):e.$message.error(t.msg)})}}},_=y,j=(n("36b2"),Object(d["a"])(_,g,b,!1,null,"528f6c8c",null)),T=j.exports,O=n("0d9e"),w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("el-row",{staticClass:"music-title"},[n("el-col",{attrs:{span:6}},[e._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:e.oneTypeName,callback:function(t){e.oneTypeName="string"===typeof t?t.trim():t},expression:"oneTypeName"}}),e._v(" "),n("el-button",{staticStyle:{margin:"0"},attrs:{type:"primary",size:"medium"},on:{click:e.onAddMusic}},[e._v("提交")]),e._v(" "),n("el-button",{attrs:{slot:"reference",type:"primary",size:"mini",round:"",icon:"el-icon-plus"},slot:"reference"},[e._v("添加")])],1)],1),e._v(" "),n("el-col",{attrs:{span:18}},[e._v("\n 二级分类\n ")])],1),e._v(" "),e._l(e.subjectList,function(t,a){return n("el-row",{key:t.id},[n("el-col",{attrs:{span:6}},[n("el-button",{attrs:{icon:"el-icon-delete",circle:""},on:{click:function(n){return e.subjectDelete(t)}}}),e._v(" "),n("span",{staticClass:"one_name"},[e._v(e._s(t.name))])],1),e._v(" "),n("el-col",{staticClass:"tow_col",attrs:{span:18}},[e._l(t.subjects,function(t){return n("el-tag",{key:t.id,attrs:{type:"info",effect:"dark",closable:"","disable-transitions":!1},on:{close:function(n){return e.subjectDelete(t)}}},[e._v(" "+e._s(t.name))])}),e._v(" "),n("span",{staticStyle:{display:"inline-block"}},[t.inputStatus?n("el-input",{key:"tag",ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small"},model:{value:e.inputValue[a],callback:function(t){e.$set(e.inputValue,a,"string"===typeof t?t.trim():t)},expression:"inputValue[index]"}}):n("el-button",{key:"tag",attrs:{type:"primary",size:"mini",round:"",icon:"el-icon-plus"},on:{click:function(e){t.inputStatus=!0}}},[e._v("添加")]),e._v(" "),t.inputStatus?n("el-button",{attrs:{type:"info",size:"mini",round:"",icon:"el-icon-check"},on:{click:function(n){return e.onSave(t,a)}}},[e._v("保存")]):e._e()],1)],2)],1)})],2)])},I=[],S=n("d349"),k={components:{pagination:u["a"]},name:"musicalManager",data:function(){return{oneTypeName:null,subjectList:[],inputValue:[]}},mounted:function(){this.getList()},methods:{onAddMusic:function(){var e=this;this.oneTypeName&&Object(S["r"])({parentSubjectId:0,tenantId:2,name:this.oneTypeName}).then(function(t){e.messageTips("添加",t),200==t.code&&(e.oneTypeName=null)})},onSave:function(e,t){var n=this;this.inputValue[t]&&Object(S["r"])({parentSubjectId:e.id,tenantId:2,name:this.inputValue[t]}).then(function(e){n.messageTips("添加",e),200==e.code&&(n.inputValue[t]=null)})},subjectDelete:function(e){var t=this;Object(S["r"])({delFlag:"YES",id:e.id}).then(function(e){t.messageTips("删除",e)})},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.getList()):this.$message.error(t.msg)},getList:function(){var e=this;Object(S["q"])({delFlag:0,tenantId:2,rows:9999}).then(function(t){var n=t.data;if(200==t.code){var a=[];n.rows.forEach(function(e){e.inputStatus=!1,a.push(e)}),e.subjectList=a}})}}},L=k,x=(n("6a2f"),Object(d["a"])(L,w,I,!1,null,"7718df92",null)),C=x.exports,$=n("f946"),F=n("135b"),z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("div",{directives:[{name:"permission",rawName:"v-permission",value:"hotWordLabelManage/add",expression:"'hotWordLabelManage/add'"}],staticClass:"newBand",on:{click:function(t){return e.openTypes("create")}}},[e._v("添加")]),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"id",label:"编号"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"name",label:"热词标签"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"hotWordLabelManage/update",expression:"'hotWordLabelManage/update'"}],attrs:{type:"text"},on:{click:function(n){return e.openTypes("update",t.row)}}},[e._v("修改")]),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"hotWordLabelManage/del",expression:"'hotWordLabelManage/del'"}],attrs:{type:"text"},on:{click:function(n){return e.onTypesDel(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),n("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)]),e._v(" "),n("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.typeStatus,width:"500px"},on:{"update:visible":function(t){e.typeStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[n("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[n("el-form-item",{attrs:{label:"热词内容",prop:"name","label-width":e.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name","string"===typeof t?t.trim():t)},expression:"form.name"}})],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.typeStatus=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTypesSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)},M=[],N=n("99b4"),E={components:{pagination:u["a"]},name:"errormanager",data:function(){return{tableList:[],subjectList:[],formActionTitle:"create",formTitle:{create:"添加热词标签",update:"修改热词标签"},typeStatus:!1,formLabelWidth:"120px",form:{name:null},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(e){var t=this;this.$refs[e].validate(function(e){if(!e)return!1;"create"==t.formActionTitle?(t.form.id&&delete t.form.id,Object(N["r"])(t.form).then(function(e){t.messageTips("添加",e)})):"update"==t.formActionTitle&&Object(N["t"])(t.form).then(function(e){t.messageTips("修改",e)})})},onTypesDel:function(e){var t=this;Object(N["s"])(e.id).then(function(e){t.messageTips("删除",e)})},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.typeStatus=!1,this.getList()):this.$message.error(t.msg)},getList:function(){var e=this;Object(N["q"])({rows:this.pageInfo.limit,page:this.pageInfo.page}).then(function(t){var n=t.data;200==t.code&&(e.tableList=n.rows,e.pageInfo.total=n.total)})},openTypes:function(e,t){this.typeStatus=!0,this.formActionTitle=e,"update"==e&&(this.form={id:t.id,name:t.name})},onFormClose:function(e){this.form={name:null,subjectIds:[]},this.$refs[e].resetFields()}}},q=E,A=(n("fb7a"),Object(d["a"])(q,z,M,!1,null,"b80aedc6",null)),V=A.exports,W=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("div",{directives:[{name:"permission",rawName:"v-permission",value:"chargeTypeOrganizationFee/add",expression:"'chargeTypeOrganizationFee/add'"}],staticClass:"newBand",on:{click:function(t){return e.onChargeOperation("create")}}},[e._v("添加")]),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:e.dataList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{prop:"organName",label:"所属分部"}}),e._v(" "),n("el-table-column",{attrs:{prop:"chargeTypeName",label:"收费类型"}}),e._v(" "),n("el-table-column",{attrs:{prop:"courseFee",label:"课程费用"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"chargeTypeOrganizationFee/update",expression:"'chargeTypeOrganizationFee/update'"}],attrs:{type:"text"},on:{click:function(n){return e.onChargeOperation("update",t.row)}}},[e._v("修改")]),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"chargeTypeOrganizationFee/delete",expression:"'chargeTypeOrganizationFee/delete'"}],attrs:{type:"text"},on:{click:function(n){return e.onChargeDelete(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),n("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1),e._v(" "),n("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.chargeStatus,width:"500px"},on:{"update:visible":function(t){e.chargeStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[n("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[n("el-form-item",{attrs:{label:"所属分部",prop:"organId","label-width":e.formLabelWidth}},[n("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.form.organId,callback:function(t){e.$set(e.form,"organId","string"===typeof t?t.trim():t)},expression:"form.organId"}},e._l(e.branchList,function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"收费类型",prop:"chargeTypeId","label-width":e.formLabelWidth}},[n("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.form.chargeTypeId,callback:function(t){e.$set(e.form,"chargeTypeId","string"===typeof t?t.trim():t)},expression:"form.chargeTypeId"}},e._l(e.typesList,function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"课程费用",prop:"courseFee","label-width":e.formLabelWidth}},[n("el-input",{attrs:{type:"number",autocomplete:"off"},nativeOn:{mousewheel:function(e){e.preventDefault()}},model:{value:e.form.courseFee,callback:function(t){e.$set(e.form,"courseFee","string"===typeof t?t.trim():t)},expression:"form.courseFee"}})],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.chargeStatus=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTypesSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)])},D=[],P={components:{pagination:u["a"]},name:"chargesList",data:function(){return{id:null,dataList:[],typesList:[],branchList:[],formActionTitle:"create",formTitle:{create:"添加乐团收费标准",update:"修改乐团收费标准"},chargeStatus:!1,formLabelWidth:"100px",form:{chargeTypeId:null,courseFee:null},rules:{courseFee:[{required:!0,message:"请输入课程费用",trigger:"blur"}],chargeTypeId:[{required:!0,message:"请选择收费类型",trigger:"change"}],organId:[{required:!0,message:"请选择所属分部",trigger:"change"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){var e=this;this.getList(),Object(S["f"])({rows:9999,page:1}).then(function(t){200==t.code&&t.data.rows.forEach(function(t){e.typesList.push({label:t.name,value:t.id})})}),Object(S["c"])({rows:9999,page:1}).then(function(t){200==t.code&&t.data.rows.forEach(function(t){e.branchList.push({label:t.name,value:t.id})})})},methods:{onTypesSubmit:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return!1;"create"==t.formActionTitle?(t.form.id&&delete t.form.id,Object(S["h"])(t.form).then(function(e){t.messageTips("添加",e)})):"update"==t.formActionTitle&&Object(S["j"])(t.form).then(function(e){t.messageTips("修改",e)})})},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.chargeStatus=!1,this.getList()):this.$message.error(t.msg)},onChargeOperation:function(e,t){this.chargeStatus=!0,this.formActionTitle=e,"update"==e&&(this.form={chargeTypeId:t.chargeTypeId,courseFee:t.courseFee,organId:t.organId,id:t.id})},onChargeDelete:function(e){var t=this;this.$confirm("您确定删除该收费标准?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(S["i"])({id:e.id}).then(function(e){t.messageTips("删除",e)})}).catch(function(){})},getList:function(){var e=this;Object(S["g"])({rows:this.pageInfo.limit,page:this.pageInfo.page}).then(function(t){200==t.code&&(e.dataList=t.data.rows,e.pageInfo.total=t.data.total)})},onFormClose:function(e){this.form={courseFee:null,chargeTypeId:null},this.$refs[e].resetFields()}}},B=P,G=(n("e733"),Object(d["a"])(B,W,D,!1,null,"217d2442",null)),H=G.exports,J=n("ec8a"),R={components:{overallManager:r["default"],overallManagerTwo:m,holidaySetting:T,musicalManager:O["default"],musicalManagerOut:C,typesManager:$["default"],jobTemplateSetting:F["default"],errorManager:V,chargesList:H},name:"globalConfig",data:function(){return{activeIndex:"0",permissionList:{overallManager:Object(J["a"])("/globalConfig/overallManager"),overallManagerTwo:Object(J["a"])("/globalConfig/overallManagerTwo"),musicalManager:Object(J["a"])("/globalConfig/musicalManager"),musicalManagerOut:Object(J["a"])("/globalConfig/musicalManagerOut"),typesManager:Object(J["a"])("/globalConfig/typesManager"),chargesList:Object(J["a"])("/globalConfig/chargesList"),jobTemplateSetting:Object(J["a"])("/globalConfig/jobTemplateSetting"),errorManager:Object(J["a"])("/globalConfig/errorManager"),holidaySetting:Object(J["a"])("/globalConfig/holidaySetting")}}},methods:{handleClick:function(e){this.activeIndex=e.name}}},X=R,Q=(n("da12"),Object(d["a"])(X,a,i,!1,null,"60e421a1",null));t["default"]=Q.exports},"135b":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("div",{directives:[{name:"permission",rawName:"v-permission",value:"courseHomeworkTemplate/add",expression:"'courseHomeworkTemplate/add'"}],staticClass:"newBand",on:{click:function(t){return e.openJob("create")}}},[e._v("添加")]),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"name",label:"作业模板名称"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"classGroupTypeName",label:"对应课程类型"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.subjectName?t.row.subjectName:"无")+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",prop:"content",label:"模板内容"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseHomeworkTemplate/update",expression:"'courseHomeworkTemplate/update'"}],attrs:{type:"text"},on:{click:function(n){return e.openJob("update",t.row)}}},[e._v("修改")]),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseHomeworkTemplate/del",expression:"'courseHomeworkTemplate/del'"}],attrs:{type:"text"},on:{click:function(n){return e.onJobDel(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),n("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1),e._v(" "),n("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.jobStatus,width:"500px"},on:{"update:visible":function(t){e.jobStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[n("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[n("el-form-item",{attrs:{label:"作业模板名称",prop:"name","label-width":e.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name","string"===typeof t?t.trim():t)},expression:"form.name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"对应课程类型",prop:"classGroupType","label-width":e.formLabelWidth}},[n("el-radio-group",{attrs:{disabled:"update"==e.formActionTitle},model:{value:e.form.classGroupType,callback:function(t){e.$set(e.form,"classGroupType","string"===typeof t?t.trim():t)},expression:"form.classGroupType"}},[n("el-radio",{attrs:{label:"NORMAL"}},[e._v("单技课")]),e._v(" "),n("el-radio",{attrs:{label:"MIX"}},[e._v("合奏课")])],1)],1),e._v(" "),"MIX"!=e.form.classGroupType?n("el-form-item",{attrs:{label:"声部选择",prop:"subjectId","label-width":e.formLabelWidth}},[n("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.form.subjectId,callback:function(t){e.$set(e.form,"subjectId","string"===typeof t?t.trim():t)},expression:"form.subjectId"}},e._l(e.subjectList,function(t){return n("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)}),1)],1):e._e(),e._v(" "),n("el-form-item",{attrs:{label:"作业内容",prop:"content","label-width":e.formLabelWidth}},[n("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:e.form.content,callback:function(t){e.$set(e.form,"content","string"===typeof t?t.trim():t)},expression:"form.content"}})],1)],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.jobStatus=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onJobSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)])},i=[],r=(n("ac6a"),n("7f7f"),n("333d")),o=n("d349"),s={components:{pagination:r["a"]},name:"jobTemplateSetting",data:function(){return{tableList:[],subjectList:[],formActionTitle:"create",formTitle:{create:"添加作业模板",update:"修改作业模板"},jobStatus:!1,formLabelWidth:"120px",form:{name:null,classGroupType:null,subjectId:null,content:null},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]}}},mounted:function(){this.getList(),this.getSubjectTree()},methods:{onJobSubmit:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return!1;"create"==t.formActionTitle?(t.form.id&&delete t.form.id,Object(o["n"])(t.form).then(function(e){t.messageTips("添加",e)})):"update"==t.formActionTitle&&("MIX"==t.form.classGroupType&&(t.form.subjectId=""),Object(o["p"])(t.form).then(function(e){t.messageTips("修改",e)}))})},openJob:function(e,t){this.jobStatus=!0,this.formActionTitle=e,"update"==e&&(this.form={id:t.id,name:t.name,classGroupType:t.classGroupType,subjectId:t.subjectId,content:t.content})},onJobDel:function(e){var t=this;Object(o["o"])(e.id).then(function(e){t.messageTips("删除",e)})},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.jobStatus=!1,this.getList()):this.$message.error(t.msg)},getList:function(){var e=this;Object(o["l"])({delFlag:0,rows:this.pageInfo.limit,page:this.pageInfo.page}).then(function(t){200==t.code&&t.data&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)})},onFormClose:function(e){this.form={name:null,classGroupType:null,subjectId:null,content:null},this.$refs[e].resetFields()},getSubjectTree:function(){var e=this;Object(o["q"])({delFlag:0,rows:9999}).then(function(t){var n=t.data;if(200==t.code){var a=[];n.rows.forEach(function(e,t){var n=[];e.subjects.forEach(function(e){n.push({value:e.id,label:e.name})}),a[t]={label:e.name,options:n}}),e.subjectList=a}})}}},u=s,c=(n("2873"),n("2877")),l=Object(c["a"])(u,a,i,!1,null,"65befa4a",null);t["default"]=l.exports},2202:function(e,t,n){},2873:function(e,t,n){"use strict";var a=n("cddf"),i=n.n(a);i.a},"333d":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[n("el-pagination",e._b({attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},i=[],r=(n("c5f6"),n("09f4")),o={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(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&Object(r["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(r["a"])(0,800)}}},s=o,u=(n("c0b9"),n("2877")),c=Object(u["a"])(s,a,i,!1,null,"31cb099a",null);t["a"]=c.exports},"36b2":function(e,t,n){"use strict";var a=n("979b"),i=n.n(a);i.a},3837:function(e,t,n){},4518:function(e,t,n){},"48d0":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("el-row",e._l(e.configList,function(t,a){return n("el-col",{key:t.id,attrs:{span:12}},[e._v("\n "+e._s(t.description[0])+"\n "),n("el-input",{model:{value:e.input[a],callback:function(t){e.$set(e.input,a,"string"===typeof t?t.trim():t)},expression:"input[index]"}},[t.description[1]?n("template",{slot:"append"},[e._v(e._s(t.description[1]))]):e._e()],2),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"sysConfig/update",expression:"'sysConfig/update'"}],attrs:{type:"primary"},on:{click:function(n){return e.onSave(t,a)}}},[e._v("保存")])],1)}),1)],1)])},i=[],r=(n("28a5"),n("ac6a"),n("333d")),o=n("a6e9"),s={components:{pagination:r["a"]},name:"overallManager",data:function(){return{configList:[],input:[]}},mounted:function(){this.__init()},methods:{__init:function(){var e=this;Object(o["a"])({group:"default"}).then(function(t){200==t.code&&t.data.length>0&&t.data.forEach(function(t,n){e.input[n]=t.paranValue,e.configList.push({id:t.id,paramName:t.paramName,paranValue:t.paranValue,description:t.description.split("{}")})})})},onSave:function(e,t){var n=this,a={id:e.id,paranValue:this.input[t],paramName:e.paramName,description:e.description.join("{}")};Object(o["b"])(a).then(function(e){200==e.code&&n.$message.success("修改成功")})}}},u=s,c=(n("cdbd"),n("2877")),l=Object(c["a"])(u,a,i,!1,null,"1603d47f",null);t["default"]=l.exports},"4f29":function(e,t,n){},"6a2f":function(e,t,n){"use strict";var a=n("a682"),i=n.n(a);i.a},"88a2":function(e,t,n){},9125:function(e,t,n){},"95fe":function(e,t,n){"use strict";var a=n("9125"),i=n.n(a);i.a},"979b":function(e,t,n){},"99b4":function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"e",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"A",function(){return l}),n.d(t,"y",function(){return p}),n.d(t,"G",function(){return d}),n.d(t,"F",function(){return f}),n.d(t,"H",function(){return m}),n.d(t,"z",function(){return g}),n.d(t,"j",function(){return b}),n.d(t,"l",function(){return h}),n.d(t,"p",function(){return v}),n.d(t,"k",function(){return y}),n.d(t,"D",function(){return _}),n.d(t,"n",function(){return j}),n.d(t,"E",function(){return T}),n.d(t,"C",function(){return O}),n.d(t,"f",function(){return w}),n.d(t,"h",function(){return I}),n.d(t,"g",function(){return S}),n.d(t,"i",function(){return k}),n.d(t,"q",function(){return L}),n.d(t,"r",function(){return x}),n.d(t,"t",function(){return C}),n.d(t,"s",function(){return $}),n.d(t,"o",function(){return F}),n.d(t,"w",function(){return z}),n.d(t,"u",function(){return M}),n.d(t,"x",function(){return N}),n.d(t,"v",function(){return E}),n.d(t,"m",function(){return q}),n.d(t,"b",function(){return A}),n.d(t,"a",function(){return V}),n.d(t,"B",function(){return W});var a=n("b775"),i=n("4328"),r=n.n(i),o="/api-web";function s(e){return Object(a["a"])({url:o+"/cooperationOrgan/add",method:"post",data:r.a.stringify(e)})}function u(e){return Object(a["a"])({url:o+"/cooperationOrgan/update",method:"put",data:r.a.stringify(e)})}function c(e){return Object(a["a"])({url:o+"/cooperationOrgan/del/".concat(e),method:"post"})}function l(e){return Object(a["a"])({url:o+"/cooperationOrgan/queryPage",method:"get",params:e})}function p(e){return Object(a["a"])({url:o+"/cooperationOrgan/queryByOrganId",method:"get",params:e})}function d(e){return Object(a["a"])({url:o+"/school/queryPage",method:"get",params:e})}function f(e){return Object(a["a"])({url:o+"/school/add",method:"post",data:r.a.stringify(e)})}function m(e){return Object(a["a"])({url:o+"/school/update",method:"post",data:r.a.stringify(e)})}function g(e){return Object(a["a"])({url:o+"/employee/queryEmployByOrganId",method:"get",params:e})}function b(e){return Object(a["a"])({url:o+"/employee/add",method:"post",data:e})}function h(e){return Object(a["a"])({url:o+"/employee/update",method:"post",data:e})}function v(e){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function y(e){return Object(a["a"])({url:o+"/employee/employeeOperate",method:"post",data:r.a.stringify(e)})}function _(e){return Object(a["a"])({url:"/api-auth/role/queryPage",method:"get",params:e})}function j(e){return Object(a["a"])({url:"/api-auth/role/".concat(e.id),method:"get"})}function T(e){return Object(a["a"])({url:"/api-auth/role/update",method:"post",data:e})}function O(e){return Object(a["a"])({url:"/api-auth/role/add",method:"post",data:e})}function w(e){return Object(a["a"])({url:o+"/courseScheduleRewards/queryPage",method:"get",params:e})}function I(e){return Object(a["a"])({url:o+"/courseScheduleRewards/query",method:"get",params:e})}function S(e){return Object(a["a"])({url:o+"/courseScheduleRewards/add",method:"post",data:r.a.stringify(e)})}function k(e){return Object(a["a"])({url:o+"/courseScheduleRewards/update",method:"post",data:r.a.stringify(e)})}function L(e){return Object(a["a"])({url:o+"/hotWordLabelManage/queryPage",method:"get",params:e})}function x(e){return Object(a["a"])({url:o+"/hotWordLabelManage/add",method:"post",data:r.a.stringify(e)})}function C(e){return Object(a["a"])({url:o+"/hotWordLabelManage/update",method:"post",data:r.a.stringify(e)})}function $(e){return Object(a["a"])({url:o+"/hotWordLabelManage/del/".concat(e),method:"post"})}function F(e){return Object(a["a"])({url:o+"/school/queryByOrganId",method:"get",params:e})}function z(e){return Object(a["a"])({url:o+"/paymentConfig/queryPage",method:"get",params:e})}function M(e){return Object(a["a"])({url:o+"/paymentConfig/add",method:"post",data:r.a.stringify(e)})}function N(e){return Object(a["a"])({url:o+"/paymentConfig/update",method:"post",data:r.a.stringify(e)})}function E(e){return Object(a["a"])({url:o+"/paymentConfig/del/"+e.id,method:"post"})}function q(e){return Object(a["a"])({url:o+"/teacher/findTeacherByOrganId",method:"get",params:e})}function A(e){return Object(a["a"])({url:o+"/appVersionInfo/list",method:"get",params:e})}function V(e){return Object(a["a"])({url:o+"/appVersionInfo/add",method:"post",data:r.a.stringify(e)})}function W(e){return Object(a["a"])({url:o+"/appVersionInfo/update",method:"post",data:r.a.stringify(e)})}},a682:function(e,t,n){},a6e9:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return u});var a=n("b775"),i=n("4328"),r=n.n(i),o="/api-web";function s(e){return Object(a["a"])({url:o+"/sysConfig/list",method:"get",params:e})}function u(e){return Object(a["a"])({url:o+"/sysConfig/update",method:"post",data:r.a.stringify(e)})}},b370:function(e,t,n){"use strict";var a=n("4f29"),i=n.n(a);i.a},c0b9:function(e,t,n){"use strict";var a=n("de4e"),i=n.n(a);i.a},cdbd:function(e,t,n){"use strict";var a=n("4518"),i=n.n(a);i.a},cddf:function(e,t,n){},d349:function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"a",function(){return l}),n.d(t,"m",function(){return p}),n.d(t,"q",function(){return d}),n.d(t,"r",function(){return f}),n.d(t,"f",function(){return m}),n.d(t,"k",function(){return g}),n.d(t,"e",function(){return b}),n.d(t,"l",function(){return h}),n.d(t,"p",function(){return v}),n.d(t,"n",function(){return y}),n.d(t,"o",function(){return _}),n.d(t,"h",function(){return j}),n.d(t,"i",function(){return T}),n.d(t,"j",function(){return O}),n.d(t,"g",function(){return w});var a=n("b775"),i=n("4328"),r=n.n(i),o="/api-web";function s(e){return Object(a["a"])({url:o+"/organization/queryPage",method:"get",params:e})}function u(e){return Object(a["a"])({url:o+"/organization/add",method:"post",data:r.a.stringify(e)})}function c(e){return Object(a["a"])({url:o+"/organization/update",method:"post",data:r.a.stringify(e)})}function l(e){return Object(a["a"])({url:o+"/area/queryChild",method:"get",params:e})}function p(e){return Object(a["a"])({url:o+"/area/getParentArea/".concat(e.id),method:"get"})}function d(e){return Object(a["a"])({url:o+"/subject/queryPageTree",method:"get",params:e})}function f(e){return Object(a["a"])({url:o+"/subject/upset",method:"post",data:e})}function m(e){return Object(a["a"])({url:o+"/chargeType/queryPage",method:"get",params:e})}function g(e){return Object(a["a"])({url:o+"/chargeType/upSet",method:"post",data:e})}function b(e){return Object(a["a"])({url:o+"/chargeType/del/".concat(e),method:"post"})}function h(e){return Object(a["a"])({url:o+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function v(e){return Object(a["a"])({url:o+"/courseHomeworkTemplate/update",method:"post",data:r.a.stringify(e)})}function y(e){return Object(a["a"])({url:o+"/courseHomeworkTemplate/add",method:"post",data:r.a.stringify(e)})}function _(e){return Object(a["a"])({url:o+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function j(e){return Object(a["a"])({url:o+"/chargeTypeOrganizationFee/add",method:"post",data:r.a.stringify(e)})}function T(e){return Object(a["a"])({url:o+"/chargeTypeOrganizationFee/delete",method:"post",data:r.a.stringify(e)})}function O(e){return Object(a["a"])({url:o+"/chargeTypeOrganizationFee/update",method:"post",data:r.a.stringify(e)})}function w(e){return Object(a["a"])({url:o+"/chargeTypeOrganizationFee/queryPage",method:"get",params:e})}},da12:function(e,t,n){"use strict";var a=n("3837"),i=n.n(a);i.a},de4e:function(e,t,n){},e733:function(e,t,n){"use strict";var a=n("fc8c"),i=n.n(a);i.a},ec8a:function(e,t,n){"use strict";n.d(t,"a",function(){return a});n("6762"),n("2fdb"),n("28a5");function a(e,t){var n=window.localStorage.getItem("permission");return n=n.split(","),t=t||null,!(!n.includes(e)||t)||!(!n.includes(e)||!n.includes(t))}},f946:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[n("div",{staticClass:"m-core"},[n("div",{directives:[{name:"permission",rawName:"v-permission",value:"chargeType/upSet",expression:"'chargeType/upSet'"}],staticClass:"newBand",on:{click:function(t){return e.openTypes("create")}}},[e._v("添加")]),e._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"name",label:"收费类型"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"声部组合"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("joinArray")(t.row.subjectName,","))+"\n ")]}}])}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"chargeType/upSet",expression:"'chargeType/upSet'"}],attrs:{type:"text"},on:{click:function(n){return e.openTypes("update",t.row)}}},[e._v("修改")]),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"chargeType/del",expression:"'chargeType/del'"}],attrs:{type:"text"},on:{click:function(n){return e.onTypesDel(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),n("pagination",{attrs:{total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)]),e._v(" "),n("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.typeStatus,width:"500px"},on:{"update:visible":function(t){e.typeStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[n("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[n("el-form-item",{attrs:{label:"收费类型",prop:"name","label-width":e.formLabelWidth}},[n("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name","string"===typeof t?t.trim():t)},expression:"form.name"}})],1),e._v(" "),"MIX"!=e.form.classGroupType?n("el-form-item",{attrs:{label:"声部选择",prop:"subjectIds","label-width":e.formLabelWidth}},[n("el-select",{attrs:{filterable:"",clearable:"",multiple:""},model:{value:e.form.subjectIds,callback:function(t){e.$set(e.form,"subjectIds","string"===typeof t?t.trim():t)},expression:"form.subjectIds"}},e._l(e.subjectList,function(t){return n("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)}),1)],1):e._e()],1),e._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.typeStatus=!1}}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTypesSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)},i=[],r=(n("7f7f"),n("ac6a"),n("333d")),o=n("d349"),s={name:"typesManager",components:{pagination:r["a"]},data:function(){return{tableList:[],subjectList:[],formActionTitle:"create",formTitle:{create:"添加收费类型",update:"修改收费类型"},typeStatus:!1,formLabelWidth:"100px",form:{name:null,subjectIds:[]},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(e){var t=this;this.$refs[e].validate(function(e){if(!e)return!1;"create"==t.formActionTitle?(t.form.id&&delete t.form.id,Object(o["k"])(t.form).then(function(e){t.messageTips("添加",e)})):"update"==t.formActionTitle&&Object(o["k"])(t.form).then(function(e){t.messageTips("修改",e)})})},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.typeStatus=!1,this.getList()):this.$message.error(t.msg)},onTypesDel:function(e){var t=this;Object(o["e"])(e.id).then(function(e){t.messageTips("删除",e)})},getList:function(){var e=this;Object(o["f"])({rows:this.pageInfo.limit,page:this.pageInfo.page}).then(function(t){var n=t.data;200==t.code&&(n.rows.forEach(function(e){var t=[],n=[];e.subjects.forEach(function(e){t.push(e.name),n.push(e.id)}),e.subjectName=t,e.subjectIds=n}),e.tableList=n.rows,e.pageInfo.total=n.total)})},openTypes:function(e,t){this.typeStatus=!0,this.formActionTitle=e,"update"==e&&(this.form={id:t.id,name:t.name,subjectIds:t.subjectIds})},onFormClose:function(e){this.form={name:null,subjectIds:[]},this.$refs[e].resetFields()},getSubjectTree:function(){var e=this;Object(o["q"])({delFlag:0,rows:9999}).then(function(t){var n=t.data;if(200==t.code){var a=[];n.rows.forEach(function(e,t){var n=[];e.subjects&&e.subjects.forEach(function(e){n.push({value:e.id,label:e.name})}),a[t]={label:e.name,options:n}}),e.subjectList=a}})}}},u=s,c=(n("b370"),n("2877")),l=Object(c["a"])(u,a,i,!1,null,"768ca9e7",null);t["default"]=l.exports},fb7a:function(e,t,n){"use strict";var a=n("2202"),i=n.n(a);i.a},fc8c:function(e,t,n){}}]);