{"remainingRequest":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/o_word.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/src/components/o_word.vue","mtime":1739760944322},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/test-v5inweb-5.x-vue/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["\nimport Constant from \"@/Constant.js\";\nimport controlHidden from \"@/assets/js/controlHidden.js\";\nexport default {\n name: \"o-word\",\n props: [\"id\"],\n computed: {\n field: function () {\n let formData = this.$parent.findField(this.id);\n if (formData.displayType == 5 || formData.displayType == 3) {\n formData.printHiddenValue = formData.printHiddenValue\n ? formData.printHiddenValue.replace(/ /g, \"\")\n : \"\";\n }\n return this.setEmbedPdf(formData);\n //return this.$parent.findField(this.id);\n },\n },\n\n mounted() {\n this.$nextTick(() => {\n let field = this.field;\n if (field.isHideType) {\n let id = this.id,\n formShowType = field.formShowType;\n controlHidden({ id, field, formShowType });\n }\n });\n },\n\n data: function () {\n return {\n Constant,\n dialogVisible: false,\n wordEditor: \"\",\n currentUrl: \"\",\n };\n },\n\n methods: {\n setEmbedPdf(formData) {\n if (formData.openType == \"1\") {\n let applicationId = undefined,\n path = formData[\"data-full-path\"],\n name = formData[\"data-file-name\"],\n showName = formData[\"data-file-name\"],\n fileType =\n \".\" + formData[\"data-file-name\"]\n ? formData[\"data-file-name\"].split(\".\")[1]\n : \"\", //.doc\n isOpenCloseBtn = false,\n isShowDocName = false,\n curEditUserId = this.$store.state.userId,\n action = formData.action;\n fileType = \".\" + fileType;\n let cp = obpmConfig.obpmFilePath;\n sessionStorage.setItem(\"obpmContextPath\", cp);\n let statiContextPath = obpmConfig.statiContextPath;\n let pdfPath = \"\";\n if (statiContextPath) {\n //5.0 trunk\n sessionStorage.setItem(\"isTrunk\", true);\n pdfPath = obpmConfig.statiContextPath;\n } else {\n //4.4 stable\n sessionStorage.setItem(\"isTrunk\", false);\n pdfPath = cp;\n }\n\n this.wordEditor =\n pdfPath +\n \"/portal/vue/pdf/pdfviewer.html?applicationId=\" +\n applicationId +\n \"&path=\" +\n path +\n \"&name=\" +\n name +\n \"&showName=\" +\n showName +\n \"&fileType=\" +\n fileType +\n \"&isOpenCloseBtn=\" +\n isOpenCloseBtn +\n \"&isShowDocName=\" +\n isShowDocName +\n \"&curEditUserId=\" +\n curEditUserId +\n \"&action=\" +\n action;\n return formData;\n } else if (formData.openType == \"3\") {\n return formData;\n }\n },\n\n openDialog() {\n let applicationId = undefined,\n path = this.field[\"data-full-path\"],\n name = this.field[\"data-file-name\"],\n showName = this.field[\"data-file-name\"],\n fileType =\n \".\" + this.field[\"data-file-name\"]\n ? this.field[\"data-file-name\"].split(\".\")[1]\n : \"\", //.doc\n isOpenCloseBtn = false,\n isShowDocName = false,\n curEditUserId = this.$store.state.userId,\n action = this.field.action;\n fileType = \".\" + fileType;\n let cp = obpmConfig.obpmFilePath;\n sessionStorage.setItem(\"obpmContextPath\", cp);\n let statiContextPath = obpmConfig.statiContextPath;\n let pdfPath = \"\";\n if (statiContextPath) {\n //5.0 trunk\n sessionStorage.setItem(\"isTrunk\", true);\n pdfPath = obpmConfig.statiContextPath;\n } else {\n //4.4 stable\n sessionStorage.setItem(\"isTrunk\", false);\n pdfPath = cp;\n }\n this.wordEditor =\n pdfPath +\n \"/portal/vue/pdf/pdfviewer.html?applicationId=\" +\n applicationId +\n \"&path=\" +\n path +\n \"&name=\" +\n name +\n \"&showName=\" +\n showName +\n \"&fileType=\" +\n fileType +\n \"&isOpenCloseBtn=\" +\n isOpenCloseBtn +\n \"&isShowDocName=\" +\n isShowDocName +\n \"&curEditUserId=\" +\n curEditUserId +\n \"&action=\" +\n action;\n this.dialogVisible = true;\n },\n handleClose() {\n this.dialogVisible = false;\n },\n },\n};\n",null]}