chunk-24aff8aa.1590636010633.js
5.15 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24aff8aa"],{"0b9d":function(t,a,i){},1733:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAPCAYAAABqQqYpAAABjklEQVQ4jcXTMUhVcRQG8N99PpCEkoZQDIJ4RlAQFA5uhVAgBIoowluCAiEbCreGokWKQmippiCCKHAppyTEsTYHI5qaGgoarkPBc9CG/3l0sXvB6b0PDpz7nfu/3/c/59wsbzb68QRTOKBz+IM3WKjjBSY7KN5GH66iL8ubjR1kXTDRRqvWZQPQWyshVzGB3wVuAmuRj+F4RAPvgz+LD4UzS7hSeP6O0/i2V7DMxCesoImd4FbwOfL1ELyFBZwL/jAeRN7CfbzEZnBP8RNH92MCeqQb3q6oD+NCxJHgboTBr9LW5xgI8W08lxaxd+/H6hUiB6V2XsOpkvqjCHgldW0SQ3iGj7iMUSziDH7heplYlQnh+gvmSmp3o57hWHA98e6idPNVaWz3pNGNS3v0H6rG0cZDXCzhN/EW7/CjwM9hFydwSRrVTJiarxIp68QIzhdMvsas1FJhaiOijpMYjNogHks708adMDNeZSLLm43dqmKnUPPvN+wWWjVptt3Ecl3a8hzTONRB8S0s4+ZfrpxKJ/cIpTQAAAAASUVORK5CYII="},"1a59":function(t,a,i){"use strict";i.r(a);var s=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",[s("div",{staticClass:"ebg"}),s("div",{staticClass:"content"},[s("div",{staticClass:"top-space"}),s("div",{staticClass:"box"},[s("div",{staticClass:"news"},t._l(t.news,(function(a,e){return s("div",{key:e,staticClass:"news-item",on:{click:function(i){return t.toNewsDetail(a.newsCode)}}},[s("div",{staticClass:"news-item-tit"},[s("div",{staticClass:"point"}),s("div",{staticClass:"tit"},[t._v(t._s(a.title))]),1==a.hadNewTag?s("img",{staticClass:"new",attrs:{src:i("1733")}}):t._e()]),s("div",{staticClass:"news-item-date"},[t._v(t._s(a.dateFormat))])])})),0),s("pagination",{ref:"pagination",staticClass:"pagination",attrs:{total:t.totalPage,totalItem:t.totalItem},on:{selpage:t.selPage}})],1)])])},e=[],n=(i("6d57"),i("4ec3")),o=i.n(n),c=i("ed0b"),r=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"comp"},[i("div",{staticClass:"pagination gird-g"},[i("div",[t._v(t._s(t.$t("pagination.total"))),i("span",{staticClass:"t1"},[t._v(t._s(t.totalItem))]),t._v(t._s(t.$t("pagination.unit")))]),i("div",{staticClass:"pagination-item"},[i("span",{staticClass:"pointer",class:{"pagination-disabled":1==t.cur}},[i("a",{on:{click:function(a){return t.prevPage()}}},[t._v(t._s(t.$t("pagination.firstPage")))])]),t._l(t.indexs,(function(a,s){return i("span",{key:s,staticClass:"page-num pointer",class:{active:t.cur==a},on:{click:function(i){return t.selPage(a)}}},[i("a",[t._v(t._s(a))])])})),i("span",{staticClass:"pointer",class:{"pagination-disabled":t.cur==t.total}},[i("a",{on:{click:function(a){return t.nextPage()}}},[t._v(t._s(t.$t("pagination.nextPage")))])])],2),i("div",{staticClass:"pagination-item"},[i("span",[t._v(t._s(t.$t("pagination.per")))]),i("input",{directives:[{name:"model",rawName:"v-model",value:t.sel,expression:"sel"}],staticClass:"ipt",attrs:{placeholder:t.cur,type:"text"},domProps:{value:t.sel},on:{input:function(a){a.target.composing||(t.sel=a.target.value)}}}),i("span",[t._v("/ "+t._s(t.total)+t._s(t.$t("pagination.page")))]),i("span",{staticClass:"jump pointer",on:{click:t.jumpPage}},[t._v(t._s(t.$t("pagination.goto")))])])])])},u=[],l=(i("163d"),{name:"pagination",props:{total:{type:Number,default:1},totalItem:{type:Number,default:1}},data:function(){return{cur:1,sel:1}},components:{},computed:{offSet:function(){return 5*(this.cur-1)},indexs:function(){var t=1,a=this.total,i=[];this.total>=11&&(this.cur>5&&this.cur<this.total-4?(t=this.cur-5,a=this.cur+4):this.cur<=5?(t=1,a=10):(a=this.total,t=this.total-9));while(t<=a)i.push(t),t++;return i}},methods:{jumpPage:function(){this.cur=this.sel,this.cur<1&&(this.cur=1),this.cur>this.total&&(this.cur=this.total),this.sendPage()},selPage:function(t){t!=this.cur&&(this.cur=t,this.sel=this.cur,this.sendPage())},prevPage:function(){this.cur--,this.cur<1&&(this.cur=1),this.sel=this.cur,this.sendPage()},nextPage:function(){this.cur++,this.cur>this.total&&(this.cur=this.total),this.sel=this.cur,this.sendPage()},sendPage:function(){this.$emit("selpage",{page:this.cur})},initData:function(){}},mounted:function(){},created:function(){}}),p=l,h=(i("80b2"),i("623f")),d=Object(h["a"])(p,r,u,!1,null,"2ae4ffb0",null),g=d.exports,f=i("71e2"),m={name:"newsList",components:{Pagination:g},data:function(){return{key:"value",queryForm:{l:"tc",page:1,size:10},totalPage:0,totalItem:0,news:[]}},methods:{toNewsDetail:function(t){this.$router.push({path:"/news/detail",query:{c:t}})},selPage:function(t){var a=t.page;this.$router.push({path:"/news/list",query:{page:a}}),this.initData()},initData:function(){var t=this,a=this.$i18n.locale;this.queryForm.l=a;var i=this.$route.query.page||1;this.queryForm.page=i,this.$nextTick((function(){t.$refs.pagination.selPage(i)})),Object(c["b"])({url:o.a.newsList,data:this.queryForm}).then((function(a){var i=a.list;i.forEach((function(t){t.dateFormat=Object(f["e"])(t.createAt)})),t.$set(t,"news",i),t.totalPage=Math.ceil(a.total/t.queryForm.size),t.totalItem=a.total}))}},mounted:function(){},created:function(){var t=this;document.documentElement.scrollTop=0,document.body.scrollTop=0,this.initData(),this.$root.eventBus.$on("langChange",(function(){try{t.initData()}catch(a){}}))}},v=m,C=(i("8186"),Object(h["a"])(v,s,e,!1,null,"6c3b28f4",null));a["default"]=C.exports},4188:function(t,a,i){},"80b2":function(t,a,i){"use strict";var s=i("0b9d"),e=i.n(s);e.a},8186:function(t,a,i){"use strict";var s=i("4188"),e=i.n(s);e.a}}]);