{"remainingRequest":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/modulesDetail/FormFormat.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/src/components/modulesDetail/FormFormat.vue","mtime":1701674859502},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/thread-loader/dist/cjs.js","mtime":1701674873947},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/babel-loader/lib/index.js","mtime":1701674874357},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/cache-loader/dist/cjs.js","mtime":1701674874584},{"path":"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/vue-loader/lib/index.js","mtime":1701674874903}],"contextDependencies":[],"result":["import \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/@babel/runtime-corejs2/helpers/esm/asyncToGenerator\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { getContextPath, getStaticPath } from '@/service/ModulesApi.js';\nimport ScriptEditor from '@/components/Common/scriptEditor';\nimport { delMsg } from '@/utils/elementui';\nexport default {\n name: 'FormFormat',\n components: {\n ScriptEditor: ScriptEditor\n },\n data: function data() {\n return {\n appId: sessionStorage.getItem('appId'),\n iframeHeight: 400,\n iframeStyle: '',\n //iframe全屏样式\n iframeHeightBefore: 100,\n src: \"\",\n contextPath: getContextPath(),\n staticPath: getStaticPath(),\n spanClick: 'handleSpanClick',\n scriptEditorVisible: false,\n // 脚本编辑器弹窗\n currentScriptEditor: '',\n // 当前点击的是哪一个脚本编辑器\n code: '' //新表单设计器打开脚本编辑器的值\n\n };\n },\n props: {\n showType: String,\n moduleId: String,\n formId: String\n },\n mounted: function mounted() {\n var _this = this;\n\n //操作脚本编辑器2021年5月8日14:00:56\n window['openIscript'] = function (code, formIscriptName, scriptid) {\n if (_this.showType == 'new') {\n _this.currentScriptEditor = 'newFormDesigner';\n } else {\n _this.currentScriptEditor = 'oldFormDesigner';\n }\n\n _this.code = code;\n _this.formIscriptName = formIscriptName;\n _this.scriptid = scriptid;\n _this.scriptEditorVisible = true;\n }; //操作iframe的全屏事件\n\n\n window[this.spanClick] = function (isScresn) {\n _this.allScrean(isScresn);\n };\n\n this.getScollerHeight();\n\n if (this.showType == 'old') {\n this.src = \"./formHtml/fcktest2.html?contextPath=\".concat(getContextPath());\n } else {\n this.src = \"./formHtml/formbuilder/dist/index.html?contextPath=\".concat(getContextPath());\n }\n\n this.src += \"&staticPath=\".concat(this.staticPath, \"&moduleId=\").concat(this.moduleId, \"&application=\").concat(this.appId, \"&formid=\").concat(this.formId);\n },\n computed: {\n /**\n * 将 textarea 的值写入 脚本编辑器\n */\n showScritptEditorCode: function showScritptEditorCode() {\n var code;\n\n if (this.currentScriptEditor == 'newFormDesigner') {\n code = this.code;\n } else if (this.currentScriptEditor == 'oldFormDesigner') {\n code = this.code;\n }\n\n return code;\n }\n },\n methods: {\n //全屏操作事件\n allScrean: function allScrean(isScresn) {\n if (isScresn) {\n this.iframeStyle = 'position:absolute;top:0;left:0;right:0;bottom:0;z-index:10';\n this.iframeHeight = '100%';\n } else {\n this.iframeStyle = '';\n console.log('brefore', this.iframeHeightBefore);\n this.iframeHeight = this.iframeHeightBefore;\n }\n },\n //vue中的全屏按钮点击事件\n openAllScren: function openAllScren() {\n this.$refs['formFormat'].contentWindow.document.getElementById('handleTest').click();\n },\n // 重置字段id\n resetId: function () {\n var _resetId = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return delMsg(this.$t('msg.resetId'), this.$t('msg.tip'));\n\n case 3:\n this.$refs.formFormat.contentWindow.document.getElementById('resetid').click();\n this.$message.success(this.$t('msg.reset_ss'));\n _context.next = 10;\n break;\n\n case 7:\n _context.prev = 7;\n _context.t0 = _context[\"catch\"](0);\n console.log(_context.t0);\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[0, 7]]);\n }));\n\n function resetId() {\n return _resetId.apply(this, arguments);\n }\n\n return resetId;\n }(),\n\n /**\n * 动态计算页面table高度\n */\n getScollerHeight: function getScollerHeight() {\n var _this2 = this;\n\n setTimeout(function () {\n var clientHeight = document.documentElement.clientHeight || document.body.clientHeight;\n _this2.iframeHeight = clientHeight - 60 - 32 - 41 - 50 - 20 - 16;\n _this2.iframeHeightBefore = clientHeight - 60 - 32 - 41 - 50 - 20 - 16;\n }, 100);\n },\n save: function save() {\n this.$refs.formFormat.contentWindow.document.getElementById('save_btn').click();\n console.log(window.formFormat);\n return window.formFormat;\n },\n\n /**\n * 将脚本编辑器的值写入到textarea中\n */\n handleScriptEditor: function handleScriptEditor(val) {\n if (this.currentScriptEditor == 'newFormDesigner') {\n this.$refs.formFormat.contentWindow.formApp.setScript(this.scriptid, this.formIscriptName, val);\n this.$refs.formFormat.contentWindow.document.getElementsByName(this.formIscriptName)[0].value = val;\n } else if (this.currentScriptEditor == 'oldFormDesigner') {\n this.$refs.formFormat.contentWindow[this.$refs.formFormat.contentWindow.length - 1][0].document.getElementById(this.formIscriptName).value = val;\n }\n }\n }\n};",null]}