{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/RT/RTContainerNews.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/RT/RTContainerNews.vue","mtime":1739760944311},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["\nexport default {\n data() {\n return {\n titleArr: [\n { name: \"信息化动态\", type: 1 },\n { name: \"信息化工作思路\", type: 2 },\n ],\n inx: 0,\n params: {\n //搜索条件\n pageIndex: 1,\n pageSize: 8,\n total: 0,\n },\n type: 1,\n tableDataNewsList: [],\n tableData: [],\n tableData2: [],\n tableData3: [],\n DialogVisible: false,\n detailContent: {},\n };\n },\n mounted() {\n this.newsCate();\n },\n methods: {\n newsCate() {\n this.$api.newsCateApi(this.params, {\n onSucess: (response) => {\n console.log(response);\n let newsData = response.data.data.filter((item) => {\n return item.item_workbench == \"是\";\n });\n this.titleArr = newsData;\n // console.log(this.titleArr)\n let item = this.titleArr[0]; //默认取第一个分类的列表\n this.newslist(item);\n },\n });\n },\n titleClick(item, index) {\n this.inx = index;\n this.type = item.type;\n this.newslist(item);\n },\n newslist(item) {\n let jsonData = {\n classificationid: item.classificationid,\n ...this.params,\n };\n this.$api.newslistApi(jsonData, {\n onSucess: (response) => {\n console.log(response.data.data);\n this.tableDataNewsList = response.data.data;\n this.tableDataNewsList &&\n this.tableDataNewsList.forEach((item) => {\n if (item.item_image) {\n let path = JSON.parse(item.item_image)[0].path;\n if (path.indexOf(\"http\") > -1) {\n this.$set(item, \"imgpath\", path);\n } else {\n this.$set(item, \"imgpath\", \"/obpm\" + path);\n }\n }\n });\n },\n });\n },\n newsdetailli(item) {\n let jsonData = { articleid: item.articleid, ...this.params };\n this.$api.newsdetailliApi(jsonData, {\n onSucess: (response) => {\n console.log(response.data.data);\n this.detailContent = response.data.data[0];\n if (this.detailContent.item_enclosure) {\n this.detailContent.fjArr = JSON.parse(\n this.detailContent.item_enclosure\n );\n }\n },\n });\n\n this.$api.newsdetailReadingApi(jsonData, {\n onSucess: (response) => {\n console.log(response.data.data);\n },\n });\n },\n fjclick(item) {\n if (item.path.indexOf(\"http\") > -1) {\n window.open(item.path);\n } else {\n window.open(\"/obpm\" + item.path);\n }\n },\n more(inx) { \n let title=this.titleArr[inx].item_classify_name\n let url = `/static/signon/news/index.html?v=${Date.now()}#/DynamicPage${this.titleArr[inx].item_orderby}?id=${this.titleArr[inx].classificationid}`; \n this.$parent.$parent.$parent.$parent.navtopmenuclick(\n 6,\n \"news\",\n url,\n title\n );\n // if(this.type==1){\n // let appId='__Hab04s0VNDPrjFZ3Xlo'\n // let name='挂图作战'\n // let flag=1\n // this.$store.dispatch(\"loadMenus\", {appId, name,flag});\n // }else if(this.type==2){\n // let appId='__l8yB8fdHv3OmXOrHfyF'\n // let name='进度滞后预警'\n // let flag=1\n // this.$store.dispatch(\"loadMenus\", {appId, name,flag});\n // }else if(this.type==3){\n // let appId='__u1xGyTCVhsSaWrgdBed'\n // let name='联合专班日报'\n // let flag=1\n // this.$store.dispatch(\"loadMenus\", {appId, name,flag});\n // }\n },\n },\n};\n",null]}