1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ae5f289a"],{"0938":function(t,e,n){"use strict";var r=n("292d"),u=n.n(r);u.a},"09f4":function(t,e,n){"use strict";n.d(e,"a",function(){return o}),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 u(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,n){var o=a(),i=t-o,c=20,s=0;e="undefined"===typeof e?500:e;var d=function t(){s+=c;var a=Math.easeInOutQuad(s,o,i,e);u(a),s<e?r(t):n&&"function"===typeof n&&n()};d()}},"0d9e":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"},[n("div",{staticClass:"m-core"},[n("el-row",{staticClass:"music-title"},[n("el-col",{attrs:{span:6}},[t._v("\n 一级分类\n "),n("el-popover",{directives:[{name:"permission",rawName:"v-permission",value:"subject/upset",expression:"'subject/upset'"}],attrs:{placement:"right",width:"300",trigger:"click"}},[n("el-input",{staticStyle:{width:"73%"},attrs:{size:"medium",autocomplete:"off"},model:{value:t.oneTypeName,callback:function(e){t.oneTypeName="string"===typeof e?e.trim():e},expression:"oneTypeName"}}),t._v(" "),n("el-button",{staticStyle:{margin:"0"},attrs:{type:"primary",size:"medium"},on:{click:t.onAddMusic}},[t._v("提交")]),t._v(" "),n("el-button",{attrs:{slot:"reference",type:"primary",size:"mini",round:"",icon:"el-icon-plus"},slot:"reference"},[t._v("添加")])],1)],1),t._v(" "),n("el-col",{attrs:{span:18}},[t._v("\n 二级分类\n ")])],1),t._v(" "),t._l(t.subjectList,function(e,r){return n("el-row",{key:e.id},[n("el-col",{attrs:{span:6}},[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"subject/upset",expression:"'subject/upset'"}],attrs:{icon:"el-icon-delete",circle:""},on:{click:function(n){return t.subjectDelete(e)}}}),t._v(" "),n("span",{staticClass:"one_name"},[t._v(t._s(e.name))])],1),t._v(" "),n("el-col",{staticClass:"tow_col",attrs:{span:18}},[t._l(e.subjects,function(e){return n("el-tag",{key:e.id,attrs:{type:"info",effect:"dark",closable:"","disable-transitions":!1},on:{close:function(n){return t.subjectDelete(e)}}},[t._v(" "+t._s(e.name))])}),t._v(" "),n("span",{staticStyle:{display:"inline-block"}},[e.inputStatus?n("el-input",{key:"tag",ref:"saveTagInput",refInFor:!0,staticClass:"input-new-tag",attrs:{size:"small"},model:{value:t.inputValue[r],callback:function(e){t.$set(t.inputValue,r,"string"===typeof e?e.trim():e)},expression:"inputValue[index]"}}):n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"subject/upset",expression:"'subject/upset'"}],key:"tag",attrs:{type:"primary",size:"mini",round:"",icon:"el-icon-plus"},on:{click:function(t){e.inputStatus=!0}}},[t._v("添加")]),t._v(" "),e.inputStatus?n("el-button",{attrs:{type:"info",size:"mini",round:"",icon:"el-icon-check"},on:{click:function(n){return t.onSave(e,r)}}},[t._v("保存")]):t._e()],1)],2)],1)})],2)])},u=[],a=(n("ac6a"),n("333d")),o=n("d349"),i={components:{pagination:a["a"]},name:"musicalManager",data:function(){return{oneTypeName:null,subjectList:[],inputValue:[]}},mounted:function(){this.getList()},methods:{onAddMusic:function(){var t=this;this.oneTypeName&&Object(o["A"])({parentSubjectId:0,tenantId:1,name:this.oneTypeName}).then(function(e){t.messageTips("添加",e),200==e.code&&(t.oneTypeName=null)})},onSave:function(t,e){var n=this;this.inputValue[e]&&Object(o["A"])({parentSubjectId:t.id,tenantId:1,name:this.inputValue[e]}).then(function(t){n.messageTips("添加",t),200==t.code&&(n.inputValue[e]=null)})},subjectDelete:function(t){var e=this;Object(o["A"])({delFlag:"YES",id:t.id}).then(function(t){e.messageTips("删除",t)})},messageTips:function(t,e){200==e.code?(this.$message.success(t+"成功"),this.getList()):this.$message.error(e.msg)},getList:function(){var t=this;Object(o["z"])({delFlag:0,tenantId:1,rows:9999}).then(function(e){var n=e.data;if(200==e.code){var r=[];n.rows.forEach(function(t){t.inputStatus=!1,r.push(t)}),t.subjectList=r}})}}},c=i,s=(n("0938"),n("2877")),d=Object(s["a"])(c,r,u,!1,null,"3d9d5acc",null);e["default"]=d.exports},"292d":function(t,e,n){},a8db:function(t,e,n){"use strict";var r=n("e265"),u=n.n(r),a=n("a4bb"),o=n.n(a);function i(t,e){if(null==t)return{};var n,r,u={},a=o()(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(u[n]=t[n]);return u}function c(t,e){if(null==t)return{};var n,r,a=i(t,e);if(u.a){var o=u()(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}n.d(e,"a",function(){return c})},d349:function(t,e,n){"use strict";n.d(e,"d",function(){return s}),n.d(e,"c",function(){return d}),n.d(e,"e",function(){return p}),n.d(e,"b",function(){return l}),n.d(e,"p",function(){return f}),n.d(e,"z",function(){return m}),n.d(e,"A",function(){return b}),n.d(e,"g",function(){return g}),n.d(e,"k",function(){return h}),n.d(e,"f",function(){return y}),n.d(e,"l",function(){return j}),n.d(e,"s",function(){return v}),n.d(e,"q",function(){return O}),n.d(e,"r",function(){return T}),n.d(e,"h",function(){return w}),n.d(e,"i",function(){return S}),n.d(e,"n",function(){return _}),n.d(e,"j",function(){return k}),n.d(e,"t",function(){return z}),n.d(e,"B",function(){return q}),n.d(e,"m",function(){return C}),n.d(e,"u",function(){return N}),n.d(e,"x",function(){return P}),n.d(e,"v",function(){return x}),n.d(e,"w",function(){return A}),n.d(e,"o",function(){return I}),n.d(e,"a",function(){return M}),n.d(e,"y",function(){return F});var r=n("a8db"),u=n("b775"),a=n("829b"),o=n("4328"),i=n.n(o),c="/api-web";function s(t){return Object(u["a"])({url:c+"/organization/queryPage",method:"get",params:t})}function d(t){return Object(u["a"])({url:c+"/organization/add",method:"post",data:i.a.stringify(t)})}function p(t){return Object(u["a"])({url:c+"/organization/update",method:"post",data:i.a.stringify(t)})}function l(t){return Object(u["a"])({url:c+"/area/queryChild",method:"get",params:t})}function f(t){return Object(u["a"])({url:c+"/area/getParentArea/".concat(t.id),method:"get"})}function m(t){return Object(u["a"])({url:c+"/subject/queryPageTree",method:"get",params:t})}function b(t){return Object(u["a"])({url:c+"/subject/upset",method:"post",data:t})}function g(t){return Object(u["a"])({url:c+"/chargeType/queryPage",method:"get",params:t})}function h(t){return Object(u["a"])({url:c+"/chargeType/upSet",method:"post",data:t})}function y(t){return Object(u["a"])({url:c+"/chargeType/del/".concat(t),method:"post"})}function j(t){return Object(u["a"])({url:c+"/courseHomeworkTemplate/queryPage",method:"post",data:t})}function v(t){return Object(u["a"])({url:c+"/courseHomeworkTemplate/update",method:"post",data:i.a.stringify(t)})}function O(t){return Object(u["a"])({url:c+"/courseHomeworkTemplate/add",method:"post",data:i.a.stringify(t)})}function T(t){return Object(u["a"])({url:c+"/courseHomeworkTemplate/del/".concat(t),method:"post"})}function w(t){return Object(u["a"])({url:c+"/chargeTypeOrganizationFee/add",method:"post",data:i.a.stringify(t)})}function S(t){return Object(u["a"])({url:c+"/chargeTypeOrganizationFee/update",method:"post",data:i.a.stringify(t)})}function _(t){return Object(u["a"])({url:c+"/employee/findEducationTeacher",method:"get",params:t})}function k(t){return Object(a["a"])({url:c+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:t,requestType:"form"})}function z(t){return Object(a["a"])({url:c+"/chargeTypeSubjectMapper/insert",method:"post",data:t})}function q(t){return Object(a["a"])({url:c+"/chargeTypeSubjectMapper/update",method:"post",data:t})}function C(t){var e=t.id,n=Object(r["a"])(t,["id"]);return Object(a["a"])({url:c+"/chargeTypeSubjectMapper/del/"+e,method:"post",params:n})}function N(t){return Object(a["a"])({url:c+"/musicGroupOrganizationCourseSettings/add",method:"post",data:t})}function P(t){return Object(a["a"])({url:c+"/musicGroupOrganizationCourseSettings/update",method:"post",data:t})}function x(t){return Object(a["a"])({url:c+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:t,requestType:"form"})}function A(t){return Object(a["a"])({url:c+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:t,requestType:"form"})}function I(t){return Object(a["a"])({url:c+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:t,data:{},requestType:"form"})}function M(t){return Object(a["a"])({url:c+"/organizationCourseUnitPriceSettings/insert",method:"post",data:t})}function F(t){return Object(a["a"])({url:c+"/organizationCourseUnitPriceSettings/update",method:"post",data:t})}}}]);
|