chunk-47924d0a.8e8c0822.js 33 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47924d0a"],{"0f8e":function(e,t,a){"use strict";a("9378")},"135b":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("div",{staticClass:"m-core"},[a("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(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"name",label:"训练模板名称"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"classGroupTypeName",label:"对应课程类型"}}),e._v(" "),a("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(" "),a("el-table-column",{attrs:{align:"center",prop:"content",label:"模板内容"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseHomeworkTemplate/update",expression:"'courseHomeworkTemplate/update'"}],attrs:{type:"text"},on:{click:function(a){return e.openJob("update",t.row)}}},[e._v("修改")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseHomeworkTemplate/del",expression:"'courseHomeworkTemplate/del'"}],attrs:{type:"text"},on:{click:function(a){return e.onJobDel(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{attrs:{sync:"",saveKey:"jobTemplateSetting",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"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(" "),a("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")}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"训练模板名称",prop:"name","label-width":e.formLabelWidth}},[a("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(" "),a("el-form-item",{attrs:{label:"对应课程类型",prop:"classGroupType","label-width":e.formLabelWidth}},[a("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"}},[a("el-radio",{attrs:{label:"NORMAL"}},[e._v("声部课")]),e._v(" "),a("el-radio",{attrs:{label:"MIX"}},[e._v("合奏课")])],1)],1),e._v(" "),"MIX"!=e.form.classGroupType?a("el-form-item",{attrs:{label:"声部选择",prop:"subjectId","label-width":e.formLabelWidth}},[a("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.selects.subjects,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"训练内容",prop:"content","label-width":e.formLabelWidth}},[a("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(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.jobStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onJobSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)])},r=[],o=(a("7f7f"),a("333d")),i=a("d349"),s={components:{pagination:o["a"]},name:"jobTemplateSetting",data:function(){return{tableList:[],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.$store.dispatch("setSubjects")},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(i["t"])(t.form).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&("MIX"==t.form.classGroupType&&(t.form.subjectId=""),Object(i["v"])(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;this.$confirm("是否确认删除训练模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(i["u"])(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(i["m"])({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()}}},l=s,c=(a("0f8e"),a("2877")),u=Object(c["a"])(l,n,r,!1,null,"6e1a7421",null);t["default"]=u.exports},"161f":function(e,t,a){"use strict";a("d669")},"184f":function(e,t,a){},"288b":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("tab-router",{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.typesManager?a("el-tab-pane",{attrs:{label:"乐团收费类型",lazy:"",name:"2"}},[2==e.activeIndex?a("typesManager"):e._e()],1):e._e(),e._v(" "),e.permissionList.courseTimerSetting?a("el-tab-pane",{attrs:{label:"课程时长设置",lazy:"",name:"11"}},[11==e.activeIndex?a("courseTimerSetting"):e._e()],1):e._e(),e._v(" "),e.permissionList.discountManage?a("el-tab-pane",{attrs:{label:"商品折扣和声部设置",lazy:"",name:"9"}},[9==e.activeIndex?a("discountManage"):e._e()],1):e._e(),e._v(" "),e.permissionList.chargesList?a("el-tab-pane",{attrs:{label:"乐团收费标准",lazy:"",name:"3"}},[3==e.activeIndex?a("chargesList"):e._e()],1):e._e(),e._v(" "),e.permissionList.musicCourseFee?a("el-tab-pane",{attrs:{label:"乐团课程费用",lazy:"",name:"10"}},[10==e.activeIndex?a("musicCourseFee"):e._e()],1):e._e(),e._v(" "),e.permissionList.jobTemplateSetting?a("el-tab-pane",{attrs:{label:"乐团训练模板",lazy:"",name:"4"}},[4==e.activeIndex?a("jobTemplateSetting"):e._e()],1):e._e(),e._v(" "),e.permissionList.errorManager?a("el-tab-pane",{attrs:{label:"热词标签",lazy:"",name:"5"}},[5==e.activeIndex?a("errorManager"):e._e()],1):e._e()],1)],1)])},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 乐团参数设置\n ")])}],o=(a("7f7f"),a("f946")),i=a("b58c6"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("div",{staticClass:"m-core"},[a("save-form",{attrs:{inline:!0,saveKey:"discountManage",model:e.searchForm},on:{submit:e.search,reset:e.onReSet}},[a("el-form-item",[a("el-select",{attrs:{filterable:"",placeholder:"请选择声部组合",clearable:""},model:{value:e.searchForm.subjectId,callback:function(t){e.$set(e.searchForm,"subjectId","string"===typeof t?t.trim():t)},expression:"searchForm.subjectId"}},e._l(e.subjectList,(function(t){return a("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)})),1)],1),e._v(" "),a("el-form-item",[a("el-select",{attrs:{filterable:"",placeholder:"请选择收费类型",clearable:""},model:{value:e.searchForm.chargeTypeId,callback:function(t){e.$set(e.searchForm,"chargeTypeId","string"===typeof t?t.trim():t)},expression:"searchForm.chargeTypeId"}},e._l(e.typesList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{directives:[{name:"permission",rawName:"v-permission",value:"chargeTypeSubjectMapper/insert",expression:"'chargeTypeSubjectMapper/insert'"}],staticClass:"newBand",on:{click:function(t){e.createVisible=!0}}},[e._v("添加")]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"chargeTypeId",label:"收费类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.typesListById[t.row.chargeTypeId]))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectId",label:"声部"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.subjectListById[t.row.subjectId]))]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"goodsDiscountRate",label:"折扣(%)"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"chargeTypeSubjectMapper/update",expression:"'chargeTypeSubjectMapper/update'"}],attrs:{type:"text"},on:{click:function(a){return e.openTypes("update",t.row)}}},[e._v("修改")])]}}])})],1),e._v(" "),a("pagination",{attrs:{sync:"",saveKey:"discountManage",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"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)],1),e._v(" "),a("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")}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"收费类型",prop:"chargeTypeId","label-width":e.formLabelWidth}},[a("el-select",{attrs:{filterable:"",disabled:"",placeholder:"请选择收费类型",clearable:""},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){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),"MIX"!=e.form.classGroupType?a("el-form-item",{attrs:{label:"声部选择",prop:"subjectId","label-width":e.formLabelWidth}},[a("el-select",{attrs:{filterable:"",disabled:"",placeholder:"请选择声部组合",clearable:""},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 a("el-option-group",{key:t.label,attrs:{label:t.label}},e._l(t.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)})),1)],1):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"折扣(%)",prop:"goodsDiscountRate","label-width":e.formLabelWidth}},[a("el-input",{staticClass:"number-input",attrs:{autocomplete:"off",type:"number",placeholder:"请输入折扣 0%-100%","controls-position":"right",min:"0",max:"100"},model:{value:e.form.goodsDiscountRate,callback:function(t){e.$set(e.form,"goodsDiscountRate","string"===typeof t?t.trim():t)},expression:"form.goodsDiscountRate"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.typeStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTypesSubmit("ruleForm")}}},[e._v("确 定")])],1)],1),e._v(" "),a("el-dialog",{attrs:{visible:e.createVisible,title:"添加商品折扣",width:"400px"},on:{"update:visible":function(t){e.createVisible=t}}},[a("createDiscount",{attrs:{typesList:e.typesList,subjectList:e.subjectList},on:{close:function(t){e.createVisible=!1},submited:e.getList}})],1)],1)},l=[],c=a("5530"),u=(a("ac6a"),a("96cf"),a("1da1")),p=(a("386d"),a("333d")),m=a("d349"),f=a("3c85"),d={name:"typesManager",components:{pagination:p["a"],createDiscount:f["a"]},data:function(){return{tableList:[],typesList:[],typesListById:{},subjectList:[],subjectListById:{},formActionTitle:"create",formTitle:{create:"添加折扣",update:"修改折扣"},createVisible:!1,typeStatus:!1,formLabelWidth:"100px",form:{name:null,subjectId:null,goodsDiscountRate:null},searchForm:{subjectId:null,chargeTypeId:null},rules:{chargeTypeId:[{required:!0,message:"请选择收费类型",trigger:"blur"}],subjectId:[{required:!0,message:"请选择声部组合",trigger:"change"}],goodsDiscountRate:[{required:!0,message:"请输入折扣",trigger:"blur"},{pattern:/^\d+(\.\d{1,8})?$/,message:"请输入正确的折扣"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList(),this.getChargeTypeList(),this.getSubjectTree()},methods:{search:function(){this.pageInfo.page=1,this.getList()},onReSet:function(){this.searchForm={subjectId:null,chargeTypeId:null},this.search()},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(m["w"])(t.form).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(m["I"])([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(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否删除此条数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:Object(m["n"])({id:t.id}).then((function(e){a.messageTips("删除",e)})),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(t){return e.apply(this,arguments)}return t}(),getChargeTypeList:function(){var e=this;Object(m["h"])({rows:9999,page:1}).then((function(t){if(200==t.code){var a={};t.data.rows.forEach((function(t){a[t.id]=t.name,e.typesList.push({label:t.name,value:t.id})})),e.typesListById=a}}))},getList:function(){var e=this;Object(m["k"])(Object(c["a"])({rows:this.pageInfo.limit,page:this.pageInfo.page},this.searchForm)).then((function(t){var a=t.data;e.tableList=a.rows,e.pageInfo.total=a.total}))},openTypes:function(e,t){this.typeStatus=!0,this.formActionTitle=e,"update"==e&&(this.form={id:t.id,chargeTypeId:t.chargeTypeId,subjectId:t.subjectId,goodsDiscountRate:t.goodsDiscountRate})},onFormClose:function(e){this.form={name:null,subjectId:null,goodsDiscountRate:null},this.$refs[e].resetFields()},getSubjectTree:function(){var e=this;Object(m["G"])({delFlag:"NO",rows:9999}).then((function(t){var a={},n=t.data;if(200==t.code){var r=[];n.rows.forEach((function(e,t){var n=[];e.subjects&&e.subjects.forEach((function(e){a[e.id]=e.name,n.push({value:e.id,label:e.name})})),r[t]={label:e.name,options:n}})),e.subjectListById=a,e.subjectList=r}}))}}},g=d,b=(a("63c8"),a("2877")),h=Object(b["a"])(g,s,l,!1,null,"1dd96e72",null),v=h.exports,y=a("b044"),_=a("baa9"),T=a("135b"),I=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("div",{staticClass:"m-core"},[e.$helpers.permission("organizationCloudTeacherFee/add")?a("el-button",{staticClass:"newBand",attrs:{type:"primary"},on:{click:function(t){return e.openTypes("create")}}},[e._v("添加")]):e._e(),e._v(" "),a("save-form",{attrs:{inline:!0,saveKey:"cloudTeacherFee",model:e.searchForm},on:{submit:e.onSearch}},[a("el-form-item",[a("el-select",{attrs:{placeholder:"请选择分部",clearable:""},model:{value:e.searchForm.organId,callback:function(t){e.$set(e.searchForm,"organId",t)},expression:"searchForm.organId"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger","native-type":"submit"}},[e._v("搜索")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"price",label:"云教练价格(元)"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyFormat")(t.row.price))+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"price"},scopedSlots:e._u([{key:"header",fn:function(){return[e._v("\n 云教练"),a("sup",[e._v("+")]),e._v("价格(元)\n ")]},proxy:!0},{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("moneyFormat")(t.row.plusPrice))+"\n ")]}}])}),e._v(" "),e.$helpers.permission("organizationCloudTeacherFee/update")?a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.openTypes("update",t.row)}}},[e._v("修改")])]}}],null,!1,3949815108)}):e._e()],1),e._v(" "),a("pagination",{attrs:{saveKey:"cloudTeacherFee",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"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)],1),e._v(" "),a("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")}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"分部",prop:"organId","label-width":e.formLabelWidth}},[a("el-select",{attrs:{placeholder:"请选择分部",disabled:"update"==e.formActionTitle},model:{value:e.form.organId,callback:function(t){e.$set(e.form,"organId",t)},expression:"form.organId"}},e._l(e.selects.branchs,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"云教练价格",prop:"price","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入价格",type:"number",autocomplete:"off"},model:{value:e.form.price,callback:function(t){e.$set(e.form,"price",e._n(t))},expression:"form.price"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"plusPrice","label-width":e.formLabelWidth},scopedSlots:e._u([{key:"label",fn:function(){return[e._v("\n 云教练"),a("sup",[e._v("+")]),e._v("价格\n ")]},proxy:!0}])},[e._v(" "),a("el-input",{attrs:{placeholder:"请输入价格",type:"number",autocomplete:"off"},model:{value:e.form.plusPrice,callback:function(t){e.$set(e.form,"plusPrice",e._n(t))},expression:"form.plusPrice"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.typeStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTypesSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)},j=[],L={name:"typesManager",components:{pagination:p["a"]},data:function(){return{tableList:[],searchForm:{organId:null},formActionTitle:"create",formTitle:{create:"添加分部云教练价格",update:"修改分部云教练价格"},typeStatus:!1,formLabelWidth:"120px",form:{organId:null,price:null,plusPrice:null},rules:{organId:[{required:!0,message:"请选择分部",trigger:"change"}],price:[{required:!0,message:"请输入价格",trigger:"blur"}],plusPrice:[{required:!0,message:"请输入价格",trigger:"blur"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.$store.dispatch("setBranchs"),this.getList()},methods:{onSearch:function(){this.pageInfo.page=1,this.getList()},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(m["B"])(t.form).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(m["D"])(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)},getList:function(){var e=Object(u["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(m["C"])(Object(c["a"])(Object(c["a"])({},this.searchForm),{},{rows:this.pageInfo.limit,page:this.pageInfo.page}));case 3:t=e.sent,a=t.data,this.tableList=a.rows,this.pageInfo.total=a.total,e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](0);case 11:case"end":return e.stop()}}),e,this,[[0,9]])})));function t(){return e.apply(this,arguments)}return t}(),openTypes:function(e,t){var a=this;this.typeStatus=!0,this.formActionTitle=e,"update"==e&&this.$nextTick((function(){a.form={id:t.id,organId:t.organId,price:t.price,plusPrice:t.plusPrice}}))},onFormClose:function(e){this.form={organId:null,price:null,plusPrice:null},this.$refs[e].resetFields()}}},w=L,x=(a("9413"),Object(b["a"])(w,I,j,!1,null,"8beb35b2",null)),k=x.exports,S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("div",{staticClass:"m-core"},[a("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(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[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",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"hotWordLabelManage/update",expression:"'hotWordLabelManage/update'"}],attrs:{type:"text"},on:{click:function(a){return e.openTypes("update",t.row)}}},[e._v("修改")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"hotWordLabelManage/del",expression:"'hotWordLabelManage/del'"}],attrs:{type:"text"},on:{click:function(a){return e.onTypesDel(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{attrs:{saveKey:"errorManager",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"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(" "),a("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")}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"热词内容",prop:"name","label-width":e.formLabelWidth}},[a("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(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.typeStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTypesSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)},$=[],F=a("99b4"),C={components:{pagination:p["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(F["v"])(t.form).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(F["x"])(t.form).then((function(e){t.messageTips("修改",e)}))}))},onTypesDel:function(e){var t=this;this.$confirm("是否确认删除热词标签","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(F["w"])(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(F["u"])({rows:this.pageInfo.limit,page:this.pageInfo.page}).then((function(t){var a=t.data;200==t.code&&(e.tableList=a.rows,e.pageInfo.total=a.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()}}},O=C,M=(a("161f"),Object(b["a"])(O,S,$,!1,null,"9dd4a572",null)),W=M.exports,A=a("ec8a"),z={components:{typesManager:o["default"],cloudTeacherFee:k,discountManage:v,jobTemplateSetting:T["default"],errorManager:W,chargesList:y["a"],musicCourseFee:_["a"],courseTimerSetting:i["a"]},name:"globalConfig",data:function(){return{activeIndex:"2",permissionList:{typesManager:Object(A["a"])("/globalConfig/typesManager"),cloudTeacherFee:Object(A["a"])("/globalConfig/cloudTeacherFee"),chargesList:Object(A["a"])("/globalConfig/chargesList"),jobTemplateSetting:Object(A["a"])("/globalConfig/jobTemplateSetting"),errorManager:Object(A["a"])("/globalConfig/errorManager"),musicCourseFee:Object(A["a"])("/globalConfig/musicCourseFee"),discountManage:Object(A["a"])("/globalConfig/discountManage"),courseTimerSetting:Object(A["a"])("/globalConfig/courseTimerSetting")}}},methods:{handleClick:function(e){this.activeIndex=e.name}}},D=z,E=(a("301e"),Object(b["a"])(D,n,r,!1,null,"7dae4cc7",null));t["default"]=E.exports},"301e":function(e,t,a){"use strict";a("184f")},"4f95":function(e,t,a){"use strict";a("b309")},"63c8":function(e,t,a){"use strict";a("be6e")},9378:function(e,t,a){},9413:function(e,t,a){"use strict";a("dffa")},b309:function(e,t,a){},be6e:function(e,t,a){},d669:function(e,t,a){},dffa:function(e,t,a){},f946:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[a("div",{staticClass:"m-core"},[a("div",{directives:[{name:"permission",rawName:"v-permission",value:"chargeType/upSet/createSet",expression:"'chargeType/upSet/createSet'"}],staticClass:"newBand",on:{click:function(t){return e.openTypes("create")}}},[e._v("添加")]),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"name",label:"收费类型"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"description",label:"缴费名目"}}),e._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"chargeType/upSet/updateSet",expression:"'chargeType/upSet/updateSet'"}],attrs:{type:"text"},on:{click:function(a){return e.openTypes("update",t.row)}}},[e._v("修改")]),e._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"chargeType/del",expression:"'chargeType/del'"}],attrs:{slot:"reference",type:"text"},on:{click:function(a){return e.onTypesDel(t.row)}},slot:"reference"},[e._v("删除")])]}}])})],1),e._v(" "),a("pagination",{attrs:{saveKey:"typesManager",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"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(" "),a("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")}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"收费类型",prop:"name","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入收费类型",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(" "),a("el-form-item",{attrs:{label:"缴费名目",prop:"description","label-width":e.formLabelWidth}},[a("el-input",{attrs:{placeholder:"请输入缴费名目",autocomplete:"off"},model:{value:e.form.description,callback:function(t){e.$set(e.form,"description","string"===typeof t?t.trim():t)},expression:"form.description"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.typeStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onTypesSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)},r=[],o=(a("7f7f"),a("96cf"),a("1da1")),i=a("333d"),s=a("d349"),l={name:"typesManager",components:{pagination:i["a"]},data:function(){return{tableList:[],subjectList:[],formActionTitle:"create",formTitle:{create:"添加收费类型",update:"修改收费类型"},typeStatus:!1,formLabelWidth:"100px",form:{name:null,description:null},rules:{name:[{required:!0,message:"请输入类型名称",trigger:"blur"}],description:[{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(s["l"])(t.form).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(s["l"])(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(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.$confirm("是否确认删除此条数据?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:Object(s["g"])(t.id).then((function(e){a.messageTips("删除",e)})),e.next=8;break;case 6:e.prev=6,e.t0=e["catch"](0);case 8:case"end":return e.stop()}}),e,this,[[0,6]])})));function t(t){return e.apply(this,arguments)}return t}(),getList:function(){var e=this;Object(s["h"])({rows:this.pageInfo.limit,page:this.pageInfo.page}).then((function(t){var a=t.data;200==t.code&&(e.tableList=a.rows,e.pageInfo.total=a.total)}))},openTypes:function(e,t){var a=this;this.typeStatus=!0,this.formActionTitle=e,"update"==e&&this.$nextTick((function(){a.form={id:t.id,name:t.name,description:t.description}}))},onFormClose:function(e){this.form={name:null,description:null},this.$refs[e].resetFields()}}},c=l,u=(a("4f95"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"ccfac34c",null);t["default"]=p.exports}}]);