chunk-5c915854.5dd617b4.js 9.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5c915854"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),Math.easeInOutQuad=function(t,e,n,r){return t/=r/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var r=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,n){var u=o(),i=t-u,c=20,s=0;e="undefined"===typeof e?500:e;var d=function t(){s+=c;var o=Math.easeInOutQuad(s,u,i,e);a(o),s<e?r(t):n&&"function"===typeof n&&n()};d()}},d349:function(t,e,n){"use strict";n.d(e,"e",(function(){return d})),n.d(e,"d",(function(){return l})),n.d(e,"f",(function(){return f})),n.d(e,"c",(function(){return m})),n.d(e,"o",(function(){return p})),n.d(e,"D",(function(){return g})),n.d(e,"E",(function(){return b})),n.d(e,"F",(function(){return h})),n.d(e,"i",(function(){return y})),n.d(e,"g",(function(){return j})),n.d(e,"j",(function(){return O})),n.d(e,"r",(function(){return v})),n.d(e,"p",(function(){return T})),n.d(e,"q",(function(){return C})),n.d(e,"h",(function(){return S})),n.d(e,"s",(function(){return w})),n.d(e,"G",(function(){return _})),n.d(e,"k",(function(){return q})),n.d(e,"t",(function(){return z})),n.d(e,"w",(function(){return k})),n.d(e,"u",(function(){return P})),n.d(e,"v",(function(){return F})),n.d(e,"n",(function(){return E})),n.d(e,"b",(function(){return L})),n.d(e,"C",(function(){return $})),n.d(e,"m",(function(){return x})),n.d(e,"B",(function(){return V})),n.d(e,"a",(function(){return D})),n.d(e,"l",(function(){return I})),n.d(e,"y",(function(){return M})),n.d(e,"x",(function(){return A})),n.d(e,"z",(function(){return G})),n.d(e,"A",(function(){return R}));var r=n("a8db"),a=n("b775"),o=n("829b"),u=n("4328"),i=n.n(u),c=["id"],s="/api-web";function d(t){return Object(a["a"])({url:s+"/organization/queryPage",method:"get",params:t})}function l(t){return Object(a["a"])({url:s+"/organization/add",method:"post",data:i.a.stringify(t)})}function f(t){return Object(a["a"])({url:s+"/organization/update",method:"post",data:i.a.stringify(t)})}function m(t){return Object(o["a"])({url:s+"/area/queryChild",method:"get",hideLoading:!0,params:t})}function p(t){return Object(a["a"])({url:s+"/area/getParentArea/".concat(t.id),method:"get"})}function g(t){return Object(a["a"])({url:s+"/subject/queryPageByIdOrName",method:"post",data:i.a.stringify(t)})}function b(t){return Object(a["a"])({url:s+"/subject/queryPageTree",method:"get",params:t})}function h(t){return Object(a["a"])({url:s+"/subject/upset",method:"post",data:t})}function y(t){return Object(a["a"])({url:s+"/chargeType/upSet",method:"post",data:t})}function j(t){return Object(a["a"])({url:s+"/chargeType/del/".concat(t),method:"post"})}function O(t){return Object(a["a"])({url:s+"/courseHomeworkTemplate/queryPage",method:"post",data:t})}function v(t){return Object(a["a"])({url:s+"/courseHomeworkTemplate/update",method:"post",data:i.a.stringify(t)})}function T(t){return Object(a["a"])({url:s+"/courseHomeworkTemplate/add",method:"post",data:i.a.stringify(t)})}function C(t){return Object(a["a"])({url:s+"/courseHomeworkTemplate/del/".concat(t),method:"post"})}function S(t){return Object(o["a"])({url:s+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:t,requestType:"form"})}function w(t){return Object(o["a"])({url:s+"/chargeTypeSubjectMapper/insert",method:"post",data:t})}function _(t){return Object(o["a"])({url:s+"/chargeTypeSubjectMapper/update",method:"post",data:t})}function q(t){var e=t.id,n=Object(r["a"])(t,c);return Object(o["a"])({url:s+"/chargeTypeSubjectMapper/del/"+e,method:"post",params:n})}function z(t){return Object(o["a"])({url:s+"/musicGroupOrganizationCourseSettings/add",method:"post",data:t})}function k(t){return Object(o["a"])({url:s+"/musicGroupOrganizationCourseSettings/update",method:"post",data:t})}function P(t){return Object(o["a"])({url:s+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:t,requestType:"form"})}function F(t){return Object(o["a"])({url:s+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:t,requestType:"form"})}function E(t){return Object(o["a"])({url:s+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:t,data:{},requestType:"form"})}function L(t){return Object(o["a"])({url:s+"/organizationCourseUnitPriceSettings/save",method:"post",data:t})}function $(t){return Object(o["a"])({url:s+"/organizationCourseUnitPriceSettings/update",method:"post",data:t})}function x(t){return Object(o["a"])({url:s+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:t})}function V(t){return Object(o["a"])({url:s+"/organizationCourseDurationSettings/update",method:"post",params:t})}function D(t){return Object(o["a"])({url:s+"/organizationCourseDurationSettings/insert",method:"post",params:t})}function I(t){return Object(o["a"])({url:s+"/organizationCourseDurationSettings/del",method:"post",data:t})}function M(t){return Object(o["a"])({url:s+"/organizationCloudTeacherFee/queryPage",method:"get",params:t})}function A(t){return Object(o["a"])({url:s+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:t})}function G(t){return Object(o["a"])({url:s+"/organizationCloudTeacherFee/update",method:"post",requestType:"form",data:t})}function R(t,e){return Object(o["a"])({url:s+"/organizationCourseUnitPriceSettings/querySingle/".concat(t,"/").concat(e),method:"get"})}},dabb:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("auth",{staticStyle:{"padding-bottom":"20px"},attrs:{auths:"subject/upset/insertCate"}},[n("el-button",{attrs:{type:"primary"},on:{click:t.addCategory}},[t._v("添加")])],1),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[n("el-table-column",{attrs:{align:"center",prop:"id",label:"分类编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"name",label:"分类名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"name",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("auth",{attrs:{auths:"subject/upset/resetCate"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.resetSubjectCategory(e.row)}}},[t._v("修改")])],1),t._v(" "),n("auth",{attrs:{auths:"subject/upset/delCate"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.removeSubjectCategory(e.row)}}},[t._v("删除")])],1)],1)]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.rules.total,page:t.rules.page,limit:t.rules.limit,"page-sizes":t.rules.page_size},on:{"update:total":function(e){return t.$set(t.rules,"total",e)},"update:page":function(e){return t.$set(t.rules,"page",e)},"update:limit":function(e){return t.$set(t.rules,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),t.categoryVisible?n("el-dialog",{attrs:{title:"修改分类",visible:t.categoryVisible,width:"500px"},on:{"update:visible":function(e){t.categoryVisible=e}}},[n("el-form",{ref:"form",attrs:{model:t.form,inline:!0}},[n("el-form-item",{attrs:{prop:"name",label:"分类名称",rules:{required:!0,message:"请输入分类名称",trigger:"change,blur"}}},[n("el-input",{model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.categoryVisible=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.submitReset}},[t._v("确 定")])],1)],1):t._e()],1)},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("\n 声部分类管理\n ")])}],o=(n("386d"),n("7f7f"),n("bc3a"),n("5f87"),n("333d")),u=(n("3908"),n("d349")),i={components:{pagination:o["a"]},data:function(){return{searchForm:{search:null},form:{name:null,id:null},tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},categoryVisible:!1}},created:function(){},mounted:function(){this.init()},methods:{init:function(){this.getList()},getList:function(){var t=this;Object(u["E"])({delFlag:"NO",tenantId:1,rows:this.rules.limit,page:this.rules.page}).then((function(e){200==e.code&&(t.tableList=e.data.rows,t.rules.total=e.data.total)}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){},resetSubjectCategory:function(t){console.log(t),this.form.name=t.name,this.form.id=t.id,this.categoryVisible=!0},removeSubjectCategory:function(t){var e=this;this.$confirm("是否确认删除分类","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(u["F"])({delFlag:"YES",id:t.id}).then((function(t){e.messageTips("删除",t),e.search()}))}))},messageTips:function(t,e){200==e.code?this.$message.success(t+"成功"):this.$message.error(e.msg)},submitReset:function(){var t=this;this.$refs.form.validate((function(e){e&&Object(u["F"])({parentSubjectId:0,tenantId:1,name:t.form.name,id:t.form.id}).then((function(e){200==e.code&&(t.messageTips("修改",e),t.categoryVisible=!1,t.getList())}))}))},addCategory:function(){this.form.id=null,this.form.name=null,this.categoryVisible=!0}}},c=i,s=n("2877"),d=Object(s["a"])(c,r,a,!1,null,"15298feb",null);e["default"]=d.exports}}]);