1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cc293cda"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,r,n){return e/=n/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(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,r){var i=o(),u=e-i,c=20,s=0;t="undefined"===typeof t?500:t;var l=function e(){s+=c;var o=Math.easeInOutQuad(s,i,u,t);a(o),s<t?n(e):r&&"function"===typeof r&&r()};l()}},"15fd":function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function a(e,t){if(null==e)return{};var r,a,o=n(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,"a",(function(){return a}))},"4f7e":function(e,t,r){"use strict";r("5d2b")},"5d2b":function(e,t,r){},"78ff":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("div",{directives:[{name:"permission",rawName:"v-permission",value:"organization/add",expression:"'organization/add'"}],staticClass:"newBand",on:{click:function(t){return e.onBranchOperation("create")}}},[e._v("添加")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"id",label:"分部编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"name",label:"分部名称"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"areaName",label:"城市"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",prop:"address",label:"分部地址"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"学年制"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("gradeTypeFormat")(t.row.gradeType))+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"成立时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("formatTimer")(t.row.registerDate))+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"organization/update",expression:"'organization/update'"}],attrs:{type:"text"},on:{click:function(r){return e.onBranchOperation("update",t.row)}}},[e._v("修改")])]}}])})],1),e._v(" "),r("pagination",{attrs:{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(" "),r("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.branchStatus,width:"500px"},on:{"update:visible":function(t){e.branchStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[r("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[r("el-form-item",{attrs:{label:"分部名称",prop:"name","label-width":e.formLabelWidth}},[r("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(" "),r("el-form-item",{attrs:{label:"城市",required:"","label-width":e.formLabelWidth}},[r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"province"}},[r("el-select",{attrs:{filterable:"",placeholder:"请选择省",clearable:""},on:{change:e.onChangeProvince},model:{value:e.form.province,callback:function(t){e.$set(e.form,"province","string"===typeof t?t.trim():t)},expression:"form.province"}},e._l(e.provinceList,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1),e._v(" "),r("el-col",{attrs:{span:12}},[r("el-form-item",{attrs:{prop:"city"}},[r("el-select",{attrs:{filterable:"",placeholder:"请选择市",clearable:""},model:{value:e.form.city,callback:function(t){e.$set(e.form,"city","string"===typeof t?t.trim():t)},expression:"form.city"}},e._l(e.cityList,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"学年制",prop:"address","label-width":e.formLabelWidth}},[r("el-select",{attrs:{filterable:"",placeholder:"请选择学年制",clearable:""},model:{value:e.form.gradeType,callback:function(t){e.$set(e.form,"gradeType","string"===typeof t?t.trim():t)},expression:"form.gradeType"}},[r("el-option",{attrs:{label:"6+3",value:"SIX_PLUS"}}),e._v(" "),r("el-option",{attrs:{label:"5+4",value:"FIVE_PLUS"}})],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"分部地址",prop:"address","label-width":e.formLabelWidth}},[r("el-input",{attrs:{placeholder:"请输入分部地址",autocomplete:"off"},model:{value:e.form.address,callback:function(t){e.$set(e.form,"address","string"===typeof t?t.trim():t)},expression:"form.address"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"成立时间",prop:"registerDate","label-width":e.formLabelWidth}},[r("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd","picker-options":{firstDayOfWeek:1},placeholder:"选择成立时间"},model:{value:e.form.registerDate,callback:function(t){e.$set(e.form,"registerDate","string"===typeof t?t.trim():t)},expression:"form.registerDate"}})],1)],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.branchStatus=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onBranchSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("分部管理\n ")])}],o=(r("7f7f"),r("ac6a"),r("333d")),i=r("d349"),u={name:"branchSetting",components:{pagination:o["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},organId:null,formActionTitle:"create",formTitle:{create:"添加分部",update:"修改分部"},formLabelWidth:"100px",branchStatus:!1,provinceList:[],cityList:[],form:{name:null,province:null,city:null,address:null,registerDate:null,gradeType:"SIX_PLUS"},rules:{name:[{required:!0,message:"请输入分部名称",trigger:"blur"}],province:[{required:!0,message:"请选择省",trigger:"change"}],city:[{required:!0,message:"请选择市",trigger:"change"}],address:[{required:!0,message:"请输入分部地址",trigger:"blur"}],registerDate:[{required:!0,message:"请选择成立时间",trigger:"change"}],gradeType:[{required:!0,message:"请选择学年制",trigger:"change"}]}}},mounted:function(){this.getList(),this.getAreaList()},methods:{onBranchSubmit:function(e){var t=this;this.$refs[e].validate((function(e){e&&(t.form.areaId=t.form.city,"create"==t.formActionTitle?(t.form.id&&delete t.form.id,Object(i["d"])(t.form).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(i["f"])(t.form).then((function(e){t.messageTips("修改",e)})))}))},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.branchStatus=!1,this.getList()):this.$message.error(t.msg)},getList:function(){var e=this;Object(i["e"])({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.$refs[e].resetFields(),this.form.gradeType="SIX_PLUS"},getAreaList:function(e,t){var r=this;e=e||0,Object(i["c"])({parentId:e}).then((function(n){if(200==n.code&&n.data){var a=[];n.data.forEach((function(e){a.push({label:e.name,value:e.id})})),e?r.cityList=a:r.provinceList=a,t&&"function"==typeof t&&t()}}))},onChangeProvince:function(e){this.form.city=null,this.getAreaList(e)},onBranchOperation:function(e,t){var r=this;this.formActionTitle=e,this.branchStatus=!0,"update"==e&&Object(i["s"])({id:t.areaId}).then((function(e){200==e.code&&e.data&&r.getAreaList(e.data.id,(function(){r.form={id:t.id,name:t.name,province:e.data.id,city:t.areaId,address:t.address,registerDate:t.registerDate,gradeType:1==t.gradeType?"FIVE_PLUS":"SIX_PLUS"}}))}))}}},c=u,s=(r("4f7e"),r("2877")),l=Object(s["a"])(c,n,a,!1,null,"09426f7f",null);t["default"]=l.exports},d349:function(e,t,r){"use strict";r.d(t,"e",(function(){return s})),r.d(t,"d",(function(){return l})),r.d(t,"f",(function(){return d})),r.d(t,"c",(function(){return f})),r.d(t,"s",(function(){return p})),r.d(t,"G",(function(){return m})),r.d(t,"H",(function(){return g})),r.d(t,"h",(function(){return b})),r.d(t,"l",(function(){return h})),r.d(t,"g",(function(){return y})),r.d(t,"m",(function(){return v})),r.d(t,"v",(function(){return O})),r.d(t,"t",(function(){return j})),r.d(t,"u",(function(){return T})),r.d(t,"i",(function(){return _})),r.d(t,"j",(function(){return S})),r.d(t,"p",(function(){return w})),r.d(t,"k",(function(){return k})),r.d(t,"w",(function(){return L})),r.d(t,"I",(function(){return q})),r.d(t,"n",(function(){return z})),r.d(t,"x",(function(){return C})),r.d(t,"A",(function(){return I})),r.d(t,"y",(function(){return P})),r.d(t,"z",(function(){return F})),r.d(t,"r",(function(){return D})),r.d(t,"b",(function(){return x})),r.d(t,"F",(function(){return $})),r.d(t,"q",(function(){return A})),r.d(t,"E",(function(){return E})),r.d(t,"a",(function(){return U})),r.d(t,"o",(function(){return M})),r.d(t,"C",(function(){return W})),r.d(t,"B",(function(){return B})),r.d(t,"D",(function(){return G}));var n=r("15fd"),a=r("b775"),o=r("829b"),i=r("4328"),u=r.n(i),c="/api-web";function s(e){return Object(a["a"])({url:c+"/organization/queryPage",method:"get",params:e})}function l(e){return Object(a["a"])({url:c+"/organization/add",method:"post",data:u.a.stringify(e)})}function d(e){return Object(a["a"])({url:c+"/organization/update",method:"post",data:u.a.stringify(e)})}function f(e){return Object(a["a"])({url:c+"/area/queryChild",method:"get",params:e})}function p(e){return Object(a["a"])({url:c+"/area/getParentArea/".concat(e.id),method:"get"})}function m(e){return Object(a["a"])({url:c+"/subject/queryPageTree",method:"get",params:e})}function g(e){return Object(a["a"])({url:c+"/subject/upset",method:"post",data:e})}function b(e){return Object(a["a"])({url:c+"/chargeType/queryPage",method:"get",params:e})}function h(e){return Object(a["a"])({url:c+"/chargeType/upSet",method:"post",data:e})}function y(e){return Object(a["a"])({url:c+"/chargeType/del/".concat(e),method:"post"})}function v(e){return Object(a["a"])({url:c+"/courseHomeworkTemplate/queryPage",method:"post",data:e})}function O(e){return Object(a["a"])({url:c+"/courseHomeworkTemplate/update",method:"post",data:u.a.stringify(e)})}function j(e){return Object(a["a"])({url:c+"/courseHomeworkTemplate/add",method:"post",data:u.a.stringify(e)})}function T(e){return Object(a["a"])({url:c+"/courseHomeworkTemplate/del/".concat(e),method:"post"})}function _(e){return Object(a["a"])({url:c+"/chargeTypeOrganizationFee/add",method:"post",data:u.a.stringify(e)})}function S(e){return Object(a["a"])({url:c+"/chargeTypeOrganizationFee/update",method:"post",data:u.a.stringify(e)})}function w(e){return Object(a["a"])({url:c+"/employee/findEducationTeacher",method:"get",params:e})}function k(e){return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:e,requestType:"form"})}function L(e){return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/insert",method:"post",data:e})}function q(e){return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/update",method:"post",data:e})}function z(e){var t=e.id,r=Object(n["a"])(e,["id"]);return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/del/"+t,method:"post",params:r})}function C(e){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/add",method:"post",data:e})}function I(e){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/update",method:"post",data:e})}function P(e){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:e,requestType:"form"})}function F(e){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:e,requestType:"form"})}function D(e){return Object(o["a"])({url:c+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:e,data:{},requestType:"form"})}function x(e){return Object(o["a"])({url:c+"/organizationCourseUnitPriceSettings/insert",method:"post",data:e})}function $(e){return Object(o["a"])({url:c+"/organizationCourseUnitPriceSettings/update",method:"post",data:e})}function A(e){return Object(o["a"])({url:c+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:e})}function E(e){return Object(o["a"])({url:c+"/organizationCourseDurationSettings/update",method:"post",params:e})}function U(e){return Object(o["a"])({url:c+"/organizationCourseDurationSettings/insert",method:"post",params:e})}function M(e){return Object(o["a"])({url:c+"/organizationCourseDurationSettings/del",method:"post",data:e})}function W(e){return Object(o["a"])({url:c+"/organizationCloudTeacherFee/queryPage",method:"get",params:e})}function B(e){return Object(o["a"])({url:c+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:e})}function G(e){return Object(o["a"])({url:c+"/organizationCloudTeacherFee/update",method:"post",requestType:"form",data:e})}}}]);
|