require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugin/pabonus/log"],{"03eb":function(t,e,n){"use strict";n.r(e);var o=n("f2d6"),u=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=u.a},1441:function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("4c1a");o(n("3240"));var u=o(n("8f635"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(u.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},21311:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={uEmpty:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(n.bind(null,"f174"))},uLoadmore:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(n.bind(null,"4c80"))}},u=function(){var t=this.$createElement,e=(this._self._c,this.logs.length),n=this.logs.length;this.$mp.data=Object.assign({},{$root:{g0:e,g1:n}})},i=[]},"758d":function(t,e,n){"use strict";var o=n("e2ce"),u=n.n(o);u.a},"8f635":function(t,e,n){"use strict";n.r(e);var o=n("21311"),u=n("03eb");for(var i in u)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(i);n("758d");var r=n("828b"),a=Object(r["a"])(u["default"],o["b"],o["c"],!1,null,"724104da",null,!1,o["a"],void 0);e["default"]=a.exports},e2ce:function(t,e,n){},f2d6:function(t,e,n){"use strict";var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=o(n("af34")),i={data:function(){return{projectList:[],currentProjectId:"",logs:[],page:1,status:"loadmore"}},computed:{currentProjectName:function(){var t=this,e=this.projectList.find((function(e){return e.id==t.currentProjectId}));return e?e.name:""}},onLoad:function(t){this.currentProjectId=t.id,this.fetchLogs(),this.getAllProject()},onReachBottom:function(){this.fetchLogs()},methods:{getAllProject:function(){var t=this;this.$util.get("pabonus/goods/all").then((function(e){t.projectList=e.data.list}))},onProjectChange:function(t){this.page=1;var e=Number(t.detail.value),n=this.projectList[e];this.currentProjectId=n?n.id:"",this.fetchLogs()},fetchLogs:function(){var t=this;"loading"!=this.status&&(this.status="loading",this.$util.get("pabonus/record/getList",{page:this.page,pid:this.currentProjectId}).then((function(e){t.status="loadmore",1==t.page&&(t.logs=[]),1==e.code&&(t.logs=[].concat((0,u.default)(t.logs),(0,u.default)(e.data.list)),t.page++),e.data.list.length<10&&(t.status="nomore")})).catch((function(e){1==t.page&&(t.logs=[]),t.status="loadmore"})))}}};e.default=i}},[["1441","common/runtime","common/vendor"]]]);