webpackJsonp([10],{U6qK:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("auNG"),s=i("LlAa"),n={components:{},data:function(){return{noticeList:[],pageNumber:1,pageSize:10,total:0,totalPage:0}},mounted:function(){this.getNoticeData()},methods:{toDetail:function(t){this.$router.push("/noticeDetail?noticeId="+t.noticeId)},handleCurrentChange:function(t){this.pageNumber=t,this.getNoticeData()},getNoticeData:function(){var t=this,e={pageNumber:t.pageNumber,pageSize:t.pageSize};Object(a.b)(e).then(function(e){var i=e.data;if("0000"==i.code)return t.noticeList=i.result.result||[],t.total=i.result.totalCount,void(t.totalPage=i.result.totalPage);s.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"notice-list"},[i("div",{staticClass:"notice-list-body"},[i("h2",[t._v("公告")]),t._v(" "),i("ul",{staticClass:"notice-list-ul"},[t._m(0),t._v(" "),t._l(t.noticeList,function(e,a){return[i("li",{key:a+"notice",staticClass:"notice-list-li notice-list-cell flex",on:{click:function(i){t.toDetail(e)}}},[i("div",{staticClass:"notice-list-left"},[i("span",[t._v("【"+t._s(e.groupName)+"】")]),i("span",{staticClass:"p-l-10"},[t._v(t._s(e.title))])]),t._v(" "),i("div",{staticClass:"notice-list-right"},[t._v("\n            "+t._s(t._f("timeStampToLineYmd")(e.effectiveTime))+"\n          ")])])]})],2),t._v(" "),t.total?t._e():i("div",{staticClass:"el-table__empty-block"},[t._m(1)]),t._v(" "),t.total?i("div",{staticClass:"page-wrap"},[i("el-pagination",{attrs:{total:t.total,"page-size":t.pageSize,"current-page":t.pageNumber,background:"",layout:"prev, pager, next"},on:{"current-change":t.handleCurrentChange}}),i("span",{staticClass:"p-l-48"},[t._v("共 "+t._s(t.totalPage)+" 页 "+t._s(t.total)+" 条")])],1):t._e()])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("li",{staticClass:"notice-list-li flex li-th"},[e("div",{staticClass:"notice-list-left font-w-700"},[this._v("\n          公告标题\n        ")]),this._v(" "),e("div",{staticClass:"notice-list-right font-w-700"},[this._v("\n          公告时间\n        ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-table__empty-text"},[e("p",{staticClass:"font-14 color-909399"},[this._v("\n          暂无数据\n        ")])])}]};var o=i("VU/8")(n,l,!1,function(t){i("iqsV")},"data-v-7631f5cf",null);e.default=o.exports},iqsV:function(t,e){}});