{"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/MultiLanguage/MultiLanguageList.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/MultiLanguage/MultiLanguageList.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 \"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//\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 { getMultiLanguageList, deleteMultiLanguageList, reloadMultiLanguage } from \"@/service/MultiLanguageAPI.js\";\nimport { delMsg } from '@/utils/elementui';\nexport default {\n name: \"MacroLibsList\",\n data: function data() {\n return {\n formInline: {\n inputName: \"\" //名称\n\n },\n tableHeight: \"100\",\n tableData: {},\n parmas: {\n id: \"\",\n searchword: \"\",\n currpage: \"\",\n pagelines: \"\"\n },\n multipleSelection: [] //将获取选中的数组放进去\n\n };\n },\n mounted: function mounted() {\n this.getScollerHeight();\n this.getMultiLanguagetions();\n },\n methods: {\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 父组件外边距, 38分页\n\n _this.tableHeight = clientHeight - 60 - 32 - 41 - 50 - 71 - 20 - 38 + 'px';\n }, 100);\n },\n\n /**\n * 获取多语言列表的数据\n */\n getMultiLanguagetions: function () {\n var _getMultiLanguagetions = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(searchword, pagelines) {\n var currpage,\n params,\n appId,\n response,\n data,\n i,\n _args = arguments;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n currpage = _args.length > 2 && _args[2] !== undefined ? _args[2] : 1;\n params = _objectSpread(_objectSpread({}, this.params), {}, {\n label: searchword ? searchword : \"\",\n text: '',\n type: '',\n currpage: currpage,\n pagelines: pagelines ? pagelines : \"\"\n });\n this.params = params;\n appId = sessionStorage.getItem(\"appId\");\n _context.next = 6;\n return getMultiLanguageList(params, appId);\n\n case 6:\n response = _context.sent;\n\n if (response.data.errcode == 0) {\n data = response.data.data;\n\n if (data.data == null) {\n data.data = [];\n }\n\n for (i = 0; i < data.data.length; i++) {\n if (data.data[i].type == 1) {\n data.data[i].language = \"English\";\n } else if (data.data[i].type == 2) {\n data.data[i].language = \"简体中文\";\n } else {\n data.data[i].language = \"繁體中文\";\n }\n }\n\n this.tableData = response.data.data;\n }\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function getMultiLanguagetions(_x, _x2) {\n return _getMultiLanguagetions.apply(this, arguments);\n }\n\n return getMultiLanguagetions;\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.getMultiLanguagetions(this.formInline.inputName, this.params.pagelines, val);\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.getMultiLanguagetions(\"\", val);\n },\n\n /**\n * 点击列表某一列进去编辑\n */\n rowClick: function rowClick(row) {\n this.$store.dispatch(\"rightHelpPageParams\", {\n title: \"多语言信息\",\n url: \"domain/domain_multiLanguages_info_help.html\"\n });\n var params = {\n appId: sessionStorage.getItem(\"appId\"),\n languageId: row.id\n };\n this.$router.push({\n path: '/home/softwaresdetails/MultiLanguage',\n query: {\n edit: true,\n params: params\n }\n });\n },\n\n /**\n * selectInputName\n * 名称查询\n */\n selectInputName: function selectInputName() {\n this.getMultiLanguagetions(this.formInline.inputName);\n },\n\n /**\n * 重置查询\n */\n resetApplictions: function resetApplictions() {\n this.formInline.inputName = '';\n this.selectInputName();\n },\n\n /**\n * 获取选中的表格数据\n */\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n /**\n * 重新加载多语言\n */\n reloadLanguage: function () {\n var _reloadLanguage = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var response;\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 reloadMultiLanguage();\n\n case 2:\n response = _context2.sent;\n\n if (response.data.errcode == 0) {\n this.$message.success(response.data.data);\n this.getMultiLanguagetions();\n }\n\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function reloadLanguage() {\n return _reloadLanguage.apply(this, arguments);\n }\n\n return reloadLanguage;\n }(),\n\n /**\n * 新建多语言详情\n */\n addDataSource: function addDataSource() {\n this.$store.dispatch(\"rightHelpPageParams\", {\n title: \"多语言信息\",\n url: \"domain/domain_multiLanguages_info_help.html\"\n });\n this.$router.push({\n path: '/home/softwaresdetails/MultiLanguage',\n query: {\n edit: false\n }\n });\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 deleteMultiLanguageList(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.getMultiLanguagetions();\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]}