1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-035ef027"],{"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()}},aa6d: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("save-form",{ref:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[r("el-form-item",{attrs:{prop:"search"}},[r("el-input",{attrs:{clearable:"",placeholder:"请输入编号/名称"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:function(e){e.target.blur(),t.$refs.searchForm.save(),t.search()}(e)}},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search","string"===typeof e?e.trim():e)},expression:"searchForm.search"}})],1),t._v(" "),r("el-form-item",{attrs:{prop:"parentSubjectId"}},[r("el-select",{attrs:{placeholder:"选择声部分类",prop:"parentSubjectId",clearable:"",filterable:""},model:{value:t.searchForm.parentSubjectId,callback:function(e){t.$set(t.searchForm,"parentSubjectId",e)},expression:"searchForm.parentSubjectId"}},t._l(t.fatherList,(function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1)],1),t._v(" "),r("auth",{staticStyle:{"margin-bottom":"20px"},attrs:{auths:"subject/upset/insert"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.addCategory}},[t._v("添加")])],1),t._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList}},[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:"parentSubjectName",label:"所属分类"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"name",label:"声部图片"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.img?r("el-image",{staticStyle:{width:"60px",height:"60px"},attrs:{fit:"cover",src:e.row.img.split(",")[0],previewSrcList:e.row.img.split(",")}}):t._e()]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"name",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("auth",{attrs:{auths:"subject/upset/reset"}},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.resetSubjectCategory(e.row)}}},[t._v("修改")])],1),t._v(" "),r("auth",{attrs:{auths:"subject/upset/del"}},[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.removeSubjectCategory(e.row)}}},[t._v("删除")])],1)],1)]}}])})],1),t._v(" "),r("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?r("el-dialog",{attrs:{title:"修改分类",visible:t.categoryVisible,width:"500px"},on:{"update:visible":function(e){t.categoryVisible=e}}},[r("el-form",{ref:"form",attrs:{model:t.form,inline:!0}},[r("el-form-item",{attrs:{prop:"parentSubjectId",label:"所属分类",rules:[{required:!0,message:"请选择声部分类"}]}},[r("el-select",{staticStyle:{width:"365px!important"},attrs:{placeholder:"请选择所属分类",prop:"parentSubjectId",clearable:"",filterable:""},model:{value:t.form.parentSubjectId,callback:function(e){t.$set(t.form,"parentSubjectId",e)},expression:"form.parentSubjectId"}},t._l(t.fatherList,(function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{prop:"name",label:"声部名称",rules:{required:!0,message:"请输入声部名称",trigger:"change,blur"}}},[r("el-input",{staticStyle:{width:"365px!important"},attrs:{placeholder:"请输入声部名称"},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"声部图片",prop:"img",rules:[{required:!0,message:"请上传声部图片"}]}},[r("image-cropper",{attrs:{options:t.cropperOptions,imgSize:2,imageUrl:t.form.img},on:{"crop-upload-success":t.cropSuccess}}),t._v(" "),r("p",{staticStyle:{color:"red"}},[t._v("\n 仅支持图片格式:JPG、PNG、GIF, 大小2M以内;\n ")])],1)],1),t._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.categoryVisible=!1}}},[t._v("取 消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.submitReset}},[t._v("确 定")])],1)],1):t._e()],1)},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("h2",[r("div",{staticClass:"squrt"}),t._v("\n 声部设置\n ")])}],o=(r("7f7f"),r("386d"),r("db72")),i=r("333d"),u=r("896b"),c=r("d349"),s={components:{pagination:i["a"],ImageCropper:u["a"]},data:function(){return{searchForm:{search:null,parentSubjectId:null},form:{name:null,id:null,img:null,parentSubjectId:null},tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},categoryVisible:!1,fatherList:[],cropperOptions:{autoCrop:!0,autoCropWidth:260,autoCropHeight:260,fixedBox:!0,previewsCircle:!1,title:"声部图片"}}},created:function(){},mounted:function(){this.init()},methods:{init:function(){this.getList(),this.getFatherList()},getFatherList:function(){var t=this;Object(c["E"])({delFlag:"NO",rows:9999,page:1}).then((function(e){200==e.code&&(t.fatherList=e.data.rows)}))},getList:function(){var t=this;Object(c["D"])(Object(o["a"])(Object(o["a"])({},this.searchForm),{},{page:this.rules.page,rows:this.rules.limit})).then((function(e){t.tableList=e.data.rows,t.rules.total=e.data.total}))},search:function(){this.rules.page=1,this.getList()},onReSet:function(){var t=this;this.$nextTick((function(){t.search()}))},resetSubjectCategory:function(t){this.form.name=t.name,this.form.id=t.id,this.form.parentSubjectId=t.parentSubjectId,this.form.img=t.img,this.categoryVisible=!0},removeSubjectCategory:function(t){var e=this;this.$confirm("是否确认删除声部","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(c["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(c["F"])(Object(o["a"])({tenantId:1},t.form)).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.form.parentSubjectId=null,this.form.img=null,this.categoryVisible=!0},cropSuccess:function(t){this.form.img=t.data.url}}},l=s,d=r("2877"),p=Object(d["a"])(l,n,a,!1,null,"1c1b2305",null);e["default"]=p.exports},d349:function(t,e,r){"use strict";r.d(e,"e",(function(){return l})),r.d(e,"d",(function(){return d})),r.d(e,"f",(function(){return p})),r.d(e,"c",(function(){return m})),r.d(e,"o",(function(){return f})),r.d(e,"D",(function(){return g})),r.d(e,"E",(function(){return b})),r.d(e,"F",(function(){return h})),r.d(e,"i",(function(){return y})),r.d(e,"g",(function(){return j})),r.d(e,"j",(function(){return v})),r.d(e,"r",(function(){return O})),r.d(e,"p",(function(){return S})),r.d(e,"q",(function(){return _})),r.d(e,"h",(function(){return w})),r.d(e,"s",(function(){return C})),r.d(e,"G",(function(){return T})),r.d(e,"k",(function(){return k})),r.d(e,"t",(function(){return F})),r.d(e,"w",(function(){return q})),r.d(e,"u",(function(){return z})),r.d(e,"v",(function(){return I})),r.d(e,"n",(function(){return x})),r.d(e,"b",(function(){return L})),r.d(e,"C",(function(){return P})),r.d(e,"m",(function(){return $})),r.d(e,"B",(function(){return E})),r.d(e,"a",(function(){return G})),r.d(e,"l",(function(){return V})),r.d(e,"y",(function(){return D})),r.d(e,"x",(function(){return M})),r.d(e,"z",(function(){return N})),r.d(e,"A",(function(){return R}));var n=r("a8db"),a=r("b775"),o=r("829b"),i=r("4328"),u=r.n(i),c=["id"],s="/api-web";function l(t){return Object(a["a"])({url:s+"/organization/queryPage",method:"get",params:t})}function d(t){return Object(a["a"])({url:s+"/organization/add",method:"post",data:u.a.stringify(t)})}function p(t){return Object(a["a"])({url:s+"/organization/update",method:"post",data:u.a.stringify(t)})}function m(t){return Object(o["a"])({url:s+"/area/queryChild",method:"get",hideLoading:!0,params:t})}function f(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:u.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 v(t){return Object(a["a"])({url:s+"/courseHomeworkTemplate/queryPage",method:"post",data:t})}function O(t){return Object(a["a"])({url:s+"/courseHomeworkTemplate/update",method:"post",data:u.a.stringify(t)})}function S(t){return Object(a["a"])({url:s+"/courseHomeworkTemplate/add",method:"post",data:u.a.stringify(t)})}function _(t){return Object(a["a"])({url:s+"/courseHomeworkTemplate/del/".concat(t),method:"post"})}function w(t){return Object(o["a"])({url:s+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:t,requestType:"form"})}function C(t){return Object(o["a"])({url:s+"/chargeTypeSubjectMapper/insert",method:"post",data:t})}function T(t){return Object(o["a"])({url:s+"/chargeTypeSubjectMapper/update",method:"post",data:t})}function k(t){var e=t.id,r=Object(n["a"])(t,c);return Object(o["a"])({url:s+"/chargeTypeSubjectMapper/del/"+e,method:"post",params:r})}function F(t){return Object(o["a"])({url:s+"/musicGroupOrganizationCourseSettings/add",method:"post",data:t})}function q(t){return Object(o["a"])({url:s+"/musicGroupOrganizationCourseSettings/update",method:"post",data:t})}function z(t){return Object(o["a"])({url:s+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:t,requestType:"form"})}function I(t){return Object(o["a"])({url:s+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:t,requestType:"form"})}function x(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 P(t){return Object(o["a"])({url:s+"/organizationCourseUnitPriceSettings/update",method:"post",data:t})}function $(t){return Object(o["a"])({url:s+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:t})}function E(t){return Object(o["a"])({url:s+"/organizationCourseDurationSettings/update",method:"post",params:t})}function G(t){return Object(o["a"])({url:s+"/organizationCourseDurationSettings/insert",method:"post",params:t})}function V(t){return Object(o["a"])({url:s+"/organizationCourseDurationSettings/del",method:"post",data:t})}function D(t){return Object(o["a"])({url:s+"/organizationCloudTeacherFee/queryPage",method:"get",params:t})}function M(t){return Object(o["a"])({url:s+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:t})}function N(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"})}}}]);
|