{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\components\\news\\newsGet.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\news\\newsGet.vue","mtime":1675214577651},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport _toConsumableArray from \"D:/jenkins/workspace/xypm-web/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { mapState, mapActions } from \"vuex\";\nimport req from \"@/request.js\";\nimport utils from \"@/utils.js\";\nimport { Message } from \"element-ui\";\nimport FilePreview from \"@/components/common/FilePreview.vue\";\nexport default {\n  props: [\"newsId\"],\n  name: \"newsGet\",\n  components: {\n    FilePreview: FilePreview\n  },\n  data: function data() {\n    return {\n      src: \"\",\n      fileId: \"\",\n      fileTree: \"\",\n      filesList: [],\n      data: []\n    };\n  },\n  computed: mapState({\n    filesData: function filesData(state) {\n      return state.menu.filesData;\n    }\n  }),\n  mounted: function mounted() {\n    var _this = this;\n\n    setTimeout(function () {\n      if (_this.$store.state.menu.filesData) {\n        _this.data = _toConsumableArray(_this.$store.state.menu.filesData.ffj);\n\n        if (_this.data) {\n          for (var i = 0; i < _this.data.length; i++) {\n            _this.filesList.push({\n              id: _this.data[i].id,\n              name: _this.data[i].name,\n              size: _this.data[i].size,\n              type: utils.substringType(_this.data[i].name, \".\"),\n              bytes: utils.bigDecimal(_this.data[i].size),\n              username: _this.data[i].username\n            });\n          }\n        }\n      }\n    }, 300);\n  },\n  methods: {\n    //返回列表\n    back: function back() {\n      this.$router.go(-1); //返回上一层\n    },\n    //附件下载\n    download: function download(fileRow) {\n      req.download(\"${portal}/system/file/v1/downloadFile?fileId=\" + fileRow.id);\n    },\n    //查看附件\n    search: function search(fileData) {\n      var obj = {};\n      obj.id = fileData.id;\n      obj.name = fileData.name;\n      obj.size = fileData.size;\n      this.$refs.filePreview.preview(obj);\n    }\n  },\n  created: function created() {\n    this.$store.dispatch(\"menu/getNewsById\", this.newsId);\n  }\n};",null]}