{"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/ExcelConf.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/ExcelConf.vue","mtime":1701674859498},{"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 _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//\nimport { getExcelConfList, deleteExcelConfList } from \"@/service/AdvancedToolAPI.js\";\nimport { getContextPath } from \"@/service/ModulesApi.js\";\nimport publicTable from \"@/components/Common/publicTable.vue\";\nimport { delMsg } from '@/utils/elementui';\nexport default {\n name: \"excelConf\",\n data: function data() {\n return {\n tableHeight: \"100\",\n params: {\n id: \"\",\n inputName: \"\",\n currpage: 1,\n pagelines: 10\n },\n multipleSelection: [],\n //将获取选中的数组放进去\n contextPath: getContextPath(),\n src: \"./excelHtml/excelHtmlTem.html?contextPath=\".concat(getContextPath()),\n iframeHeight: 400,\n type: 'list',\n row: null,\n tableData: {\n params: [{\n name: 'inputName',\n label: this.$t('label.name'),\n value: \"\"\n }]\n }\n };\n },\n components: {\n publicTable: publicTable\n },\n mounted: function mounted() {\n this.getScollerHeight();\n this.getExcelConftions();\n },\n methods: {\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 += \"&application=\".concat(sessionStorage.getItem(\"appId\"), \"&excelConfigId=\");\n },\n\n /**\n * 保存\n */\n onSave: function onSave() {\n this.$refs.excelConfig.contentWindow.document.getElementById(\"save_btn\").click();\n },\n //退出\n onExit: function onExit() {\n this.type = 'list';\n this.getExcelConftions();\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.src += \"&application=\".concat(sessionStorage.getItem(\"appId\"), \"&excelConfigId=\").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.$nextTick(function () {\n if (_this.$refs.publictable) _this.$refs.publictable.init(_this.tableData);\n });\n\n _this.iframeHeight = clientHeight - 60 - 32 - 41 - 40;\n }, 100);\n },\n\n /**\n * 获取Excel列表的数据\n */\n getExcelConftions: function () {\n var _getExcelConftions = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var _this2 = this;\n\n var appId, response, data;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n appId = sessionStorage.getItem(\"appId\");\n _context.next = 3;\n return getExcelConfList(this.params, appId);\n\n case 3:\n response = _context.sent;\n\n if (response.data.errcode == 0) {\n data = response.data.data;\n this.tableData.columns = [{\n prop: 'name',\n label: this.$t('excelconf.name')\n }];\n this.tableData.data = data;\n this.$nextTick(function () {\n if (_this2.$refs.publictable) _this2.$refs.publictable.init(_this2.tableData);\n });\n }\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function getExcelConftions() {\n return _getExcelConftions.apply(this, arguments);\n }\n\n return getExcelConftions;\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 this.getExcelConftions();\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 this.getExcelConftions();\n },\n\n /**\n * selectInputName\n * 名称查询\n */\n selectInputName: function selectInputName() {\n this.getExcelConftions();\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 _callee2() {\n var selectData, data, i, response;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.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 _context2.next = 18;\n break;\n }\n\n _context2.prev = 4;\n _context2.next = 7;\n return delMsg(this.$t('msg.delConfirm'), this.$t('msg.tip'));\n\n case 7:\n _context2.next = 9;\n return deleteExcelConfList(data);\n\n case 9:\n response = _context2.sent;\n\n if (response.data.errcode == 0) {\n this.$message.success(this.$t('msg.remove_ss'));\n this.getExcelConftions();\n }\n\n _context2.next = 16;\n break;\n\n case 13:\n _context2.prev = 13;\n _context2.t0 = _context2[\"catch\"](4);\n console.log(_context2.t0);\n\n case 16:\n _context2.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 _context2.stop();\n }\n }\n }, _callee2, 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]}