chunk-750a1a3c.75c2e658.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-750a1a3c"],{"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()}},"66f4":function(t,e,r){"use strict";var n=r("900b"),a=r.n(n);a.a},"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("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:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"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:{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:"",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:"",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-input",{attrs:{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=(r("4360"),{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},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"}]}}},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["c"])(e.form).then(function(t){e.messageTips("添加",t)})):"update"==e.formActionTitle&&Object(i["e"])(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["d"])({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()},getAreaList:function(t,e){var r=this;t=t||0,Object(i["b"])({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["p"])({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}})})}}}),c=u,s=(r("66f4"),r("2877")),l=Object(s["a"])(c,n,a,!1,null,"05c0c116",null);e["default"]=l.exports},"900b":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})},d349:function(t,e,r){"use strict";r.d(e,"d",function(){return s}),r.d(e,"c",function(){return l}),r.d(e,"e",function(){return d}),r.d(e,"b",function(){return f}),r.d(e,"p",function(){return m}),r.d(e,"z",function(){return p}),r.d(e,"A",function(){return g}),r.d(e,"g",function(){return b}),r.d(e,"k",function(){return h}),r.d(e,"f",function(){return v}),r.d(e,"l",function(){return y}),r.d(e,"s",function(){return O}),r.d(e,"q",function(){return j}),r.d(e,"r",function(){return T}),r.d(e,"h",function(){return _}),r.d(e,"i",function(){return w}),r.d(e,"n",function(){return k}),r.d(e,"j",function(){return S}),r.d(e,"t",function(){return q}),r.d(e,"B",function(){return L}),r.d(e,"m",function(){return z}),r.d(e,"u",function(){return C}),r.d(e,"x",function(){return I}),r.d(e,"v",function(){return x}),r.d(e,"w",function(){return A}),r.d(e,"o",function(){return P}),r.d(e,"a",function(){return $}),r.d(e,"y",function(){return F});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 m(t){return Object(a["a"])({url:c+"/area/getParentArea/".concat(t.id),method:"get"})}function p(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 w(t){return Object(a["a"])({url:c+"/chargeTypeOrganizationFee/update",method:"post",data:u.a.stringify(t)})}function k(t){return Object(a["a"])({url:c+"/employee/findEducationTeacher",method:"get",params:t})}function S(t){return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:t,requestType:"form"})}function q(t){return Object(o["a"])({url:c+"/chargeTypeSubjectMapper/insert",method:"post",data:t})}function L(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 C(t){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/add",method:"post",data:t})}function I(t){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/update",method:"post",data:t})}function x(t){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:t,requestType:"form"})}function A(t){return Object(o["a"])({url:c+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:t,requestType:"form"})}function P(t){return Object(o["a"])({url:c+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:t,data:{},requestType:"form"})}function $(t){return Object(o["a"])({url:c+"/organizationCourseUnitPriceSettings/insert",method:"post",data:t})}function F(t){return Object(o["a"])({url:c+"/organizationCourseUnitPriceSettings/update",method:"post",data:t})}}}]);