{"remainingRequest":"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\\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":["\r\nimport axios from \"axios\";\r\nlet docx = require(\"docx-preview\");\r\nwindow.JSZip = require(\"jszip\");\r\nexport default {\r\n name: \"routeDetail\",\r\n props: [\"routeItem\"],\r\n data() {\r\n return {\r\n // titleList:['班组','故障路线','故障状态','故障类型','故障时间','故障描述','故障处理']\r\n wordShow: false,\r\n };\r\n },\r\n mounted() {\r\n console.log(this.routeItem, \"sssssssssssss\");\r\n },\r\n methods: {\r\n closeWord() {\r\n // word文档的显隐\r\n this.wordShow = false;\r\n },\r\n handleClose() {\r\n this.$parent.routeShow = \"\";\r\n this.$parent.routeItem = null;\r\n },\r\n detailBtn(url) {\r\n // console.log(url, \"word下载链接\");\r\n var url = \"/\" + url.split(\"/\")[3] + \"/\" + url.split(\"/\")[4];\r\n var that = this;\r\n axios({\r\n url: \"/app\" + url,\r\n responseType: \"blob\",\r\n }).then(({ data }) => {\r\n console.log(data, \"数据\");\r\n\r\n that.$nextTick(() => {\r\n // doc.renderAsync(data,that.$refs.word)\r\n docx\r\n .renderAsync(data, that.$refs.word, null, {\r\n className: \"docx\", //默认和文档样式类的类名/前缀\r\n inWrapper: true, //启用围绕文档内容呈现包装器\r\n ignoreWidth: true, //禁用页面的渲染宽度\r\n ignoreHeight: true, //禁用页面的渲染高度\r\n ignoreFonts: false, //禁用字体渲染\r\n breakPages: true, //在分页符上启用分页\r\n ignoreLastRenderedPageBreak: true, //在lastRenderedPageBreak元素上禁用分页\r\n experimental: false, //启用实验功能(制表符停止计算)\r\n trimXMLDeclaration: true, //如果为true,则在解析之前将从xml文档中删除xml声明\r\n useBase64URL: false, //如果为true,图像、字体等将转换为base 64 URL,否则使用URL.createObjectURL\r\n useMathMLPolyfill: false, //包括用于铬、边等的MathML多填充。\r\n showChanges: true, //启用文档更改的实验渲染(插入/删除)\r\n debug: false, //启用额外的日志记录\r\n })\r\n .then((res) => {\r\n that.wordShow = true;\r\n });\r\n });\r\n });\r\n },\r\n created() {\r\n // console.log(this.routeItem, \"故障详情\");\r\n // console.log(this.routeItem, \"路线详细数据\");\r\n // var arr = Object.keys(this.routeItem);\r\n // console.log(arr);\r\n },\r\n },\r\n};\r\n",{"version":3,"sources":["routeDetail.vue"],"names":[],"mappings":";AA6DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"routeDetail.vue","sourceRoot":"src/component","sourcesContent":["\r\n\r\n\r\n\r\n\r\n"]}]}