(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/officialDocManagement/officialDocManagement"],{1525:function(e,t,n){},"347f":function(e,t,n){"use strict";var a=n("1525"),i=n.n(a);i.a},"56ae":function(e,t,n){"use strict";(function(e){n("40da");a(n("66fd"));var t=a(n("90e7"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"58b4":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(){n.e("pages/officialDocManagement/components/listUnit").then(function(){return resolve(n("2864"))}.bind(null,n)).catch(n.oe)},i={data:function(){return{pageData:{pageIndex:1,pageSize:10,sendPageIndex:1,sendPageSize:10,isEnd:[!1,!1],isLoading:!0},currentTab:0,reciveList:[],sendList:[]}},components:{ListUnit:a},methods:{getList:function(){var t=this,n=this;n.$request.$get("getDocumentList",{pageIndex:this.pageData.pageIndex,pageSize:this.pageData.pageSize,documentListType:1e3}).then((function(a){if(a.ResultCode&&"100"==a.ResultCode){var i=a.Data.List;i.length>0&&(1==t.pageData.pageIndex?n.reciveList=i:n.reciveList=n.reciveList.concat(i)),i.length<n.pageData.pageSize&&(n.pageData.isEnd[0]=!0)}else n.reciveList=[];e.hideLoading(),setTimeout((function(){n.pageData.isLoading=!1}),500)}))},getSendList:function(){var t=this,n=this;n.$request.$get("getDocumentList",{pageIndex:this.pageData.sendPageIndex,pageSize:this.pageData.sendPageSize,documentListType:2e3}).then((function(a){if(a.ResultCode&&"100"==a.ResultCode){var i=a.Data.List;i.length>0&&(1==t.pageData.sendPageIndex?n.sendList=i:n.sendList=n.sendList.concat(i)),i.length<n.pageData.sendPageSize&&(n.pageData.isEnd[1]=!0)}else n.sendList=[];e.hideLoading(),setTimeout((function(){n.pageData.isLoading=!1}),500)}))},loadMore:function(){this.pageData.isEnd[this.currentTab]||(0===this.currentTab?(this.pageData.pageIndex+=1,this.getList()):(this.pageData.sendPageIndex+=1,this.getSendList()))},downFresh:function(){var e=this;0===e.currentTab?(e.pageData.pageIndex=1,e.getList()):(e.pageData.sendPageIndex=1,e.getSendList())},goDetail:function(e){this.$util.toNextRoute("navigateTo","/pages/officialDocManagement/detail?id="+e.DOCUMENT_ID+"&type="+(0===this.currentTab?"1000":"2000")+"&isread="+e.ISREAD)}},onPullDownRefresh:function(){e.showLoading({title:"正在加载"}),this.pageData.pageIndex=1,this.pageData.isEnd=[!1,!1],this.getList(),this.pageData.sendPageIndex=1,this.getSendList(),setTimeout((function(){e.stopPullDownRefresh()}),1e3)},onReachBottom:function(){this.loadMore()},onLoad:function(){var t=this;e.showLoading({title:"正在加载"}),this.pageData.isLoading=!0,this.getList(),this.getSendList(),e.$on("needrefresh",(function(n){n&&(e.showLoading({title:"正在加载"}),t.pageData.pageIndex=1,t.getList(),t.pageData.isEnd=[!1,!1],t.pageData.sendPageIndex=1,t.getSendList())}))},onShow:function(){},onUnload:function(){this.$util.addUserBehavior(),e.$off("needrefresh")},onHide:function(){}};t.default=i}).call(this,n("543d")["default"])},"90e7":function(e,t,n){"use strict";n.r(t);var a=n("d1f0"),i=n("e89b");for(var s in i)"default"!==s&&function(e){n.d(t,e,(function(){return i[e]}))}(s);n("347f");var o,d=n("f0c5"),u=Object(d["a"])(i["default"],a["b"],a["c"],!1,null,"745f85d2",null,!1,a["a"],o);t["default"]=u.exports},d1f0:function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return a}));var i=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.currentTab=0},e.e1=function(t){e.currentTab=1})},s=[]},e89b:function(e,t,n){"use strict";n.r(t);var a=n("58b4"),i=n.n(a);for(var s in a)"default"!==s&&function(e){n.d(t,e,(function(){return a[e]}))}(s);t["default"]=i.a}},[["56ae","common/runtime","common/vendor"]]]);