{"remainingRequest":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\babel-loader\\lib\\index.js!E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\2023\\yancheng0718\\yanchengPowerSupply\\src\\component\\routeDetail.vue?vue&type=script&lang=js&","dependencies":[{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\src\\component\\routeDetail.vue","mtime":1689642397092},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\babel.config.js","mtime":1689642387810},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1689642389292},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\babel-loader\\lib\\index.js","mtime":1689642388897},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1689642389292},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\index.js","mtime":1689642396086}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.split\";\nimport axios from \"axios\";\nvar docx = require(\"docx-preview\");\nwindow.JSZip = require(\"jszip\");\nexport default {\n name: \"routeDetail\",\n props: [\"routeItem\"],\n data: function data() {\n return {\n // titleList:['班组','故障路线','故障状态','故障类型','故障时间','故障描述','故障处理']\n wordShow: false\n };\n },\n mounted: function mounted() {\n console.log(this.routeItem, \"sssssssssssss\");\n },\n methods: {\n closeWord: function closeWord() {\n // word文档的显隐\n this.wordShow = false;\n },\n handleClose: function handleClose() {\n this.$parent.routeShow = \"\";\n this.$parent.routeItem = null;\n },\n detailBtn: function detailBtn(url) {\n // console.log(url, \"word下载链接\");\n var url = \"/\" + url.split(\"/\")[3] + \"/\" + url.split(\"/\")[4];\n var that = this;\n axios({\n url: \"/app\" + url,\n responseType: \"blob\"\n }).then(function (_ref) {\n var data = _ref.data;\n console.log(data, \"数据\");\n that.$nextTick(function () {\n // doc.renderAsync(data,that.$refs.word)\n docx.renderAsync(data, that.$refs.word, null, {\n className: \"docx\",\n //默认和文档样式类的类名/前缀\n inWrapper: true,\n //启用围绕文档内容呈现包装器\n ignoreWidth: true,\n //禁用页面的渲染宽度\n ignoreHeight: true,\n //禁用页面的渲染高度\n ignoreFonts: false,\n //禁用字体渲染\n breakPages: true,\n //在分页符上启用分页\n ignoreLastRenderedPageBreak: true,\n //在lastRenderedPageBreak元素上禁用分页\n experimental: false,\n //启用实验功能(制表符停止计算)\n trimXMLDeclaration: true,\n //如果为true,则在解析之前将从xml文档中删除xml声明\n useBase64URL: false,\n //如果为true,图像、字体等将转换为base 64 URL,否则使用URL.createObjectURL\n useMathMLPolyfill: false,\n //包括用于铬、边等的MathML多填充。\n showChanges: true,\n //启用文档更改的实验渲染(插入/删除)\n debug: false //启用额外的日志记录\n }).then(function (res) {\n that.wordShow = true;\n });\n });\n });\n },\n created: function created() {\n // console.log(this.routeItem, \"故障详情\");\n // console.log(this.routeItem, \"路线详细数据\");\n // var arr = Object.keys(this.routeItem);\n // console.log(arr);\n }\n }\n};",{"version":3,"mappings":";AA6DA;AACA;AACAA;AACA;EACAC;EACAC;EACAC;IACA;MACA;MACAC;IACA;EACA;EACAC;IACAC;EACA;EACAC;IACAC;MACA;MACA;IACA;IACAC;MACA;MACA;IACA;IACAC;MACA;MACA;MACA;MACAC;QACAC;QACAC;MACA;QAAA;QACAP;QAEAQ;UACA;UACAC,KACAC;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;UACA,GACAC;YACAhB;UACA;QACA;MACA;IACA;IACAiB;MACA;MACA;MACA;MACA;IACA;EACA;AACA","names":["window","name","props","data","wordShow","mounted","console","methods","closeWord","handleClose","detailBtn","axios","url","responseType","that","docx","renderAsync","className","inWrapper","ignoreWidth","ignoreHeight","ignoreFonts","breakPages","ignoreLastRenderedPageBreak","experimental","trimXMLDeclaration","useBase64URL","useMathMLPolyfill","showChanges","debug","then","created"],"sourceRoot":"src/component","sources":["routeDetail.vue"],"sourcesContent":["\r\n\r\n\r\n\r\n\r\n"]}]}