{"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/AdvancedTool/Eip.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/AdvancedTool/Eip.vue","mtime":1701674859497},{"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 \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"/data/jenkins/workspace/test-v5in-source-front-01/src/badp-bcxin-5.x/obpm-designer-web/node_modules/@babel/runtime-corejs2/helpers/esm/defineProperty\";\nimport \"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\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { getEipList as _getEipList, deleteEipList, updataEip, createEip } from '@/service/AdvancedToolAPI.js';\nimport { getContextPath } from '@/service/ModulesApi.js';\nimport publicTable from '@/components/Common/publicTable.vue';\nimport { nameCheck } from '@/utils/utils.js';\nimport { delMsg } from '@/utils/elementui';\nexport default {\n name: 'excelConf',\n data: function data() {\n return {\n tableHeight: '100',\n src: '',\n iframeHeight: 400,\n iframeStyle: '',\n //iframe全屏样式\n params: {\n id: '',\n inputName: '',\n currpage: '',\n pagelines: ''\n },\n multipleSelection: [],\n //将获取选中的数组放进去\n type: 'list',\n row: null,\n tableData: {\n params: [{\n name: 'inputName',\n label: this.$t('label.name'),\n value: ''\n }]\n },\n detail: {\n id: '',\n name: '',\n xml: '',\n description: ''\n },\n rules: {\n name: [{\n required: true,\n message: this.$t('placeholder.name'),\n trigger: 'blur'\n }, {\n validator: nameCheck,\n trigger: 'blur'\n }]\n },\n appId: sessionStorage.getItem('appId'),\n btnLoading: false // 按钮显示加载图标\n\n };\n },\n components: {\n publicTable: publicTable\n },\n mounted: function mounted() {\n this.getScollerHeight();\n this.getEipList();\n },\n methods: {\n /**\n * 显示源代码\n */\n showCode: function showCode() {\n this.$refs.camelDetail.contentWindow.document.getElementById(\"showCode\").click();\n },\n //更新参数\n updataParams: function updataParams(obj) {\n Object.assign(this.params, obj);\n },\n //添加\n addNew: function addNew() {\n this.$store.dispatch('rightHelpPageParams', {\n title: this.$t('label.import_config'),\n url: 'application/application_info_advancedTools_excelConf_info_help.html'\n });\n this.type = 'detail';\n this.src = \"./camelHtml/dist/index.html?contextPath=\".concat(getContextPath(), \"&appId=\").concat(this.appId);\n },\n\n /**\n * 保存\n */\n onSave: function () {\n var _onSave = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var response, _response;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.$refs.camelDetail.contentWindow.document.getElementById(\"save_btn\").click();\n console.log(window.camelData);\n this.detail = _objectSpread(_objectSpread({}, this.detail), {}, {\n name: window.camelData.name,\n description: window.camelData.description,\n xml: window.camelData.xml\n });\n\n if (!(this.detail.id != '')) {\n _context.next = 12;\n break;\n }\n\n this.btnLoading = true;\n _context.next = 7;\n return updataEip(this.detail, this.detail.id, this.appId);\n\n case 7:\n response = _context.sent;\n this.btnLoading = false;\n\n if (response.data.errcode == 0) {\n this.$message.success(this.$t('msg.ss'));\n }\n\n _context.next = 18;\n break;\n\n case 12:\n this.btnLoading = true;\n _context.next = 15;\n return createEip(this.detail, this.appId);\n\n case 15:\n _response = _context.sent;\n this.btnLoading = false;\n\n if (_response.data.errcode == 0) {\n this.$message.success(this.$t('msg.ss'));\n this.detail.id = _response.data.id;\n }\n\n case 18:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function onSave() {\n return _onSave.apply(this, arguments);\n }\n\n return onSave;\n }(),\n //退出\n onExit: function onExit() {\n this.type = 'list';\n this.getEipList();\n this.detail = {\n id: '',\n name: '',\n xml: '',\n description: ''\n };\n },\n\n /**\n * 点击数据\n */\n onRowClick: function onRowClick(row) {\n this.$store.dispatch('rightHelpPageParams', {\n title: this.$t('label.import_config'),\n url: 'application/application_info_advancedTools_excelConf_info_help.html'\n });\n this.type = 'detail';\n this.detail = row;\n this.src = \"./camelHtml/dist/index.html?contextPath=\".concat(getContextPath(), \"&appId=\").concat(this.appId, \"&eipId=\").concat(row.id);\n },\n\n /**\n * 动态计算页面table高度\n */\n getScollerHeight: function getScollerHeight() {\n var _this = this;\n\n setTimeout(function () {\n var clientHeight = document.documentElement.clientHeight || document.body.clientHeight; //60 头部, 32 面包屑, 41 第一层页签, 40 第二层页签, 50 列表标题, 71 查询, 20 父组件外边距, 32分页\n\n _this.tableData.tableHeight = clientHeight - 60 - 32 - 41 - 40 - 50 - 71 - 20 - 40 + 'px';\n\n _this.$refs.publictable.init(_this.tableData);\n\n _this.iframeHeight = clientHeight - 60 - 32 - 41 - 50 - 40; // 8: 删除画布内容会错位\n }, 100);\n },\n\n /**\n * 获取Excel列表的数据\n */\n getEipList: function () {\n var _getEipList2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var response, data;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return _getEipList(this.params, this.appId);\n\n case 2:\n response = _context2.sent;\n\n if (response.data.errcode == 0) {\n data = response.data.data;\n this.tableData.columns = [{\n prop: 'name',\n label: this.$t('eip.name')\n }];\n this.tableData.data = data;\n this.$refs.publictable.init(this.tableData);\n }\n\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function getEipList() {\n return _getEipList2.apply(this, arguments);\n }\n\n return getEipList;\n }(),\n\n /**\n * 当前页\n */\n handleCurrentChange: function handleCurrentChange(val) {\n var params = _objectSpread(_objectSpread({}, this.params), {}, {\n currpage: val\n });\n\n this.params = params;\n },\n\n /**\n * 切换分页,每页显示多少条\n */\n handleSizeChange: function handleSizeChange(val) {\n var params = _objectSpread(_objectSpread({}, this.params), {}, {\n pagelines: val\n });\n\n this.params = params;\n },\n\n /**\n * selectInputName\n * 名称查询\n */\n selectInputName: function selectInputName() {\n this.getEipList();\n },\n\n /**\n * 获取选中的表格数据\n */\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n /**\n * 移除\n */\n remove: function () {\n var _remove = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n var selectData, data, i, response;\n return regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n selectData = this.multipleSelection;\n data = [];\n\n for (i = 0; i < selectData.length; i++) {\n data.push(selectData[i].id);\n }\n\n if (!(data.length > 0)) {\n _context3.next = 18;\n break;\n }\n\n _context3.prev = 4;\n _context3.next = 7;\n return delMsg(this.$t('msg.delConfirm'), this.$t('msg.tip'));\n\n case 7:\n _context3.next = 9;\n return deleteEipList(data);\n\n case 9:\n response = _context3.sent;\n\n if (response.data.errcode == 0) {\n this.$message.success(this.$t('msg.remove_ss'));\n this.getEipList();\n }\n\n _context3.next = 16;\n break;\n\n case 13:\n _context3.prev = 13;\n _context3.t0 = _context3[\"catch\"](4);\n console.log(_context3.t0);\n\n case 16:\n _context3.next = 19;\n break;\n\n case 18:\n this.$message.error(this.$t('msg.check_data'));\n\n case 19:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this, [[4, 13]]);\n }));\n\n function remove() {\n return _remove.apply(this, arguments);\n }\n\n return remove;\n }()\n },\n watch: {\n '$store.state.rightHelpPageParams': {\n handler: function handler() {\n if (this.$store.state.rightHelpFrame) {\n this.$store.state.rightHelpFrame.contentWindow.showHelpContentHtml(this.$store.state.rightHelpPageParams.title, this.$store.state.rightHelpPageParams.url);\n }\n },\n deep: true\n }\n }\n};",null]}