1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8f0426cc"],{"1b15":function(t,e,r){"use strict";var n=r("b323"),a=r("be37").map,o=r("33e9"),i=o("map");n({target:"Array",proto:!0,forced:!i},{map:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},"53c0":function(t,e,r){"use strict";r("ab16")},"6fa7":function(t,e,r){"use strict";r.r(e);r("1b15");var n=function(){var t=this,e=t._self._c;return t.workarranges&&0!=t.workarranges.length?e("div",[e("van-sticky",[e("van-nav-bar",{attrs:{title:t.username+"的工作安排"}}),e("van-calendar",{style:{height:"40vh"},attrs:{title:t.username+"的工作安排","show-title":!1,poppable:!1,"show-confirm":!1,"min-date":new Date(1e3*Math.min.apply(null,t.workarranges.map((function(t){return t.date})))),"max-date":new Date(1e3*Math.max.apply(null,t.workarranges.map((function(t){return t.date})))),formatter:t.formatter,className:"van-calendar__top-info"},on:{confirm:t.confirmFn}})],1),t.workarrange1?e("van-cell-group",[e("van-cell",{attrs:{title:"上午"}}),e("van-cell",{attrs:{border:!1}},[t._v(t._s(t.workarrange1.item.content))]),e("van-cell",{attrs:{border:!1}},[t._v("培训老师:"+t._s(t.workarrange1.item.teacher))]),e("van-cell",[t._v("考核内容:"+t._s(t.workarrange1.item.examine))]),t.workarrange1.log?[e("van-cell",{attrs:{border:!1}},[t._v(t._s(t.username)+"的日志")]),e("van-cell",{staticClass:"whitespace-pre",attrs:{border:!1}},[t._v(t._s(t.workarrange1.log.content))]),e("van-cell",{staticClass:"text-xs",attrs:{title:""}},[t._v("更新时间:"+t._s(t.dateFormat("YYYY-mm-dd HH:MM",new Date(1e3*t.workarrange1.log.updated_at))))])]:t._e()],2):t._e(),t.workarrange2?e("van-cell-group",[e("van-cell",{attrs:{title:"下午"}}),e("van-cell",{attrs:{border:!1}},[t._v(t._s(t.workarrange2.item.content))]),e("van-cell",{attrs:{border:!1}},[t._v("培训老师:"+t._s(t.workarrange2.item.teacher))]),e("van-cell",{attrs:{border:!1}},[t._v("考核内容:"+t._s(t.workarrange2.item.examine))]),t.workarrange2.log?[e("van-cell",{attrs:{border:!1}},[t._v(t._s(t.username)+"的日志")]),e("van-cell",{staticClass:"whitespace-pre",attrs:{border:!1}},[t._v(t._s(t.workarrange2.log.content))]),e("van-cell",{staticClass:"text-xs",attrs:{title:""}},[t._v("更新时间:"+t._s(t.dateFormat("YYYY-mm-dd HH:MM",new Date(1e3*t.workarrange2.log.updated_at))))])]:t._e()],2):t._e()],1):t._e()},a=[],o=(r("d4e8"),r("933e"),r("b1dc"),r("1d82"),r("ad74"),r("c07a")),i=r("8877"),c={data:function(){return{id:0,username:"",workarranges:[],workarrange1:null,workarrange2:null,date:null,logShow:!1,logForm:{}}},mounted:function(){this.$route.params&&this.$route.params.id>=0&&(this.id=this.$route.params.id),this.loadWorkArrangeInfo()},methods:{dateFormat:o["a"],loadWorkArrangeInfo:function(){var t=this;this.$store.commit("loading/showLoading"),Object(i["s"])(this.id).then((function(e){t.username=e.data.username,t.workarranges=e.data.items,t.$store.commit("loading/hideLoading")})).catch((function(){t.$store.commit("loading/hideLoading")}))},formatter:function(t){var e=this.workarranges.filter((function(e){return e.date==parseInt(t.date.getTime()/1e3)}));if(0==e.length?t.type="disabled":(t.topInfo="第"+e[0].day+"天",0==e.filter((function(t){return!t.log})).length&&(t.className="red-flag")),"selected"==t.type){var r=parseInt(t.date.getTime()/1e3);this.date||this.selectDate(r),this.date=r}return t},selectDate:function(t){var e=this;this.workarrange1=null,this.workarrange2=null,this.workarranges.filter((function(e){return e.date==t})).forEach((function(t){0==t.type&&(e.workarrange1=t),1==t.type&&(e.workarrange2=t)}))},confirmFn:function(t){this.selectDate(parseInt(t.getTime()/1e3))}}},u=c,d=(r("53c0"),r("e607")),s=Object(d["a"])(u,n,a,!1,null,null,null);e["default"]=s.exports},8877:function(t,e,r){"use strict";r.d(e,"i",(function(){return a})),r.d(e,"j",(function(){return o})),r.d(e,"m",(function(){return i})),r.d(e,"l",(function(){return c})),r.d(e,"b",(function(){return u})),r.d(e,"f",(function(){return d})),r.d(e,"k",(function(){return s})),r.d(e,"a",(function(){return l})),r.d(e,"e",(function(){return f})),r.d(e,"n",(function(){return m})),r.d(e,"r",(function(){return g})),r.d(e,"o",(function(){return h})),r.d(e,"p",(function(){return p})),r.d(e,"q",(function(){return v})),r.d(e,"c",(function(){return b})),r.d(e,"g",(function(){return w})),r.d(e,"d",(function(){return k})),r.d(e,"h",(function(){return _})),r.d(e,"s",(function(){return j}));r("969d");var n=r("9550");function a(t){return 0===t.limit&&delete t.limit,Object(n["a"])({url:"admins",method:"get",params:t})}function o(t){return Object(n["a"])({url:"buildings",method:"post",data:t})}function i(t){return Object(n["a"])({url:"plantype/list",method:"post",data:t})}function c(t){return Object(n["a"])({url:"planitem/list",method:"post",data:t})}function u(t){return Object(n["a"])({url:"planitem/add",method:"post",data:t})}function d(t){return Object(n["a"])({url:"planitem/edit/".concat(t.id),method:"post",data:t})}function s(t){return Object(n["a"])({url:"planfinish/list",method:"post",data:t})}function l(t){return Object(n["a"])({url:"planfinish/add",method:"post",data:t})}function f(t){return Object(n["a"])({url:"planfinish/edit/".concat(t.id),method:"post",data:t})}function m(t){return Object(n["a"])({url:"plantypes/list",method:"post",data:t})}function g(t){return Object(n["a"])({url:"scores",method:"post",data:t})}function h(t){return Object(n["a"])({url:"score/".concat(t),method:"post"})}function p(t){return Object(n["a"])({url:"scoreitems",method:"post",data:t})}function v(t){return Object(n["a"])({url:"scoreorders",method:"post",data:t})}function b(t){return Object(n["a"])({url:"scoreorder/add",method:"post",data:t})}function w(t){return Object(n["a"])({url:"scoreorder/edit/".concat(t.id),method:"post",data:t})}function k(t){return Object(n["a"])({url:"workarrangelog/add",method:"post",data:t})}function _(t){return Object(n["a"])({url:"workarrangelog/edit/".concat(t.id),method:"post",data:t})}function j(t){return Object(n["a"])({url:"workarrangeinfo/".concat(t),method:"get"})}},"969d":function(t,e,r){"use strict";var n=r("b323"),a=r("0f14"),o=r("2483"),i=r("661b"),c=r("d9dc"),u=r("9612"),d=r("942d"),s=r("29cd"),l=r("d53b"),f=r("33e9"),m=r("e751"),g=r("70f6"),h=m("isConcatSpreadable"),p=g>=51||!a((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),v=function(t){if(!i(t))return!1;var e=t[h];return void 0!==e?!!e:o(t)},b=!p||!f("concat");n({target:"Array",proto:!0,arity:1,forced:b},{concat:function(t){var e,r,n,a,o,i=c(this),f=l(i,0),m=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?i:arguments[e],v(o))for(a=u(o),d(m+a),r=0;r<a;r++,m++)r in o&&s(f,m,o[r]);else d(m+1),s(f,m++,o);return f.length=m,f}})},ab16:function(t,e,r){},c07a:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));r("a210"),r("933e"),r("6aff"),r("4edc"),r("f8e2"),r("2f6d"),r("04fa"),r("66cd"),r("8eb4"),r("d4e8"),r("1d82"),r("ad74"),r("ca0b");function n(t,e){var r,n={"Y+":e.getFullYear().toString(),"m+":(e.getMonth()+1).toString(),"d+":e.getDate().toString(),"H+":e.getHours().toString(),"M+":e.getMinutes().toString(),"S+":e.getSeconds().toString()};for(var a in n)r=new RegExp("("+a+")").exec(t),r&&(t=t.replace(r[1],1==r[1].length?n[a]:n[a].padStart(r[1].length,"0")));return t}}}]);
|