{"version":3,"sources":["webpack:///./src/views/newsGroup.vue?207c","webpack:///./src/views/newsGroup.vue","webpack:///./src/views/newsGroup.vue?9230","webpack:///./src/views/newsGroup.vue?4893","webpack:///./src/views/newsGroup.vue?12ac","webpack:///./src/views/newsGroup.vue?5d12"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","iframeBox","_e","_l","newsGroup","news","itemnews","newsindex","key","on","$event","goNewsDetail","id","_v","_s","title","attrs","coverImg","staticStyle","detailUrl","staticRenderFns","Preview","_AbpBase","_this","_classCallCheck","value","currentUrl","showClosable","Object","groupid","userInfo","_inherits","_createClass","url","window","location","href","oInput","document","createElement","body","appendChild","select","console","log","execCommand","$Message","success","L","remove","newsid","open","that","loading","content","duration","$store","dispatch","type","then","res","destroy","to","from","query","reload","_created","_asyncToGenerator","regeneratorRuntime","mark","_callee","wrap","_context","prev","next","$route","getNewsGroupByID","Util","abp","session","userId","data","stop","created","apply","arguments","AbpBase","__decorate","Watch","Component","components","component"],"mappings":"kHAAA,W,kECAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACG,YAAY,cAAc,CAAGL,EAAIM,UAA4fN,EAAIO,KAArfL,EAAG,MAAM,CAACA,EAAG,MAAM,CAACG,YAAY,QAAQ,CAACH,EAAG,MAAM,CAACG,YAAY,YAAYL,EAAIQ,GAAIR,EAAIS,UAAUC,MAAM,SAASC,EAASC,GAAW,OAAOV,EAAG,MAAM,CAACW,IAAID,EAAUP,YAAY,WAAWS,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOf,EAAIgB,aAAaL,EAASM,OAAO,CAACf,EAAG,MAAM,CAACG,YAAY,SAAS,CAACL,EAAIkB,GAAG,iBAAiBlB,EAAImB,GAAGR,EAASS,OAAO,kBAAkBlB,EAAG,MAAM,CAACG,YAAY,UAAU,CAACH,EAAG,MAAM,CAACmB,MAAM,CAAC,I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,IAEX3D,KAAK4D,OAAOC,SAAS,CACpBC,KAAM,uBACN9C,GAAIiB,IACF8B,MAAK,SAACC,GACRjB,QAAQC,IAAIgB,GACZR,EAAKN,SAASe,UACdT,EAAKhD,UAAYwD,OAIlB,CAAApD,IAAA,cAAAiB,MAED,SAAYqC,EAASC,GAChBD,EAAGE,MAAMnC,SAAWkC,EAAKC,MAAMnC,SAClCM,SAAS8B,WAEV,CAAAzD,IAAA,UAAAiB,MAAA,eAAAyC,EAAAC,eAAAC,mBAAAC,MACD,SAAAC,IAAA,IAAAlB,EAAA,OAAAgB,mBAAAG,MAAA,SAAAC,GAAA,eAAAA,EAAAC,KAAAD,EAAAE,MAAA,OACKtB,EAAOxD,KACXA,KAAK8B,WAAaQ,OAAOC,SAASC,KAC9BxC,KAAK+E,OAAOX,OAAUpE,KAAK+E,OAAOX,MAAMnC,QAAkB,IAC7DjC,KAAK6B,OAAQ,EACb7B,KAAK+B,cAAe,EACpB/B,KAAKiC,QAAUjC,KAAK+E,OAAOX,MAAMnC,QACjCjC,KAAKgF,iBAAiBhF,KAAKiC,UAExBgD,OAAKC,IAAIC,QAAQC,QACpBpF,KAAK4D,OAAOC,SAAS,CACpBC,KAAM,mBACNuB,KAAM,KACJtB,MAAK,SAAAC,GACPR,EAAKtB,SAAW8B,KAEjB,wBAAAY,EAAAU,UAAAZ,EAAA,UAED,SAAAa,IAAA,OAAAjB,EAAAkB,MAAA,KAAAC,WAAA,OAAAF,EAnBA,MApE0B,CAASG,QAgEpCC,EAAA,CADCC,eAAM,U,gIA/DanE,EAAOkE,EAAA,CAL3BE,eAAU,CACVC,WAAY,MAIQrE,WChB6W,I,kCCS/XsE,EAAY,eACd,EACAjG,EACA0B,GACA,EACA,KACA,WACA,MAIa,aAAAuE,E,2CCpBf,W","file":"js/chunk-2be1b670.97620816.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!./newsGroup.vue?vue&type=style&index=0&id=0b8bf67c&prod&lang=css\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"previewbox\"},[(!_vm.iframeBox)?_c('div',[_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"newsList\"},_vm._l((_vm.newsGroup.news),function(itemnews,newsindex){return _c('div',{key:newsindex,staticClass:\"newsItem\",on:{\"click\":function($event){return _vm.goNewsDetail(itemnews.id)}}},[_c('div',{staticClass:\"title\"},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(itemnews.title)+\"\\n\\t\\t\\t\\t\\t\")]),_c('div',{staticClass:\"imgbox\"},[_c('img',{attrs:{\"src\":itemnews.coverImg,\"mode\":\"widthFix\"}})]),_c('div',{staticClass:\"newspopup\"})])}),0)])]):_vm._e(),(_vm.iframeBox)?_c('div',[_c('iframe',{staticStyle:{\"width\":\"385px\",\"min-height\":\"500px\",\"border\":\"none\"},attrs:{\"src\":_vm.detailUrl,\"id\":\"detail\",\"name\":\"detail\"}})]):_vm._e()])\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 iView from 'iview';\r\n\timport AbpBase from '@/lib/abpbase'\t\r\n\t@Component({\r\n\t\tcomponents: {\r\n\r\n\t\t}\r\n\t})\r\n\texport default class Preview extends AbpBase {\r\n\t\t// @Prop({\r\n\t\t// \ttype: Boolean,\r\n\t\t// \tdefault: false\r\n\t\t// }) value: boolean;\r\n\t\tvalue: boolean = false;\r\n\t\tcurrentUrl: string = '';\r\n\t\tshowClosable: boolean = true;\r\n\t\tnewsGroup: Object = new Object();\r\n\t\tgroupid: number = 0;\r\n\t\tuserInfo: Object = new Object();\r\n\t\tdetailUrl: string = '';\r\n\t\tiframeBox: boolean = false;\r\n\t\t\r\n\t\treturnList(){\r\n\t\t\tthis.detailUrl = '';\r\n\t\t\tthis.iframeBox = false;\r\n\t\t}\r\n\r\n\t\tcopy() {\r\n\t\t\tlet url = window.location.href;\r\n\t\t\t//let url = this.currentUrl.replace(\"newsgroup\", \"preview\") + \"?groupid=\" + this.groupid;\r\n\t\t\tlet oInput = document.createElement('input');\r\n\t\t\toInput.value = url;\r\n\t\t\tdocument.body.appendChild(oInput);\r\n\t\t\toInput.select(); // 选择对象;\r\n\t\t\tconsole.log(oInput.value)\r\n\t\t\tdocument.execCommand(\"Copy\"); // 执行浏览器复制命令\r\n\t\t\tthis.$Message.success(this.L('CopySuccess'));\r\n\t\t\toInput.remove()\r\n\t\t}\r\n\t\tgoNewsDetail(newsid) {\r\n\t\t\twindow.open('#/newsdetail?newid='+newsid+'&preview=1');\r\n\t\t// \tvar url = \"https://gis.yfpo.com/#/newsdetail?newid=\" + newsid;\r\n\t\t// \tif (Util.abp.session.userId) {\r\n\t\t// \t\turl = url + \"&domain=\" + (this.userInfo as any).domainAccount;\r\n\t\t// \t}\r\n\t\t// \tthis.detailUrl = url;\r\n\t\t// \tthis.iframeBox = true;\t\t\r\n\t\t\r\n\t\t// \tthis.$forceUpdate();\r\n\t\t\t// window.open(url, '_blank');\r\n\t\t}\r\n\t\tgetNewsGroupByID(groupid) {\r\n\t\t\tvar that = this;\r\n\t\t\tthat.groupid = groupid;\r\n\t\t\tthis.detailUrl = '';\r\n\t\t\tthis.iframeBox = false;\r\n\t\t\tthat.$Message.loading({\r\n\t\t\t\tcontent: this.L('Loading'),\r\n\t\t\t\tduration: 3\r\n\t\t\t});\r\n\t\t\tthis.$store.dispatch({\r\n\t\t\t\ttype: 'app/getNewsGroupById',\r\n\t\t\t\tid: groupid\r\n\t\t\t}).then((res) => {\r\n\t\t\t\tconsole.log(res);\r\n\t\t\t\tthat.$Message.destroy()\r\n\t\t\t\tthat.newsGroup = res as Object;\r\n\r\n\t\t\t\t//that.loadNewsTo();\r\n\t\t\t})\r\n\t\t}\t\t\n\t\t@Watch('$route')\n\t\troutechange(to: any, from: any) {\n\t\t\tif (to.query.groupid != from.query.groupid) {\n\t\t\t\tlocation.reload();\n\t\t\t}\n\t\t}\r\n\t\tasync created() {\r\n\t\t\tvar that = this;\r\n\t\t\tthis.currentUrl = window.location.href;\t\t\t\r\n\t\t\tif (this.$route.query && (this.$route.query.groupid as any) > 0) {\r\n\t\t\t\tthis.value = true;\r\n\t\t\t\tthis.showClosable = false;\r\n\t\t\t\tthis.groupid = this.$route.query.groupid as any;\r\n\t\t\t\tthis.getNewsGroupByID(this.groupid);\r\n\t\t\t}\r\n\t\t\tif (Util.abp.session.userId) {\r\n\t\t\t\tthis.$store.dispatch({\r\n\t\t\t\t\ttype: 'app/getLoginUser',\r\n\t\t\t\t\tdata: {}\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tthat.userInfo = res;\r\n\t\t\t\t})\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\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!./newsGroup.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!./newsGroup.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./newsGroup.vue?vue&type=template&id=0b8bf67c&scoped=true\"\nimport script from \"./newsGroup.vue?vue&type=script&lang=ts\"\nexport * from \"./newsGroup.vue?vue&type=script&lang=ts\"\nimport style0 from \"./newsGroup.vue?vue&type=style&index=0&id=0b8bf67c&prod&lang=css\"\nimport style1 from \"./newsGroup.vue?vue&type=style&index=1&id=0b8bf67c&prod&scoped=true&lang=less\"\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 \"0b8bf67c\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../node_modules/css-loader/index.js??ref--10-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./newsGroup.vue?vue&type=style&index=1&id=0b8bf67c&prod&scoped=true&lang=less\""],"sourceRoot":""}