1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f9c5f852"],{"0110":function(t,e,n){},"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 o(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 u(t,e,n){var u=a(),i=t-u,s=20,c=0;e="undefined"===typeof e?500:e;var l=function t(){c+=s;var a=Math.easeInOutQuad(c,u,i,e);o(a),c<e?r(t):n&&"function"===typeof n&&n()};l()}},"135b":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("div",{directives:[{name:"permission",rawName:"v-permission",value:"courseHomeworkTemplate/add",expression:"'courseHomeworkTemplate/add'"}],staticClass:"newBand",on:{click:function(e){return t.openJob("create")}}},[t._v("添加")]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"name",label:"作业模板名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"classGroupTypeName",label:"对应课程类型"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"声部"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.subjectName?e.row.subjectName:"无")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"content",label:"模板内容"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseHomeworkTemplate/update",expression:"'courseHomeworkTemplate/update'"}],attrs:{type:"text"},on:{click:function(n){return t.openJob("update",e.row)}}},[t._v("修改")]),t._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"courseHomeworkTemplate/del",expression:"'courseHomeworkTemplate/del'"}],attrs:{type:"text"},on:{click:function(n){return t.onJobDel(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),n("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(" "),n("el-dialog",{attrs:{title:t.formTitle[t.formActionTitle],visible:t.jobStatus,width:"500px"},on:{"update:visible":function(e){t.jobStatus=e},close:function(e){return t.onFormClose("ruleForm")}}},[n("el-form",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules}},[n("el-form-item",{attrs:{label:"作业模板名称",prop:"name","label-width":t.formLabelWidth}},[n("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(" "),n("el-form-item",{attrs:{label:"对应课程类型",prop:"classGroupType","label-width":t.formLabelWidth}},[n("el-radio-group",{attrs:{disabled:"update"==t.formActionTitle},model:{value:t.form.classGroupType,callback:function(e){t.$set(t.form,"classGroupType","string"===typeof e?e.trim():e)},expression:"form.classGroupType"}},[n("el-radio",{attrs:{label:"NORMAL"}},[t._v("单技课")]),t._v(" "),n("el-radio",{attrs:{label:"MIX"}},[t._v("合奏课")])],1)],1),t._v(" "),"MIX"!=t.form.classGroupType?n("el-form-item",{attrs:{label:"声部选择",prop:"subjectId","label-width":t.formLabelWidth}},[n("el-select",{attrs:{clearable:"",filterable:""},model:{value:t.form.subjectId,callback:function(e){t.$set(t.form,"subjectId","string"===typeof e?e.trim():e)},expression:"form.subjectId"}},t._l(t.subjectList,function(e){return n("el-option-group",{key:e.label,attrs:{label:e.label}},t._l(e.options,function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1)}),1)],1):t._e(),t._v(" "),n("el-form-item",{attrs:{label:"作业内容",prop:"content","label-width":t.formLabelWidth}},[n("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content","string"===typeof e?e.trim():e)},expression:"form.content"}})],1)],1),t._v(" "),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.jobStatus=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onJobSubmit("ruleForm")}}},[t._v("确 定")])],1)],1)],1)])},o=[],a=(n("ac6a"),n("7f7f"),n("333d")),u=n("d349"),i={components:{pagination:a["a"]},name:"jobTemplateSetting",data:function(){return{tableList:[],subjectList:[],formActionTitle:"create",formTitle:{create:"添加作业模板",update:"修改作业模板"},jobStatus:!1,formLabelWidth:"120px",form:{name:null,classGroupType:null,subjectId:null,content:null},rules:{name:[{required:!0,message:"请输入作业模板名称",trigger:"blur"}],classGroupType:[{required:!0,message:"请选择对应课程类型",trigger:"change"}],subjectId:[{required:!0,message:"请选择声部",trigger:"change"}],content:[{required:!0,message:"请输入作业内容",trigger:"blur"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},mounted:function(){this.getList(),this.getSubjectTree()},methods:{onJobSubmit:function(t){var e=this;this.$refs[t].validate(function(t){if(!t)return!1;"create"==e.formActionTitle?(e.form.id&&delete e.form.id,Object(u["q"])(e.form).then(function(t){e.messageTips("添加",t)})):"update"==e.formActionTitle&&("MIX"==e.form.classGroupType&&(e.form.subjectId=""),Object(u["s"])(e.form).then(function(t){e.messageTips("修改",t)}))})},openJob:function(t,e){this.jobStatus=!0,this.formActionTitle=t,"update"==t&&(this.form={id:e.id,name:e.name,classGroupType:e.classGroupType,subjectId:e.subjectId,content:e.content})},onJobDel:function(t){var e=this;Object(u["r"])(t.id).then(function(t){e.messageTips("删除",t)})},messageTips:function(t,e){200==e.code?(this.$message.success(t+"成功"),this.jobStatus=!1,this.getList()):this.$message.error(e.msg)},getList:function(){var t=this;Object(u["l"])({delFlag:0,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.form={name:null,classGroupType:null,subjectId:null,content:null},this.$refs[t].resetFields()},getSubjectTree:function(){var t=this;Object(u["z"])({delFlag:0,rows:9999}).then(function(e){var n=e.data;if(200==e.code){var r=[];n.rows.forEach(function(t,e){var n=[];t.subjects.forEach(function(t){n.push({value:t.id,label:t.name})}),r[e]={label:t.name,options:n}}),t.subjectList=r}})}}},s=i,c=(n("2873"),n("2877")),l=Object(c["a"])(s,r,o,!1,null,"65befa4a",null);e["default"]=l.exports},2873:function(t,e,n){"use strict";var r=n("0110"),o=n.n(r);o.a},a8db:function(t,e,n){"use strict";var r=n("e265"),o=n.n(r),a=n("a4bb"),u=n.n(a);function i(t,e){if(null==t)return{};var n,r,o={},a=u()(t);for(r=0;r<a.length;r++)n=a[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}function s(t,e){if(null==t)return{};var n,r,a=i(t,e);if(o.a){var u=o()(t);for(r=0;r<u.length;r++)n=u[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}n.d(e,"a",function(){return s})},d349:function(t,e,n){"use strict";n.d(e,"d",function(){return c}),n.d(e,"c",function(){return l}),n.d(e,"e",function(){return d}),n.d(e,"b",function(){return p}),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 j}),n.d(e,"l",function(){return v}),n.d(e,"s",function(){return y}),n.d(e,"q",function(){return T}),n.d(e,"r",function(){return O}),n.d(e,"h",function(){return w}),n.d(e,"i",function(){return _}),n.d(e,"n",function(){return k}),n.d(e,"j",function(){return I}),n.d(e,"t",function(){return S}),n.d(e,"B",function(){return q}),n.d(e,"m",function(){return z}),n.d(e,"u",function(){return x}),n.d(e,"x",function(){return G}),n.d(e,"v",function(){return L}),n.d(e,"w",function(){return C}),n.d(e,"o",function(){return F}),n.d(e,"a",function(){return A}),n.d(e,"y",function(){return P});var r=n("a8db"),o=n("b775"),a=n("829b"),u=n("4328"),i=n.n(u),s="/api-web";function c(t){return Object(o["a"])({url:s+"/organization/queryPage",method:"get",params:t})}function l(t){return Object(o["a"])({url:s+"/organization/add",method:"post",data:i.a.stringify(t)})}function d(t){return Object(o["a"])({url:s+"/organization/update",method:"post",data:i.a.stringify(t)})}function p(t){return Object(o["a"])({url:s+"/area/queryChild",method:"get",params:t})}function f(t){return Object(o["a"])({url:s+"/area/getParentArea/".concat(t.id),method:"get"})}function m(t){return Object(o["a"])({url:s+"/subject/queryPageTree",method:"get",params:t})}function b(t){return Object(o["a"])({url:s+"/subject/upset",method:"post",data:t})}function g(t){return Object(o["a"])({url:s+"/chargeType/queryPage",method:"get",params:t})}function h(t){return Object(o["a"])({url:s+"/chargeType/upSet",method:"post",data:t})}function j(t){return Object(o["a"])({url:s+"/chargeType/del/".concat(t),method:"post"})}function v(t){return Object(o["a"])({url:s+"/courseHomeworkTemplate/queryPage",method:"post",data:t})}function y(t){return Object(o["a"])({url:s+"/courseHomeworkTemplate/update",method:"post",data:i.a.stringify(t)})}function T(t){return Object(o["a"])({url:s+"/courseHomeworkTemplate/add",method:"post",data:i.a.stringify(t)})}function O(t){return Object(o["a"])({url:s+"/courseHomeworkTemplate/del/".concat(t),method:"post"})}function w(t){return Object(o["a"])({url:s+"/chargeTypeOrganizationFee/add",method:"post",data:i.a.stringify(t)})}function _(t){return Object(o["a"])({url:s+"/chargeTypeOrganizationFee/update",method:"post",data:i.a.stringify(t)})}function k(t){return Object(o["a"])({url:s+"/employee/findEducationTeacher",method:"get",params:t})}function I(t){return Object(a["a"])({url:s+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:t,requestType:"form"})}function S(t){return Object(a["a"])({url:s+"/chargeTypeSubjectMapper/insert",method:"post",data:t})}function q(t){return Object(a["a"])({url:s+"/chargeTypeSubjectMapper/update",method:"post",data:t})}function z(t){var e=t.id,n=Object(r["a"])(t,["id"]);return Object(a["a"])({url:s+"/chargeTypeSubjectMapper/del/"+e,method:"post",params:n})}function x(t){return Object(a["a"])({url:s+"/musicGroupOrganizationCourseSettings/add",method:"post",data:t})}function G(t){return Object(a["a"])({url:s+"/musicGroupOrganizationCourseSettings/update",method:"post",data:t})}function L(t){return Object(a["a"])({url:s+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:t,requestType:"form"})}function C(t){return Object(a["a"])({url:s+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:t,requestType:"form"})}function F(t){return Object(a["a"])({url:s+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:t,data:{},requestType:"form"})}function A(t){return Object(a["a"])({url:s+"/organizationCourseUnitPriceSettings/insert",method:"post",data:t})}function P(t){return Object(a["a"])({url:s+"/organizationCourseUnitPriceSettings/update",method:"post",data:t})}}}]);
|