{"version":3,"sources":["webpack:///./src/images/news.jpg","webpack:///./src/store/entities/page-request.ts","webpack:///./src/views/newsList.vue?35de","webpack:///./src/views/newsList.vue","webpack:///./src/views/newsList.vue?61d4","webpack:///./src/views/newsList.vue?d897","webpack:///./src/views/newsList.vue?e5a2"],"names":["module","exports","PagedFilterAndSortedRequest","_createClass","_classCallCheck","render","_vm","this","_c","_self","_setupProxy","staticClass","_m","_l","newsList","news","key","id","on","$event","showNewsDetail","_v","_s","title","time","subTitle","imagebox","attrs","coverImg","_e","totalCount","pageSize","currentPage","pageChange","pagesizeChange","staticRenderFns","require","PageNewsRequest","_PageRequest","_callSuper","arguments","_inherits","PageRequest","NewsDetail","_AbpBase","_this","Array","pagerequest","value","page","getNewsList","pagesize","get","that","maxResultCount","skipCount","getCurrentPage","getPageSize","tagType","Status","$store","dispatch","type","data","then","res","j","items","length","Util","formatDate","Date","creationTime","newid","window","open","AbpBase","__decorate","Component","components","component"],"mappings":"qGAAAA,EAAOC,QAAU,IAA0B,yB,2HCArBC,EAA2BC,gBAAA,SAAAD,IAAAE,eAAA,KAAAF,O,kCCAjD,W,yCCAA,IAAIG,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,cAAc,CAACL,EAAIM,GAAG,GAAGJ,EAAG,MAAM,CAACG,YAAY,YAAY,CAACL,EAAIO,GAAIP,EAAIQ,UAAU,SAASC,GAAM,OAAOP,EAAG,MAAM,CAACQ,IAAID,EAAKE,GAAGN,YAAY,oBAAoBO,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIc,eAAeL,EAAKE,OAAO,CAACT,EAAG,MAAM,CAACG,YAAY,WAAW,CAACH,EAAG,MAAM,CAACG,YAAY,WAAW,CAACL,EAAIe,GAAGf,EAAIgB,GAAGP,EAAKQ,UAAUf,EAAG,MAAM,CAACG,YAAY,YAAY,CAACL,EAAIe,G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,EACnBzB,KAAK2C,gBACL,CAAAlC,IAAA,cAAAoC,IACD,WACC,OAAO7C,KAAKwB,WACZ,CAAAf,IAAA,iBAAAoC,IAED,WACC,OAAO7C,KAAKyB,cACZ,CAAAhB,IAAA,cAAAgC,MACD,WACC,IAAIK,EAAO9C,KAEXA,KAAKwC,YAAYO,eAAiB/C,KAAKwB,SACvCxB,KAAKwC,YAAYQ,WAAahD,KAAKiD,eAAiB,GAAKjD,KAAKkD,YAC9DlD,KAAKwC,YAAYW,QAAU,EAC3BnD,KAAKwC,YAAYY,OAAO,KAQxBpD,KAAKqD,OAAOC,SAAS,CACpBC,KAAM,kBACNC,KAAMxD,KAAKwC,cACTiB,MAAK,SAAAC,GACPZ,EAAKvB,WAAamC,EAAInC,WAEtB,IAAI,IAAIoC,EAAI,EAAGA,EAAKD,EAAIE,MAAMC,OAAQF,IACrCD,EAAIE,MAAMD,GAAGxC,UAAS,EACO,IAAzBuC,EAAIE,MAAMD,GAAGtC,UAAyC,MAAvBqC,EAAIE,MAAMD,GAAGtC,WAC/CqC,EAAIE,MAAMD,GAAGxC,UAAW,GAExBuC,EAAIE,MAAMD,GAAG1C,KAAK6C,OAAKC,WAAW,IAAIC,KAAMN,EAAIE,MAAMD,GAAGM,cAAc,uBAGzEnB,EAAKvC,SAAWmD,EAAIE,WAErB,CAAAnD,IAAA,iBAAAgC,MACD,SAAeyB,GACdC,OAAOC,KAAK,sBAAsBF,KAOlC,CAAAzD,IAAA,UAAAgC,MACD,WACCzC,KAAKyB,YAAc,EACnBzB,KAAKwB,SAAW,GAChBxB,KAAK2C,kBAnEuB,CAAS0B,QAAnBjC,EAAUkC,EAAA,CAL9BC,eAAU,CACVC,WAAY,MAIQpC,WCrB4W,I,wBCQ9XqC,EAAY,eACd,EACA3E,EACA8B,GACA,EACA,KACA,KACA,MAIa,aAAA6C,E","file":"js/chunk-dcb50c00.a1375e69.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/news.953b9197.jpg\";","export default class PagedFilterAndSortedRequest{\r\n maxResultCount:number;\r\n skipCount:number;\r\n sorting:string;\r\n where:string;\r\n}","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./newsList.vue?vue&type=style&index=0&id=003c47e8&prod&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"noticeList\"},[_vm._m(0),_c('div',{staticClass:\"newslist\"},[_vm._l((_vm.newsList),function(news){return _c('div',{key:news.id,staticClass:\"newsitem clearfix\",on:{\"click\":function($event){return _vm.showNewsDetail(news.id)}}},[_c('div',{staticClass:\"newscot\"},[_c('div',{staticClass:\"newstit\"},[_vm._v(_vm._s(news.title))]),_c('div',{staticClass:\"newstime\"},[_vm._v(_vm._s(news.time))]),_c('div',{staticClass:\"jianjie\"},[_vm._v(_vm._s(news.subTitle))])]),(news.imagebox)?_c('div',{staticClass:\"newsimg\"},[_c('img',{attrs:{\"src\":news.coverImg}})]):_vm._e()])}),_c('Page',{staticClass:\"margin-top-10\",attrs:{\"show-total\":\"\",\"show-sizer\":\"\",\"class-name\":\"fengpage\",\"total\":_vm.totalCount,\"page-size\":_vm.pageSize,\"current\":_vm.currentPage},on:{\"on-change\":_vm.pageChange,\"on-page-size-change\":_vm.pagesizeChange}})],2)])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"topbanner\"},[_c('img',{attrs:{\"src\":require(\"../images/news.jpg\")}})])\n}]\n\nexport { render, staticRenderFns }","\r\n\timport {\r\n\t\tComponent,\r\n\t\tVue,\r\n\t\tInject,\r\n\t\tProp,\r\n\t\tWatch\r\n\t} from 'vue-property-decorator';\r\n\timport Util from '@/lib/util'\r\n\timport AbpBase from '@/lib/abpbase'\r\n\timport PageRequest from '@/store/entities/page-request'\r\n\tclass PageNewsRequest extends PageRequest {\r\n\t\ttagType:number;\r\n\t\ttagId:number;\r\n\t\tStatus:string\r\n\t}\r\n\t@Component({\r\n\t\tcomponents: {\r\n\r\n\t\t}\r\n\t})\r\n\texport default class NewsDetail extends AbpBase {\r\n\t\t\tnewsList: Array < any >= new Array < any > ();\r\n\t\t\ttotalCount: Number = 0;\r\n\t\t\tcurrentPage: Number = 1;\r\n\t\t\tpageSize: Number = 0;\r\n\t\t\tpagerequest: PageNewsRequest = new PageNewsRequest();\r\n\t\r\n\t\t\tpageChange(page: number) {\r\n\t\t\t\tthis.currentPage = page;\r\n\t\t\t\t//this.$store.commit('news/setCurrentPage', page);\r\n\t\t\t\tthis.getNewsList();\r\n\t\t\t}\r\n\t\t\tpagesizeChange(pagesize: number) {\r\n\t\t\t\tthis.pageSize = pagesize;\r\n\t\t\t\tthis.currentPage = 1;\r\n\t\t\t\tthis.getNewsList();\r\n\t\t\t}\r\n\t\t\tget getPageSize() {\r\n\t\t\t\treturn this.pageSize as any;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tget getCurrentPage() {\r\n\t\t\t\treturn this.currentPage as any;\r\n\t\t\t}\r\n\t\t\tgetNewsList() {\r\n\t\t\t\tlet that = this;\r\n\t\t\t\t//let pageindex = (that.currentPage * 1 - 1) as any;\r\n\t\t\t\tthis.pagerequest.maxResultCount = this.pageSize as any;\r\n\t\t\t\tthis.pagerequest.skipCount = (this.getCurrentPage - 1) * this.getPageSize;\r\n\t\t\t\tthis.pagerequest.tagType = 4;\r\n\t\t\t\tthis.pagerequest.Status=\"OP\";\r\n\t\t\t\t// this.pagerequest.tagId = 4;\r\n\t\t\t\t// let pageNoticeRequest = {\r\n\t\t\t\t// \tSkipCount: pageindex*that.pageSize,\r\n\t\t\t\t// \tMaxResultCount: that.pageSize,\r\n\t\t\t\t// \tTagType: 4,\r\n\t\t\t\t// \tTagId: 7,\r\n\t\t\t\t// }\r\n\t\t\t\tthis.$store.dispatch({\r\n\t\t\t\t\ttype: 'app/getNewsList',\r\n\t\t\t\t\tdata: this.pagerequest\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tthat.totalCount = res.totalCount;\r\n\t\t\t\t\t//that.noticeList = res.items;\r\n\t\t\t\t\tfor(var j = 0; j < res.items.length; j++){\r\n\t\t\t\t\t\tres.items[j].imagebox=false;\r\n\t\t\t\t\t\tif (res.items[j].coverImg != '' && res.items[j].coverImg!=null) {\r\n\t\t\t\t\t\t\tres.items[j].imagebox = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t res.items[j].time=Util.formatDate(new Date( res.items[j].creationTime),'yyyy-MM-dd hh:mm:ss');\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tthat.newsList = res.items;\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t\tshowNewsDetail(newid) {\r\n\t\t\t\twindow.open('#/newsdetail?newid='+newid);\r\n\t\t\t\t// this.$router.push({\r\n\t\t\t\t// \tpath: '/newsdetail',\r\n\t\t\t\t// \tquery: {\r\n\t\t\t\t// \t\tnewid: newid\r\n\t\t\t\t// \t}\r\n\t\t\t\t// })\r\n\t\t\t}\r\n\t\t\tcreated() {\r\n\t\t\t\tthis.currentPage = 1;\r\n\t\t\t\tthis.pageSize = 10;\r\n\t\t\t\tthis.getNewsList();\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./newsList.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--13-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./newsList.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./newsList.vue?vue&type=template&id=003c47e8\"\nimport script from \"./newsList.vue?vue&type=script&lang=ts\"\nexport * from \"./newsList.vue?vue&type=script&lang=ts\"\nimport style0 from \"./newsList.vue?vue&type=style&index=0&id=003c47e8&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}