chunk-e0b29a98.39fe407d.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e0b29a98"],{"09f4":function(t,e,r){"use strict";r.d(e,"a",function(){return u}),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 u(t,e,r){var u=o(),i=t-u,c=20,l=0;e="undefined"===typeof e?500:e;var s=function t(){l+=c;var o=Math.easeInOutQuad(l,u,i,e);a(o),l<e?n(t):r&&"function"===typeof r&&r()};s()}},"2d60":function(t,e,r){},"333d":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[r("el-pagination",t._b({attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},a=[],o=(r("c5f6"),r("09f4")),u={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(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(o["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(o["a"])(0,800)}}},i=u,c=(r("c0b9"),r("2877")),l=Object(c["a"])(i,n,a,!1,null,"31cb099a",null);e["a"]=l.exports},"99b4":function(t,e,r){"use strict";r.d(e,"a",function(){return i}),r.d(e,"c",function(){return c}),r.d(e,"b",function(){return l}),r.d(e,"t",function(){return s}),r.d(e,"r",function(){return d}),r.d(e,"y",function(){return f}),r.d(e,"x",function(){return m}),r.d(e,"z",function(){return p}),r.d(e,"s",function(){return g}),r.d(e,"h",function(){return h}),r.d(e,"j",function(){return b}),r.d(e,"m",function(){return y}),r.d(e,"i",function(){return v}),r.d(e,"v",function(){return O}),r.d(e,"k",function(){return j}),r.d(e,"w",function(){return _}),r.d(e,"u",function(){return w}),r.d(e,"d",function(){return L}),r.d(e,"f",function(){return q}),r.d(e,"e",function(){return S}),r.d(e,"g",function(){return k}),r.d(e,"n",function(){return z}),r.d(e,"o",function(){return I}),r.d(e,"q",function(){return C}),r.d(e,"p",function(){return T}),r.d(e,"l",function(){return P});var n=r("b775"),a=r("4328"),o=r.n(a),u="/api-web";function i(t){return Object(n["a"])({url:u+"/cooperationOrgan/add",method:"post",data:o.a.stringify(t)})}function c(t){return Object(n["a"])({url:u+"/cooperationOrgan/update",method:"put",data:o.a.stringify(t)})}function l(t){return Object(n["a"])({url:u+"/cooperationOrgan/del/".concat(t),method:"post"})}function s(t){return Object(n["a"])({url:u+"/cooperationOrgan/queryPage",method:"get",params:t})}function d(t){return Object(n["a"])({url:u+"/cooperationOrgan/queryByOrganId",method:"get",params:t})}function f(t){return Object(n["a"])({url:u+"/school/queryPage",method:"get",params:t})}function m(t){return Object(n["a"])({url:u+"/school/add",method:"post",data:o.a.stringify(t)})}function p(t){return Object(n["a"])({url:u+"/school/update",method:"post",data:o.a.stringify(t)})}function g(t){return Object(n["a"])({url:u+"/employee/queryEmployByOrganId",method:"get",params:t})}function h(t){return Object(n["a"])({url:u+"/employee/add",method:"post",data:t})}function b(t){return Object(n["a"])({url:u+"/employee/update",method:"post",data:t})}function y(t){return Object(n["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function v(t){return Object(n["a"])({url:u+"/employee/employeeOperate",method:"post",data:o.a.stringify(t)})}function O(t){return Object(n["a"])({url:"/api-auth/role/queryPage",method:"get",params:t})}function j(t){return Object(n["a"])({url:"/api-auth/role/".concat(t.id),method:"get"})}function _(t){return Object(n["a"])({url:"/api-auth/role/update",method:"post",data:t})}function w(t){return Object(n["a"])({url:"/api-auth/role/add",method:"post",data:t})}function L(t){return Object(n["a"])({url:u+"/courseScheduleRewards/queryPage",method:"get",params:t})}function q(t){return Object(n["a"])({url:u+"/courseScheduleRewards/query",method:"get",params:t})}function S(t){return Object(n["a"])({url:u+"/courseScheduleRewards/add",method:"post",data:o.a.stringify(t)})}function k(t){return Object(n["a"])({url:u+"/courseScheduleRewards/update",method:"post",data:o.a.stringify(t)})}function z(t){return Object(n["a"])({url:u+"/hotWordLabelManage/queryPage",method:"get",params:t})}function I(t){return Object(n["a"])({url:u+"/hotWordLabelManage/add",method:"post",data:o.a.stringify(t)})}function C(t){return Object(n["a"])({url:u+"/hotWordLabelManage/update",method:"post",data:o.a.stringify(t)})}function T(t){return Object(n["a"])({url:u+"/hotWordLabelManage/del/".concat(t),method:"post"})}function P(t){return Object(n["a"])({url:u+"/school/queryByOrganId",method:"get",params:t})}},"9b50":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("el-form",{staticClass:"searchForm",attrs:{inline:!0},nativeOn:{submit:function(t){t.preventDefault()}},model:{value:t.searchForm,callback:function(e){t.searchForm=e},expression:"searchForm"}},[r("el-form-item",[r("el-select",{model:{value:t.form.organIdLists,callback:function(e){t.$set(t.form,"organIdLists",e)},expression:"form.organIdLists"}},t._l(t.branchList,function(t){return r("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")])],1)],1),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:"realName",label:"分部"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"phone",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("joinArray")(e.row.roleNames,","))+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",width:"250px",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.roleOperation("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)],1),t._v(" "),r("el-dialog",{attrs:{title:"修改收费分润",visible:t.chargeStatus,width:"500px"},on:{"update:visible":function(e){t.chargeStatus=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-radio",{attrs:{label:"1"},model:{value:t.form.radio,callback:function(e){t.$set(t.form,"radio",e)},expression:"form.radio"}},[t._v("比例分润")]),t._v(" "),r("el-radio",{attrs:{label:"2"},model:{value:t.form.radio,callback:function(e){t.$set(t.form,"radio",e)},expression:"form.radio"}},[t._v("收费种类")])],1),t._v(" "),1==t.form.radio?r("div",[r("el-form-item",{attrs:{label:"公","label-width":t.formLabelWidth}},[r("el-input")],1),t._v(" "),r("el-form-item",{attrs:{label:"私","label-width":t.formLabelWidth}},[r("el-input")],1)],1):t._e(),t._v(" "),2==t.form.radio?r("div",[r("el-form-item",{attrs:{label:"课程","label-width":t.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择方式"},model:{value:t.form.course,callback:function(e){t.$set(t.form,"course",e)},expression:"form.course"}},[r("el-option",{attrs:{label:"公",value:"COM"}}),t._v(" "),r("el-option",{attrs:{label:"私",value:"PER"}})],1)],1),t._v(" "),r("el-form-item",{attrs:{label:"乐器","label-width":t.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择方式"},model:{value:t.form.instrment,callback:function(e){t.$set(t.form,"instrment",e)},expression:"form.instrment"}},[r("el-option",{attrs:{label:"公",value:"COM"}}),t._v(" "),r("el-option",{attrs:{label:"私",value:"PER"}})],1)],1),t._v(" "),r("el-form-item",{attrs:{label:"辅件","label-width":t.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择方式"},model:{value:t.form.accessories,callback:function(e){t.$set(t.form,"accessories",e)},expression:"form.accessories"}},[r("el-option",{attrs:{label:"公",value:"COM"}}),t._v(" "),r("el-option",{attrs:{label:"私",value:"PER"}})],1)],1),t._v(" "),r("el-form-item",{attrs:{label:"其它","label-width":t.formLabelWidth}},[r("el-select",{attrs:{placeholder:"请选择方式"},model:{value:t.form.other,callback:function(e){t.$set(t.form,"other",e)},expression:"form.other"}},[r("el-option",{attrs:{label:"公",value:"COM"}}),t._v(" "),r("el-option",{attrs:{label:"私",value:"PER"}})],1)],1)],1):t._e()],1),t._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.chargeStatus=!1}}},[t._v("取 消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onRoleSubmit("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")),u=r("99b4"),i=r("d349"),c=(r("4360"),{components:{pagination:o["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},chargeStatus:!0,roleList:[],branchList:[],formLabelWidth:"100px",form:{radio:"1",course:"COM",instrment:"COM",accessories:"COM",other:"COM"},rules:{realName:[{required:!0,message:"请输入姓名",trigger:"blur"}],gender:[{required:!0,message:"请选择性别",trigger:"change"}],phone:[{type:"number",required:!0,trigger:"blur"}],roleIds:[{type:"array",required:!0,message:"请选择分类",trigger:"change"}],organIdLists:[{type:"array",required:!0,message:"请选择所属部门",trigger:"change"}],jobNature:[{required:!0,message:"请选择工作类型",trigger:"change"}],entryDate:[{required:!0,message:"请选择入职时间",trigger:"blur"}]},searchForm:{search:null}}},mounted:function(){this.getList(),this.getRoleList()},methods:{onBranchCheckAll:function(){var t=this;this.form.organIdLists=[],this.branchList.forEach(function(e){t.form.organIdLists.push(e.value)})},onRoleSubmit:function(t){var e=this;this.$refs[t].validate(function(t){t&&(e.form.organIdList=e.form.organIdLists.join(","),"create"==e.formActionTitle?(e.form.id&&delete e.form.id,Object(u["h"])(e.form).then(function(t){e.messageTips("添加",t)})):"update"==e.formActionTitle&&Object(u["j"])(e.form).then(function(t){e.messageTips("修改",t)}))})},messageTips:function(t,e){200==e.code?(this.$message.success(t+"成功"),this.chargeStatus=!1,this.getList()):this.$message.error(e.msg)},search:function(){this.pageInfo.page=1,this.getList()},getList:function(){var t=this,e=this.searchForm;e.rows=this.pageInfo.limit,e.page=this.pageInfo.page,Object(u["s"])(e).then(function(e){200==e.code&&e.data&&(t.tableList=e.data.rows,t.pageInfo.total=e.data.total)})},getRoleList:function(){var t=this;Object(i["c"])({delFlag:0,rows:9999}).then(function(e){200==e.code&&e.data&&e.data.rows&&e.data.rows.forEach(function(e){t.branchList.push({label:e.name,value:e.id})})})},roleOperation:function(t,e){this.formActionTitle=t,this.chargeStatus=!0},onFormClose:function(t){this.form={},this.$refs[t].resetFields()}}}),l=c,s=(r("a2a2"),r("2877")),d=Object(s["a"])(l,n,a,!1,null,"89611290",null);e["default"]=d.exports},a2a2:function(t,e,r){"use strict";var n=r("2d60"),a=r.n(n);a.a},c0b9:function(t,e,r){"use strict";var n=r("de4e"),a=r.n(n);a.a},d349:function(t,e,r){"use strict";r.d(e,"c",function(){return i}),r.d(e,"b",function(){return c}),r.d(e,"d",function(){return l}),r.d(e,"a",function(){return s}),r.d(e,"m",function(){return d}),r.d(e,"r",function(){return f}),r.d(e,"s",function(){return m}),r.d(e,"f",function(){return p}),r.d(e,"k",function(){return g}),r.d(e,"e",function(){return h}),r.d(e,"l",function(){return b}),r.d(e,"p",function(){return y}),r.d(e,"n",function(){return v}),r.d(e,"o",function(){return O}),r.d(e,"q",function(){return j}),r.d(e,"h",function(){return _}),r.d(e,"i",function(){return w}),r.d(e,"j",function(){return L}),r.d(e,"g",function(){return q});var n=r("b775"),a=r("4328"),o=r.n(a),u="/api-web";function i(t){return Object(n["a"])({url:u+"/organization/queryPage",method:"get",params:t})}function c(t){return Object(n["a"])({url:u+"/organization/add",method:"post",data:o.a.stringify(t)})}function l(t){return Object(n["a"])({url:u+"/organization/update",method:"post",data:o.a.stringify(t)})}function s(t){return Object(n["a"])({url:u+"/area/queryChild",method:"get",params:t})}function d(t){return Object(n["a"])({url:u+"/area/getParentArea/".concat(t.id),method:"get"})}function f(t){return Object(n["a"])({url:u+"/subject/queryPageTree",method:"get",params:t})}function m(t){return Object(n["a"])({url:u+"/subject/upset",method:"post",data:t})}function p(t){return Object(n["a"])({url:u+"/chargeType/queryPage",method:"get",params:t})}function g(t){return Object(n["a"])({url:u+"/chargeType/upSet",method:"post",data:t})}function h(t){return Object(n["a"])({url:u+"/chargeType/del/".concat(t),method:"post"})}function b(t){return Object(n["a"])({url:u+"/courseHomeworkTemplate/queryPage",method:"post",data:t})}function y(t){return Object(n["a"])({url:u+"/courseHomeworkTemplate/update",method:"post",data:o.a.stringify(t)})}function v(t){return Object(n["a"])({url:u+"/courseHomeworkTemplate/add",method:"post",data:o.a.stringify(t)})}function O(t){return Object(n["a"])({url:u+"/courseHomeworkTemplate/del/".concat(t),method:"post"})}function j(t){return Object(n["a"])({url:u+"/courseScheduleRewards/queryOrganIdList",method:"get",params:t})}function _(t){return Object(n["a"])({url:u+"/chargeTypeOrganizationFee/add",method:"post",data:o.a.stringify(t)})}function w(t){return Object(n["a"])({url:u+"/chargeTypeOrganizationFee/delete",method:"post",data:o.a.stringify(t)})}function L(t){return Object(n["a"])({url:u+"/chargeTypeOrganizationFee/update",method:"post",data:o.a.stringify(t)})}function q(t){return Object(n["a"])({url:u+"/chargeTypeOrganizationFee/queryPage",method:"get",params:t})}},de4e:function(t,e,r){}}]);