(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[6],{zoKs:function(e,t,n){"use strict";n.r(t);var a=n("d6i3"),r=n.n(a),c=n("gWZ8"),s=n.n(c),o=n("p0pE"),i=n.n(o),u=n("Aeqt"),p=n("uk3j"),d=n("9ibs"),l=new d["c"].DataSource({rowHasChanged:function(e,t){return e!==t}});t["default"]={namespace:"announcementModel",state:{tabList:[],announcementListArr:[],announcementList:l,isLoading:!1},reducers:{updateState:function(e,t){var n=t.payload;return i()({},e,n)}},effects:{getAnnouncementList:r.a.mark(function e(t,n){var a,c,o,l,g,f,m,w,x,L,b,y,h,k;return r.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return a=t.payload,c=n.call,o=n.put,l=n.select,d["g"].loading("\u52a0\u8f7d\u4e2d",0,null,!0),e.next=5,o({type:"updateState",payload:{isLoading:!0}});case 5:return e.next=7,c(p["a"],i()({},a));case 7:return g=e.sent,f=g.rc,m=g.msg,w=g.total,x=g.data,e.next=14,l(function(e){return e.announcementModel});case 14:if(L=e.sent,b=L.announcementList,y=L.announcementListArr,f!==u["a"].constant.codeSuccess){e.next=36;break}if(d["g"].hide(),h=w,!(a.pageNo>Math.ceil(h/a.pageSize))){e.next=30;break}return d["g"].info("\u6ca1\u6709\u6570\u636e\u4e86~",1),e.next=24,o({type:"updateState",payload:{isLoading:!1,refreshing:!1}});case 24:if(1!==a.pageNo){e.next=27;break}return e.next=27,o({type:"updateState",payload:{announcementListArr:[],announcementList:b.cloneWithRows([])}});case 27:return e.abrupt("return",!1);case 30:return k=x,k=1===a.pageNo?s()(k):[].concat(s()(y),s()(k)),e.next=34,o({type:"updateState",payload:{announcementListArr:k,announcementList:b.cloneWithRows(k),isLoading:!1,refreshing:!1}});case 34:e.next=37;break;case 36:d["g"].fail(m);case 37:case"end":return e.stop()}},e)}),getTabList:r.a.mark(function e(t,n){var a,c,o,l,g,f,m,w;return r.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return a=t.payload,c=n.call,o=n.put,n.select,e.next=4,c(p["c"],i()({},a));case 4:if(l=e.sent,g=l.rc,f=l.msg,m=l.data,g!==u["a"].constant.codeSuccess){e.next=15;break}return w=[],w=[{id:"",title:"\u6700\u65b0"}].concat(s()(m)),e.next=13,o({type:"updateState",payload:{tabList:w}});case 13:e.next=16;break;case 15:d["g"].fail(f);case 16:case"end":return e.stop()}},e)})},subscriptions:{}}}}]);