crm_second_opening_mini/pagesA/punchclock/updateClock.js

11 lines
2.1 KiB
JavaScript

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/punchclock/updateClock"],{"16c1":function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u,i=e("dc92"),o={data:function(){return{hour:"00",branch:"00",params:{}}},methods:{init:function(n){this.params=n,this.$refs.popup.open(),this.getTime()},getTime:function(){var n=this;u=setInterval((function(){var t=new Date,e=t.getHours(),u=t.getMinutes();n.hour=n.handleTime(e),n.branch=n.handleTime(u)}),1e3)},toUpdate:function(){var t=this;(0,i.netPunchClock)(this.params).then((function(e){n.showToast({title:e.msg,icon:"none"}),setTimeout((function(){t.toClose(),t.$emit("update")}),2e3)}))},toClose:function(){clearInterval(u),this.$refs.popup.close()}}};t.default=o}).call(this,e("543d")["default"])},"3dde":function(n,t,e){"use strict";e.r(t);var u=e("16c1"),i=e.n(u);for(var o in u)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return u[n]}))}(o);t["default"]=i.a},"6bce":function(n,t,e){"use strict";var u=e("a4af"),i=e.n(u);i.a},a4af:function(n,t,e){},bfc9:function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return o})),e.d(t,"a",(function(){return u}));var u={uniPopup:function(){return e.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(e.bind(null,"6f9d"))}},i=function(){var n=this.$createElement;this._self._c},o=[]},d805:function(n,t,e){"use strict";e.r(t);var u=e("bfc9"),i=e("3dde");for(var o in i)["default"].indexOf(o)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(o);e("6bce");var c=e("f0c5"),a=Object(c["a"])(i["default"],u["b"],u["c"],!1,null,"2c3f3ff1",null,!1,u["a"],void 0);t["default"]=a.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pagesA/punchclock/updateClock-create-component',
{
'pagesA/punchclock/updateClock-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("d805"))
})
},
[['pagesA/punchclock/updateClock-create-component']]
]);