chunk-641eb43e.adcf0cb8.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-641eb43e"],{"007f":function(e,t,a){},"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)])},o=[],r=(a("7f7f"),a("333d")),i=a("d349"),s={components:{pagination:r["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["p"])(t.form).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&("MIX"==t.form.classGroupType&&(t.form.subjectId=""),Object(i["r"])(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["q"])(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["j"])({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("a993"),a("2877")),u=Object(c["a"])(l,n,o,!1,null,"37fda16d",null);t["default"]=u.exports},"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)])},o=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n 乐团参数设置\n ")])}],r=(a("7f7f"),a("f946")),i=a("b58c"),s=a("a4ed"),l=a("b044"),c=a("baa9"),u=a("135b"),p=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)},m=[],f=a("c80c"),d=a("db72"),g=(a("96cf"),a("3b8d")),b=a("333d"),v=a("d349"),h={name:"typesManager",components:{pagination:b["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(v["x"])(t.form).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(v["z"])(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(g["a"])(Object(f["a"])().mark((function e(){var t,a;return Object(f["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(v["y"])(Object(d["a"])(Object(d["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()}}},_=h,y=(a("b620"),a("2877")),T=Object(y["a"])(_,p,m,!1,null,"375b9176",null),I=T.exports,j=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)},x=[],w=a("99b4"),L={components:{pagination:b["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(w["x"])(t.form).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(w["z"])(t.form).then((function(e){t.messageTips("修改",e)}))}))},onTypesDel:function(e){var t=this;this.$confirm("是否确认删除热词标签","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(w["y"])(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(w["w"])({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()}}},k=L,S=(a("fc4c"),Object(y["a"])(k,j,x,!1,null,"bed9a38a",null)),C=S.exports,F=a("ec8a"),$={components:{typesManager:r["default"],cloudTeacherFee:I,discountManage:s["a"],jobTemplateSetting:u["default"],errorManager:C,chargesList:l["a"],musicCourseFee:c["a"],courseTimerSetting:i["a"]},name:"globalConfig",data:function(){return{activeIndex:"2",permissionList:{typesManager:Object(F["a"])("/globalConfig/typesManager"),cloudTeacherFee:Object(F["a"])("/globalConfig/cloudTeacherFee"),chargesList:Object(F["a"])("/globalConfig/chargesList"),jobTemplateSetting:Object(F["a"])("/globalConfig/jobTemplateSetting"),errorManager:Object(F["a"])("/globalConfig/errorManager"),musicCourseFee:Object(F["a"])("/globalConfig/musicCourseFee"),discountManage:Object(F["a"])("/globalConfig/discountManage"),courseTimerSetting:Object(F["a"])("/globalConfig/courseTimerSetting")}}},methods:{handleClick:function(e){this.activeIndex=e.name}}},O=$,M=(a("f363"),Object(y["a"])(O,n,o,!1,null,"610592e2",null));t["default"]=M.exports},a993:function(e,t,a){"use strict";a("f327")},b620:function(e,t,a){"use strict";a("007f")},e262:function(e,t,a){},ebbc:function(e,t,a){},f327:function(e,t,a){},f363:function(e,t,a){"use strict";a("ebbc")},fc4c:function(e,t,a){"use strict";a("e262")}}]);