chunk-051462aa.a433de44.js 10 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-051462aa"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",function(){return i}),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 r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,n){var i=o(),u=e-i,s=20,c=0;t="undefined"===typeof t?500:t;var l=function e(){c+=s;var o=Math.easeInOutQuad(c,i,u,t);r(o),c<t?a(e):n&&"function"===typeof n&&n()};l()}},"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)},r=[],o=(n("c5f6"),n("09f4")),i={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(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(o["a"])(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&Object(o["a"])(0,800)}}},u=i,s=(n("c0b9"),n("2877")),c=Object(s["a"])(u,a,r,!1,null,"31cb099a",null);t["a"]=c.exports},b2f5:function(e,t,n){},b370:function(e,t,n){"use strict";var a=n("b2f5"),r=n.n(a);r.a},c0b9:function(e,t,n){"use strict";var a=n("fa3b"),r=n.n(a);r.a},d349:function(e,t,n){"use strict";n.d(t,"c",function(){return u}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return c}),n.d(t,"a",function(){return l}),n.d(t,"n",function(){return p}),n.d(t,"r",function(){return f}),n.d(t,"s",function(){return d}),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,"q",function(){return y}),n.d(t,"o",function(){return v}),n.d(t,"p",function(){return j}),n.d(t,"h",function(){return T}),n.d(t,"i",function(){return w}),n.d(t,"j",function(){return O}),n.d(t,"g",function(){return S}),n.d(t,"m",function(){return _});var a=n("b775"),r=n("4328"),o=n.n(r),i="/api-web";function u(e){return Object(a["a"])({url:i+"/organization/queryPage",method:"get",params:e})}function s(e){return Object(a["a"])({url:i+"/organization/add",method:"post",data:o.a.stringify(e)})}function c(e){return Object(a["a"])({url:i+"/organization/update",method:"post",data:o.a.stringify(e)})}function l(e){return Object(a["a"])({url:i+"/area/queryChild",method:"get",params:e})}function p(e){return Object(a["a"])({url:i+"/area/getParentArea/".concat(e.id),method:"get"})}function f(e){return Object(a["a"])({url:i+"/subject/queryPageTree",method:"get",params:e})}function d(e){return Object(a["a"])({url:i+"/subject/upset",method:"post",data:e})}function m(e){return Object(a["a"])({url:i+"/chargeType/queryPage",method:"get",params:e})}function g(e){return Object(a["a"])({url:i+"/chargeType/upSet",method:"post",data:e})}function b(e){return Object(a["a"])({url:i+"/chargeType/del/".concat(e),method:"post"})}function h(e){return Object(a["a"])({url:i+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function y(e){return Object(a["a"])({url:i+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(e)})}function v(e){return Object(a["a"])({url:i+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(e)})}function j(e){return Object(a["a"])({url:i+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function T(e){return Object(a["a"])({url:i+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(e)})}function w(e){return Object(a["a"])({url:i+"/chargeTypeOrganizationFee/delete",method:"post",data:o.a.stringify(e)})}function O(e){return Object(a["a"])({url:i+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(e)})}function S(e){return Object(a["a"])({url:i+"/chargeTypeOrganizationFee/queryPage",method:"get",params:e})}function _(e){return Object(a["a"])({url:i+"/employee/findEducationTeacher",method:"get",params:e})}},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)},r=[],o=(n("7f7f"),n("ac6a"),n("333d")),i=n("d349"),u={name:"typesManager",components:{pagination:o["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(i["k"])(t.form).then(function(e){t.messageTips("添加",e)})):"update"==t.formActionTitle&&Object(i["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(i["e"])(e.id).then(function(e){t.messageTips("删除",e)})},getList:function(){var e=this;Object(i["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(i["r"])({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}})}}},s=u,c=(n("b370"),n("2877")),l=Object(c["a"])(s,a,r,!1,null,"768ca9e7",null);t["default"]=l.exports},fa3b:function(e,t,n){}}]);