1 line
2.9 KiB
JavaScript
1 line
2.9 KiB
JavaScript
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/punchclock/leave/index"],{"0270":function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("8886");i(n("66fd"));var a=i(n("ae7b"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"0c2d":function(t,e,n){"use strict";n.r(e);var i=n("3a3b"),a=n.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"3a3b":function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("9523")),r=n("dc92"),c=n("0c59");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var u={components:{screenPop:function(){n.e("pagesA/punchclock/leave/screen").then(function(){return resolve(n("85b3"))}.bind(null,n)).catch(n.oe)}},data:function(){return{BASE_IMG_URL:c.BASE_IMG_URL,page:1,totalPage:1,list:[],queryParams:{}}},onShow:function(){this.init()},methods:{toQuery:function(){this.$refs.screenChild.init()},sureParams:function(t){this.queryParams=t,this.init()},loodMore:function(){this.page<this.totalPage&&(this.page++,this.getList())},init:function(){this.page=1,this.list=[],this.getList()},getList:function(){var t=this,e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({page:this.page},this.queryParams);(0,r.netLeaveList)(e).then((function(e){t.list=t.list.concat(e.data.data),t.totalPage=e.data.last_page}))},toDetail:function(e){t.navigateTo({url:"/pagesA/punchclock/leave/detail?id="+e.id})},addLeave:function(){t.navigateTo({url:"/pagesA/punchclock/punchstatis/leave"})}}};e.default=u}).call(this,n("543d")["default"])},"7ef2":function(t,e,n){"use strict";var i=n("c335"),a=n.n(i);a.a},ae7b:function(t,e,n){"use strict";n.r(e);var i=n("f283"),a=n("0c2d");for(var r in a)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(r);n("7ef2");var c=n("f0c5"),o=Object(c["a"])(a["default"],i["b"],i["c"],!1,null,"c78abe74",null,!1,i["a"],void 0);e["default"]=o.exports},c335:function(t,e,n){},f283:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={uEmpty:function(){return n.e("uview-ui/components/u-empty/u-empty").then(n.bind(null,"38b8"))}},a=function(){var t=this.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},r=[]}},[["0270","common/runtime","common/vendor"]]]); |