{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\docPreview.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\docPreview.vue","mtime":1698435711923},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/reform-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { getLocalBLob } from '@/utils/getLocalFile.js';\n\nvar docx = require('docx-preview');\n\nwindow.JSZip = require('jszip');\nimport Docx from '@/components/docx/index.vue';\nimport apiList from '@/api/bigScreen/districView.js';\nvar portal = window.context.portal;\nexport default {\n name: 'docPreview',\n components: {\n Docx: Docx\n },\n props: {\n options: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n loading: false,\n fileId: '',\n noFile: false,\n text: ''\n };\n },\n mounted: function mounted() {\n var date = JSON.parse(sessionStorage.getItem('searchDate'));\n\n if (this.options.type === 'satisfaction') {\n this.getSatisfaction(date);\n }\n },\n methods: {\n initDocx: function () {\n var _initDocx = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var _this = this;\n\n var bLob, _bLob, searchDate;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!this.fileId) {\n _context.next = 8;\n break;\n }\n\n this.noFile = false;\n _context.next = 4;\n return apiList.previewFile(this.fileId);\n\n case 4:\n bLob = _context.sent;\n docx.renderAsync(bLob, this.$refs.file); // 渲染到页面预览\n\n _context.next = 18;\n break;\n\n case 8:\n if (!this.fileUrl) {\n _context.next = 17;\n break;\n }\n\n this.noFile = false;\n _context.next = 12;\n return getLocalBLob(this.fileUrl);\n\n case 12:\n _bLob = _context.sent;\n docx.renderAsync(_bLob, this.$refs.file);\n this.noFile = false; // 渲染到页面预览\n\n _context.next = 18;\n break;\n\n case 17:\n if (!this.fileUrl && !this.fileId) {\n searchDate = sessionStorage.getItem('searchDate');\n searchDate = JSON.parse(searchDate);\n this.noFile = true;\n this.text = \"\".concat(searchDate.year, \"\\u5E74\\u7B2C\").concat(searchDate.quarter, \"\\u5B63\\u5EA6\\u6682\\u65E0\\u62A5\\u544A\");\n }\n\n case 18:\n setTimeout(function () {\n _this.loading = false;\n }, 900);\n\n case 19:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function initDocx() {\n return _initDocx.apply(this, arguments);\n }\n\n return initDocx;\n }(),\n getSatisfaction: function getSatisfaction(data) {\n var _this2 = this;\n\n this.loading = true;\n apiList.getSatisfaction(data, function (res) {\n if (res) {\n _this2.fileId = res.fileList[0].id;\n\n _this2.initDocx();\n }\n });\n },\n download: function download() {\n window.open(portal + \"/file/v1/downloadFile?fileId=\".concat(this.fileId), '_self');\n }\n }\n};",null]}