chunk-053528f1.a37b71b6.js 13 KB

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