1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ArrangeWork"],{2053:function(t,e,a){},"2b61":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"arrangeWork"},[t.headerStatus?a("m-header"):t._e(),a("div",{staticClass:"container"},[a("div",{staticClass:"formGroup"},[a("div",{staticClass:"formTitle"},[t._v("作业内容")]),a("van-field",{attrs:{rows:"8",type:"textarea",placeholder:"请输入(1-600字)"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)]),a("van-cell",{staticClass:"endTime",attrs:{title:"截止时间",readonly:"",placeholder:"请选择截止时间"},on:{click:t.onEndTime},scopedSlots:t._u([{key:"default",fn:function(){return[t._v("\n "+t._s(t.dateSection.showStartDate)+" "),a("span",{staticClass:"arrowDown"})]},proxy:!0}])}),a("div",{staticClass:"button-group"},[a("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:t.onSubmit}},[t._v("确定")])],1),a("van-popup",{attrs:{position:"bottom"},model:{value:t.dateSection.status,callback:function(e){t.$set(t.dateSection,"status",e)},expression:"dateSection.status"}},[a("van-datetime-picker",{attrs:{type:"date","min-date":t.dateSection.minDate,"max-date":t.dateSection.maxDate,formatter:t.formatter},on:{confirm:function(e){return t.confirmStartTime()},cancel:function(e){t.dateSection.status=!1}},model:{value:t.dateSection.currentDate,callback:function(e){t.$set(t.dateSection,"currentDate",e)},expression:"dateSection.currentDate"}})],1)],1)},r=[],o=a("6e6e"),i=a("ff51"),c=a("530a"),s={name:"teacherList",components:{MHeader:o["a"]},data:function(){var t=new Date;return t.setDate(t.getDate()+3),{that:this,headerStatus:!0,dateSection:{status:!1,minDate:new Date,maxDate:new Date(2025,10,1),currentDate:t,showStartDate:Object(i["f"])(t,!0)},content:null,expiryDate:null}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),document.title="布置作业",(Object(i["b"])().android||Object(i["b"])().iPhone)&&(this.headerStatus=!1)},methods:{formatter:function(t,e){return"year"===t?"".concat(e,"年"):"month"===t?"".concat(e,"月"):"day"==t?"".concat(e,"日"):e},confirmStartTime:function(){this.dateSection.showStartDate=Object(i["f"])(this.dateSection.currentDate,!0),this.dateSection.status=!1},onEndTime:function(){this.dateSection.status=!0},onSubmit:Object(i["a"])(function(){var t=this;if(this.content){this.$toast.loading({message:"加载中...",duration:1e4,forbidClick:!0,loadingType:"spinner"});var e=this.$route.query,a={content:this.content,courseId:e.courseId,expiryDate:this.dateSection.showStartDate};Object(c["a"])(a).then(function(e){var a=e.data;t.$toast.clear(),200==a.code?(t.$toast("作业布置成功"),t.$router.replace({path:"/manageEvaluation"})):t.$toast(a.msg)})}else this.$toast("请输入作业内容")},500)}},u=s,l=(a("6022"),a("2877")),d=Object(l["a"])(u,n,r,!1,null,"adba1f22",null);e["default"]=d.exports},3354:function(t,e,a){},5115:function(t,e,a){"use strict";var n=a("3354"),r=a.n(n);r.a},"530a":function(t,e,a){"use strict";a.d(e,"e",function(){return c}),a.d(e,"d",function(){return s}),a.d(e,"b",function(){return u}),a.d(e,"i",function(){return l}),a.d(e,"j",function(){return d}),a.d(e,"c",function(){return f}),a.d(e,"h",function(){return h}),a.d(e,"f",function(){return m}),a.d(e,"k",function(){return p}),a.d(e,"g",function(){return S}),a.d(e,"a",function(){return v});var n=a("4328"),r=a.n(n),o=a("981f").default,i="/api-teacher",c=function(t){return o({url:i+"/courseScheduleTeacherSalary/findTeacherSettlementCourseSalarys",method:"get",params:t})},s=function(t){return o({url:i+"/courseScheduleTeacherSalary/findTeacherRewards",method:"get",params:t})},u=function(t){return o({url:i+"/courseScheduleTeacherSalary/confirmTeacherMonthSalary",method:"post",data:r.a.stringify(t)})},l=function(t){return o({url:i+"/teacherSalaryComplaints/add",method:"post",data:r.a.stringify(t)})},d=function(t){return o({url:i+"/teacherSalaryComplaints/get",method:"get",params:t})},f=function(t){return o({url:i+"/teacherSalaryComplaints/findByMonth",method:"post",data:r.a.stringify(t)})},h=function(t){return o({url:i+"/teacherSalaryComplaints/repealComplaints",method:"post",data:r.a.stringify(t)})},m=function(t){return o({url:i+"/courseScheduleTeacherSalary/findTeacherYearSalarys",method:"get",params:t})},p=function(t){return o({url:i+"/teacherSalaryComplaints/queryPage",method:"get",params:t})},S=function(t){return o({url:i+"/courseReview/getOnlineCourse",method:"get",params:t})},v=function(t){return o({url:i+"/courseReview/addHomeWork",method:"post",data:r.a.stringify(t)})}},6022:function(t,e,a){"use strict";var n=a("2053"),r=a.n(n);r.a},"6e6e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"mheader"},[a("header",{staticClass:"m-nav-header",class:[t.isFixed?"fixed":""]},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.isBack,expression:"isBack"}],staticClass:"m-nav-bar__left",on:{click:t.goBack}},[a("van-icon",{staticClass:"arrow-left",attrs:{name:"arrow-left"}})],1),a("div",{staticClass:"m-nav-bar__title"},[t._t("default",[t._v(t._s(t.name?t.name:this.$route.meta.descrition))])],2),a("div",{staticClass:"m-nav-bar__right"},[t._t("right")],2)])])},r=[],o={name:"mheader",props:{name:String,isBack:{type:Boolean,default:!0},isFixed:{type:Boolean,default:!0},backUrl:{type:Object,default:function(){return{callBack:null,path:"",params:{}}}}},methods:{goBack:function(){var t=this.backUrl;"function"==typeof t.callBack?t.callBack():t.path?this.$router.push({path:t.path,query:t.params}):history.go(-1)}}},i=o,c=(a("5115"),a("2877")),s=Object(c["a"])(i,n,r,!1,null,"61d0e2e4",null);e["a"]=s.exports}}]);
|