(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["userNoticeList"],{"21f4":function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"NoticeList"},[i("div",{staticClass:"banner",class:"banner"+e.bannerNum}),i("div",{staticClass:"wrapper"},[i("h1",{staticClass:"title msg"},[i("span",[e._v(e._s(e.title))])]),i("div",{staticClass:"list"},[i("ul",[e._l(e.publicNotice,(function(t){return[i("li",{key:t.id},[i("router-link",{staticClass:"row space",attrs:{to:{name:e.goTemplateName(t),query:{id:t.id,businessId:t.businessId,businessType:t.businessType,noticeTitle:t.noticeTitle,elsAccount:t.busAccount,businessType:t.businessType,templateVersion:t.templateVersion,templateNumber:t.templateNumber}}}},[i("span",{staticClass:"tit"},[e._v(e._s(t.noticeTitle))]),i("span",{staticClass:"date"},[e._v(e._s(e._f("formatPublishTime")(t.publishTime)))])])],1)]}))],2)]),i("div",{staticClass:"pagination"},[i("a-pagination",{attrs:{size:"small",total:e.total,current:e.pageNo,"show-total":function(e){return"共 "+e+" 条"},"show-size-changer":"","show-quick-jumper":""},on:{showSizeChange:e.onShowSizeChange,change:e.onChange}})],1)])])},n=[],a=i("0fea"),o={filters:{formatPublishTime:function(e){return e?e.slice(0,10):""}},data:function(){return{publicNotice:[],pageNo:1,pageSize:10,total:0,rowCount:0,sourceFrom:"public"}},methods:{goTemplateName:function(e){var t="noticeDetail";return!e||"ebidding"!==e.businessType&&"bidding"!==e.businessType&&"enquiry"!==e.businessType||(t="noticeDetailTemplate"),t},getNoticeData:function(){var e=this,t="public"===this.sourceFrom?"/notice/purchaseNotice/noToken/publicList":"inquiry"===this.sourceFrom?"/notice/purchaseNotice/noToken/publicInquiryList":"/notice/purchaseNotice/getHomePageNotice",i={pageNo:this.pageNo,pageSize:this.pageSize};Object(a["c"])(t,i).then((function(t){e.publicNotice=t.result.records||[],e.total=t.result.total}))},onShowSizeChange:function(e,t){this.pageSize=t,this.getNoticeData()},onChange:function(e){this.pageNo=e,this.getNoticeData()}},computed:{title:function(){var e="";switch(this.sourceFrom){case"public":e="平台公告";break;case"inquiry":e="寻源信息";break;default:e="招投标信息";break}return e},bannerNum:function(){var e=2;return"inquiry"==this.sourceFrom?e=3:"public"==this.sourceFrom&&(e=1),e}},created:function(){this.$route.query.sourceFrom&&(this.sourceFrom=this.$route.query.sourceFrom),this.getNoticeData()}},c=o,u=(i("4595"),i("0b56")),r=Object(u["a"])(c,s,n,!1,null,"660a42dc",null);t["default"]=r.exports},4595:function(e,t,i){"use strict";i("b844")},b844:function(e,t,i){}}]);