You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
1.9 KiB

4 months ago
"use strict";(self["webpackChunkagile_portal_front"]=self["webpackChunkagile_portal_front"]||[]).push([[430],{11430:(t,e,a)=>{a.r(e),a.d(e,{default:()=>u});a(47042);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"news-list-container"},[e("div",{staticClass:"wrapper"},[e("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e("el-breadcrumb-item",{attrs:{to:{path:"/"}}},[t._v("首页")]),e("el-breadcrumb-item",[t._v("新闻中心")])],1),e("div",{staticClass:"content"},[e("div",{staticClass:"titile"},[t._v("新闻中心")]),e("div",{staticClass:"list"},[t.listNews.length>0?e("ul",t._l(t.listNews,(function(a){return e("li",{key:a.contentId},[e("router-link",{staticClass:"news-link",attrs:{to:{name:"NewsDetail",params:{contentId:a.contentId}}}},[e("span",[t._v(t._s(a.contentTitle))]),e("b",[t._v(t._s(a.updateTime.slice(0,10)))])])],1)})),0):e("ul",[e("el-empty",{attrs:{image:t.empty,"image-size":400}})],1),e("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],attrs:{total:t.total,page:t.queryParams.pageNum,limit:t.queryParams.pageSize},on:{"update:page":function(e){return t.$set(t.queryParams,"pageNum",e)},"update:limit":function(e){return t.$set(t.queryParams,"pageSize",e)},pagination:t.getList}})],1)])],1)])])},i=[],n=a(47121);const r={name:"NewsCenter",data:function(){return{loading:!1,listNews:[],queryParams:{pageNum:1,pageSize:10},total:0,empty:a(76977)}},computed:{},created:function(){this.getList()},mounted:function(){this.$parent.$parent.$parent.$refs.topnav.topbg="",this.backToTop()},methods:{backToTop:function(){window.scrollTo({top:0,behavior:"smooth"})},getList:function(){var t=this;(0,n.Yz)().then((function(e){t.listNews=e.rows,t.total=e.total}))}}},o=r;var l=a(43736),c=(0,l.Z)(o,s,i,!1,null,"5778cda0",null);const u=c.exports},76977:(t,e,a)=>{t.exports=a.p+"static/img/no-data.b53747cf.png"}}]);