(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-243b0faf"],{2934:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("b775");function i(){return Object(r["a"])({url:"/appcode/getTime.dspy",method:"get"})}},"3b7f":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var r=n("b775");function i(){return Object(r["a"])({url:"/daylog/getWorkTime.dspy",method:"get"})}function a(){return Object(r["a"])({url:"/daylog/updateWorkTime.dspy",method:"get"})}},cf88: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",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[n("p",[t._v("当前时间"+t._s(t.current_date))]),this.current_date!=this.status_date?n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.upTime()}}},[t._v("切换日期")]):t._e(),this.current_date==this.status_date?n("el-button",{attrs:{type:"primary",disabled:""},on:{click:function(e){return t.upTime()}}},[t._v("切换日期")]):t._e()],1)},i=[],a=n("2934"),u=n("3b7f"),o={data:function(){return{loading:!1,current_date:"",status_date:""}},mounted:function(){this.getWorkTime(),this.getTime()},methods:{getWorkTime:function(){var t=this;Object(u["a"])().then((function(e){t.current_date=e.current_date}))},upTime:function(){var t=this;Object(u["b"])().then((function(e){t.loading=!0,t.getWorkTime(),t.getTime()}))},getTime:function(){var t=this;Object(a["a"])().then((function(e){t.status_date=t.filterTime(e),t.loading=!1}))},filterTime:function(t){var e=new Date(t),n=e.getFullYear(),r=e.getMonth()+1;r=r<10?"0"+r:r;var i=e.getDate();i=i<10?"0"+i:i;var a=e.getHours();a=a<10?"0"+a:a;var u=e.getMinutes();u=u<10?"0"+u:u;var o=e.getSeconds();return o=o<10?"0"+o:o,n+"-"+r+"-"+i}}},c=o,s=n("2877"),d=Object(s["a"])(c,r,i,!1,null,"0292038a",null);e["default"]=d.exports}}]);