{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\system\\Enclosure\\IframeSrc.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\system\\Enclosure\\IframeSrc.vue","mtime":1675071993085},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\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 { Message } from \"element-ui\";\nimport req from \"@/request.js\";\nexport default {\n  name: \"iframe-src\",\n  props: [\"iframeSrc\", \"fileRow\"],\n  data: function data() {\n    return {\n      iframeSrcDialog: false,\n      dataSrc: ''\n    };\n  },\n  watch: {\n    iframeSrc: function iframeSrc(newVal, oldVal) {\n      if (newVal) {\n        var _this = this;\n\n        req.get(this.iframeSrc, 'arraybuffer').then(function (response) {\n          var type = response.headers['content-type'];\n\n          if (type) {\n            _this.dataSrc = window.URL.createObjectURL(new Blob([response.data], {\n              type: type\n            }));\n          } else {\n            _this.dataSrc = window.URL.createObjectURL(new Blob([response.data]));\n          }\n        });\n      }\n    }\n  },\n  methods: {\n    handleOpen: function handleOpen() {\n      this.iframeSrcDialog = true;\n    },\n    //关闭弹框\n    close: function close() {\n      this.iframeSrcDialog = false;\n    },\n    //附件下载\n    download: function download() {\n      req.download(\"${portal}/file/v1/downloadFile?fileId=\" + this.fileRow.id);\n    }\n  }\n};",null]}