{"version":3,"sources":["webpack:///./src/views/answerList.vue?71ac","webpack:///./src/store/entities/page-request.ts","webpack:///./src/views/answerList.vue","webpack:///./src/views/answerList.vue?d4ba","webpack:///./src/views/answerList.vue?6804","webpack:///./src/views/answerList.vue?c7ea"],"names":["PagedFilterAndSortedRequest","_createClass","_classCallCheck","render","_vm","this","_c","_self","_setupProxy","staticClass","attrs","tid","toString","on","tabChange","_l","tagList","tag","name","id","newsList","answer","key","$event","showAnswerDetail","staticStyle","_v","_s","lanEn","questionEn","question","L","loading","totalCount","pageSize","currentPage","pageChange","pagesizeChange","staticRenderFns","PageNewsRequest","_PageRequest","_callSuper","arguments","_inherits","PageRequest","NewsDetail","_AbpBase","_this","Array","pagerequest","value","page","getAnswerList","pagesize","get","e","console","log","that","maxResultCount","skipCount","getCurrentPage","getPageSize","tagId","status","abp","localization","currentLanguage","$store","dispatch","type","data","then","res","items","_getAnsterTagList","_asyncToGenerator","regeneratorRuntime","mark","_callee","request","_this2","wrap","_context","prev","next","Object","result","length","stop","getAnsterTagList","apply","aid","window","open","$route","query","AbpBase","__decorate","Component","components","component"],"mappings":"gHAAA,W,2HCAsBA,EAA2BC,gBAAA,SAAAD,IAAAE,eAAA,KAAAF,O,mECA7CG,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,cAAc,CAACH,EAAG,OAAO,CAACI,MAAM,CAAC,MAAQN,EAAIO,IAAIC,YAAYC,GAAG,CAAC,WAAWT,EAAIU,YAAYV,EAAIW,GAAIX,EAAIY,SAAS,SAASC,GAAK,OAAOX,EAAG,UAAU,CAACI,MAAM,CAAC,MAAQO,EAAIC,KAAK,KAAOD,EAAIE,GAAGP,iBAAgB,GAAGN,EAAG,MAAM,CAACG,YAAY,YAAY,CAACL,EAAIW,GAAIX,EAAIgB,UAAU,SAASC,GAAQ,OAAOf,EAAG,MAAM,CAACgB,IAAID,E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AC,KAAAD,EAAAE,MAAA,OACK3B,EAAKrD,KACL2E,EAAU,IAAIM,OAClBN,EAAQrB,eAAiB,IACzBqB,EAAQpB,UAAY,EACpBoB,EAAQV,KAAK,EAEbjE,KAAK+D,OAAOC,SAAS,CACpBC,KAAM,iBACNC,KAAMS,IACJR,MAAK,SAAAC,GACPjB,QAAQC,IAAIgB,GACT,IAAIc,EAASd,EAAIC,MAEpBhB,EAAK1C,QAAQuE,EACVA,EAAOC,OAAO,IACH,GAAV9B,EAAK/C,MACPsE,EAAKtE,IAAI4E,EAAO,GAAG5E,KAEpB+C,EAAKN,oBAEL,wBAAA+B,EAAAM,UAAAV,EAAA,UAGF,SAAAW,IAAA,OAAAf,EAAAgB,MAAA,KAAAjD,WAAA,OAAAgD,EAzBA,IAyBA,CAAApE,IAAA,mBAAA4B,MACD,SAAiB0C,GAChBC,OAAOC,KAAK,sBAAsBF,KAOlC,CAAAtE,IAAA,UAAA4B,MACD,WACI7C,KAAK0F,OAAOC,MAAMrF,KAAQN,KAAK0F,OAAOC,MAAMrF,IAAc,IAC5DN,KAAKM,IAAIN,KAAK0F,OAAOC,MAAMrF,KAE5BN,KAAK8B,YAAc,EACnB9B,KAAK6B,SAAW,GAChB7B,KAAKqF,uBA1GuB,CAASO,QAAnBpD,EAAUqD,EAAA,CAL9BC,eAAU,CACVC,WAAY,MAIQvD,WCrB8W,I,wBCQhYwD,EAAY,eACd,EACAlG,EACAmC,GACA,EACA,KACA,KACA,MAIa,aAAA+D,E","file":"js/chunk-17aa5480.a3ef4bb5.js","sourcesContent":["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!./answerList.vue?vue&type=style&index=0&id=1d782a26&prod&lang=css\"","export default class PagedFilterAndSortedRequest{\r\n maxResultCount:number;\r\n skipCount:number;\r\n sorting:string;\r\n where:string;\r\n}","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"noticeList\"},[_c('Tabs',{attrs:{\"value\":_vm.tid.toString()},on:{\"on-click\":_vm.tabChange}},_vm._l((_vm.tagList),function(tag){return _c('TabPane',{attrs:{\"label\":tag.name,\"name\":tag.id.toString()}})}),1),_c('div',{staticClass:\"newslist\"},[_vm._l((_vm.newsList),function(answer){return _c('div',{key:answer.id,staticClass:\"newsitem clearfix\",on:{\"click\":function($event){return _vm.showAnswerDetail(answer.id)}}},[_c('div',{staticClass:\"newscot\",staticStyle:{\"position\":\"relative\"}},[_c('div',{staticClass:\"newstit\"},[_vm._v(_vm._s(_vm.lanEn?(answer.questionEn==null||answer.questionEn==\"\"?answer.question:answer.questionEn):answer.question))]),_c('div',{staticClass:\"more\",staticStyle:{\"position\":\"absolute\",\"right\":\"0\",\"top\":\"0\",\"height\":\"24px\",\"line-height\":\"24px\"}},[_vm._v(_vm._s(_vm.L('查看'))+\" 》\")])])])}),_c('Page',{staticClass:\"margin-top-10\",attrs:{\"show-total\":\"\",\"show-sizer\":\"\",\"class-name\":\"fengpage\",\"loading\":_vm.loading,\"total\":_vm.totalCount,\"page-size\":_vm.pageSize,\"current\":_vm.currentPage},on:{\"on-change\":_vm.pageChange,\"on-page-size-change\":_vm.pagesizeChange}})],2)],1)\n}\nvar staticRenderFns = []\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:Number\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\ttid:Number = 0;\r\n\t\t\ttagList: Array < any >= new Array < any > ();\r\n\t\t\tpagerequest: PageNewsRequest = new PageNewsRequest();\r\n\t\t\tlanEn=false;\r\n\t\t\tloading=false;\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.getAnswerList();\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.getAnswerList();\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\ttabChange(e){\r\n\t\t\t\tconsole.log(e)\r\n\t\t\t\tthis.tid=e;\t\t\t\r\n\t\t\t\tthis.currentPage = 1;\r\n\t\t\t\tthis.getAnswerList();\r\n\t\t\t}\r\n\t\t\tgetAnswerList() {\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.tagId = that.tid > 0 ? that.tid : null;\r\n\t\t\t\tthis.pagerequest.status=3;\r\n\t\t\t\t\r\n\t\t\t\tvar languageName=\"\";\r\n\t\t\t\tconsole.log(that.lanEn)\r\n\t\t\t\tif(abp.localization.currentLanguage.name!='en')\r\n\t\t\t\t{\r\n\t\t\t\t\tlanguageName = 'zh-Hans';\r\n\t\t\t\t\t that.lanEn=false;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tlanguageName = 'en';\t\t\t\t\r\n\t\t\t\t\tthat.lanEn=true;\r\n\t\t\t\t}\r\n\t\t\t\tthat.loading=true;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tthis.$store.dispatch({\r\n\t\t\t\t\ttype: 'tag/getAnswerAllList',\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;\t\r\n\t\t\t\t\tthat.loading=false;\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\tasync getAnsterTagList() {\r\n\t\t\t\tvar that=this;\r\n\t\t\t\tvar request = new Object() as any;\r\n\t\t\t\trequest.maxResultCount = 1000;\r\n\t\t\t\trequest.skipCount = 0;\r\n\t\t\t\trequest.type=7;\r\n\t\t\t\r\n\t\t\t\tthis.$store.dispatch({\r\n\t\t\t\t\ttype: 'tag/getAllList',\r\n\t\t\t\t\tdata: request\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t var result = res.items;\r\n\t\t\t\t\tvar k = 0;\r\n\t\t\t\t\tthat.tagList=result;\r\n\t\t\t\t\tif(result.length>0){\r\n\t\t\t\t\t\tif(that.tid==0){\r\n\t\t\t\t\t\t\tthis.tid=result[0].tid;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthat.getAnswerList();\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tshowAnswerDetail(aid) {\r\n\t\t\t\twindow.open('#/answerDetail?aid='+aid);\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\tif(this.$route.query.tid && (this.$route.query.tid as any) > 0){\r\n\t\t\t\t\tthis.tid=this.$route.query.tid as any;\r\n\t\t\t\t}\r\n\t\t\t\tthis.currentPage = 1;\r\n\t\t\t\tthis.pageSize = 10;\r\n\t\t\t\tthis.getAnsterTagList();\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!./answerList.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!./answerList.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./answerList.vue?vue&type=template&id=1d782a26\"\nimport script from \"./answerList.vue?vue&type=script&lang=ts\"\nexport * from \"./answerList.vue?vue&type=script&lang=ts\"\nimport style0 from \"./answerList.vue?vue&type=style&index=0&id=1d782a26&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":""}