ArrangeWork.bf9415d9.js 10 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["ArrangeWork"],{"2b61":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:"arrangeWork"},[t.headerStatus?n("m-header"):t._e(),n("div",{staticClass:"container"},[n("div",{staticClass:"formGroup"},[n("div",{staticClass:"dot"}),n("div",{staticClass:"formTitle"},[t._v("作业内容")]),n("van-field",{attrs:{rows:"8",type:"textarea",placeholder:"请输入(1-600字)"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}})],1)]),n("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)+" "),n("span",{staticClass:"arrowDown"})]},proxy:!0}])}),n("div",{staticClass:"button-group"},[n("van-button",{attrs:{type:"primary",round:"",size:"large"},on:{click:t.onSubmit}},[t._v("确定")])],1),n("van-popup",{attrs:{position:"bottom"},model:{value:t.dateSection.status,callback:function(e){t.$set(t.dateSection,"status",e)},expression:"dateSection.status"}},[n("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)},i=[],a=n("6e6e"),s=n("ff51"),o=n("5a0c"),u=n.n(o),c=n("530a");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(n,!0).forEach(function(e){h(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={name:"teacherList",components:{MHeader:a["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:u()(t).format("YYYY年MM月DD日")},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(s["b"])().android||Object(s["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=u()(this.dateSection.currentDate).format("YYYY年MM月DD日"),this.dateSection.status=!1},onEndTime:function(){this.dateSection.status=!0},onSubmit:Object(s["a"])(function(){var t=this;if(this.content){this.$toast.loading({message:"加载中...",duration:1e4,forbidClick:!0,loadingType:"spinner"});var e=this.$route.query,n={content:this.content,courseId:e.courseId,expiryDate:this.dateSection.showStartDate},r=this.dateSection.showStartDate.replace(/[^\d]/g,"/"),i=new Date(r);Object(c["a"])(d({},n,{expiryDate:u()(i).format("YYYY-MM-DD")})).then(function(e){var n=e.data;t.$toast.clear(),200==n.code?(t.$toast("作业布置成功"),t.$router.replace({path:"/manageEvaluation"})):t.$toast(n.msg)})}else this.$toast("请输入作业内容")},500)}},$=l,m=(n("a268"),n("2877")),p=Object(m["a"])($,r,i,!1,null,"97cf176a",null);e["default"]=p.exports},"5a0c":function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";var t="millisecond",e="second",n="minute",r="hour",i="day",a="week",s="month",o="quarter",u="year",c=/^(\d{4})-?(\d{1,2})?-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,f=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},h={s:d,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+d(r,2,"0")+":"+d(i,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,s),i=e-r<0,a=t.clone().add(n+(i?-1:1),s);return Number(-(n+(e-r)/(i?r-a:a-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return{M:s,y:u,w:a,d:i,D:"date",h:r,m:n,s:e,ms:t,Q:o}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},l={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},$="en",m={};m[$]=l;var p=function(t){return t instanceof S},D=function(t,e,n){var r;if(!t)return $;if("string"==typeof t)m[t]&&(r=t),e&&(m[t]=e,r=t);else{var i=t.name;m[i]=t,r=i}return!n&&r&&($=r),r||!n&&$},v=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},y=h;y.l=D,y.i=p,y.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,$offset:e.$offset})};var S=function(){function d(t){this.$L=this.$L||D(t.locale,null,!0),this.parse(t)}var h=d.prototype;return h.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(y.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(c);if(r){var i=r[2]-1||0;return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}}return new Date(e)}(t),this.init()},h.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},h.$utils=function(){return y},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(t,e){var n=v(t);return this.startOf(e)<=n&&n<=this.endOf(e)},h.isAfter=function(t,e){return v(t)<this.startOf(e)},h.isBefore=function(t,e){return this.endOf(e)<v(t)},h.$g=function(t,e,n){return y.u(t)?this[e]:this.set(n,t)},h.year=function(t){return this.$g(t,"$y",u)},h.month=function(t){return this.$g(t,"$M",s)},h.day=function(t){return this.$g(t,"$W",i)},h.date=function(t){return this.$g(t,"$D","date")},h.hour=function(t){return this.$g(t,"$H",r)},h.minute=function(t){return this.$g(t,"$m",n)},h.second=function(t){return this.$g(t,"$s",e)},h.millisecond=function(e){return this.$g(e,"$ms",t)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(t,o){var c=this,f=!!y.u(o)||o,d=y.p(t),h=function(t,e){var n=y.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return f?n:n.endOf(i)},l=function(t,e){return y.w(c.toDate()[t].apply(c.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},$=this.$W,m=this.$M,p=this.$D,D="set"+(this.$u?"UTC":"");switch(d){case u:return f?h(1,0):h(31,11);case s:return f?h(1,m):h(0,m+1);case a:var v=this.$locale().weekStart||0,S=($<v?$+7:$)-v;return h(f?p-S:p+(6-S),m);case i:case"date":return l(D+"Hours",0);case r:return l(D+"Minutes",1);case n:return l(D+"Seconds",2);case e:return l(D+"Milliseconds",3);default:return this.clone()}},h.endOf=function(t){return this.startOf(t,!1)},h.$set=function(a,o){var c,f=y.p(a),d="set"+(this.$u?"UTC":""),h=(c={},c[i]=d+"Date",c.date=d+"Date",c[s]=d+"Month",c[u]=d+"FullYear",c[r]=d+"Hours",c[n]=d+"Minutes",c[e]=d+"Seconds",c[t]=d+"Milliseconds",c)[f],l=f===i?this.$D+(o-this.$W):o;if(f===s||f===u){var $=this.clone().set("date",1);$.$d[h](l),$.init(),this.$d=$.set("date",Math.min(this.$D,$.daysInMonth())).$d}else h&&this.$d[h](l);return this.init(),this},h.set=function(t,e){return this.clone().$set(t,e)},h.get=function(t){return this[y.p(t)]()},h.add=function(t,o){var c,f=this;t=Number(t);var d=y.p(o),h=function(e){var n=v(f);return y.w(n.date(n.date()+Math.round(e*t)),f)};if(d===s)return this.set(s,this.$M+t);if(d===u)return this.set(u,this.$y+t);if(d===i)return h(1);if(d===a)return h(7);var l=(c={},c[n]=6e4,c[r]=36e5,c[e]=1e3,c)[d]||1,$=this.$d.getTime()+t*l;return y.w($,this)},h.subtract=function(t,e){return this.add(-1*t,e)},h.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",r=y.z(this),i=this.$locale(),a=this.$H,s=this.$m,o=this.$M,u=i.weekdays,c=i.months,d=function(t,r,i,a){return t&&(t[r]||t(e,n))||i[r].substr(0,a)},h=function(t){return y.s(a%12||12,t,"0")},l=i.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:y.s(o+1,2,"0"),MMM:d(i.monthsShort,o,c,3),MMMM:d(c,o),D:this.$D,DD:y.s(this.$D,2,"0"),d:String(this.$W),dd:d(i.weekdaysMin,this.$W,u,2),ddd:d(i.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(a),HH:y.s(a,2,"0"),h:h(1),hh:h(2),a:l(a,s,!0),A:l(a,s,!1),m:String(s),mm:y.s(s,2,"0"),s:String(this.$s),ss:y.s(this.$s,2,"0"),SSS:y.s(this.$ms,3,"0"),Z:r};return n.replace(f,function(t,e){return e||$[t]||r.replace(":","")})},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(t,c,f){var d,h=y.p(c),l=v(t),$=6e4*(l.utcOffset()-this.utcOffset()),m=this-l,p=y.m(this,l);return p=(d={},d[u]=p/12,d[s]=p,d[o]=p/3,d[a]=(m-$)/6048e5,d[i]=(m-$)/864e5,d[r]=m/36e5,d[n]=m/6e4,d[e]=m/1e3,d)[h]||m,f?p:y.a(p)},h.daysInMonth=function(){return this.endOf(s).$D},h.$locale=function(){return m[this.$L]},h.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=D(t,e,!0);return r&&(n.$L=r),n},h.clone=function(){return y.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}();return v.prototype=S.prototype,v.extend=function(t,e){return t(e,S,v),v},v.locale=D,v.isDayjs=p,v.unix=function(t){return v(1e3*t)},v.en=m[$],v.Ls=m,v})},a268:function(t,e,n){"use strict";var r=n("ed9e"),i=n.n(r);i.a},ed9e:function(t,e,n){}}]);