{"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\\components\\docx\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\components\\docx\\index.vue","mtime":1681899400049},{"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//\nimport apiList from '@/api/bigScreen/districView.js';\nimport { getLocalBLob } from '@/utils/getLocalFile.js';\n\nvar docx = require('docx-preview');\n\nwindow.JSZip = require('jszip');\nexport default {\n name: 'Docx',\n props: {\n fileUrl: {\n default: '',\n type: String,\n required: true\n },\n fileId: {\n default: '',\n type: String,\n required: true\n }\n },\n data: function data() {\n return {\n noFile: false,\n text: ''\n };\n },\n mounted: function mounted() {\n this.initDocx();\n },\n methods: {\n initDocx: function () {\n var _initDocx = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\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 = 9;\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 console.log(bLob, 'bLob');\n docx.renderAsync(bLob, this.$refs.file); // 渲染到页面预览\n\n _context.next = 19;\n break;\n\n case 9:\n if (!this.fileUrl) {\n _context.next = 18;\n break;\n }\n\n this.noFile = false;\n _context.next = 13;\n return getLocalBLob(this.fileUrl);\n\n case 13:\n _bLob = _context.sent;\n docx.renderAsync(_bLob, this.$refs.file);\n this.noFile = false; // 渲染到页面预览\n\n _context.next = 19;\n break;\n\n case 18:\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 19:\n this.$emit('closeLoading');\n\n case 20:\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 }\n};",null]}