{"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/views/SoftwareList/SoftwareList.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/views/SoftwareList/SoftwareList.vue","mtime":1701674859506},{"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\";\nimport \"core-js/modules/es6.function.name\";\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//\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 publicTable from \"@/components/Common/publicTable.vue\";\nimport { getApplicationsList, deleteApplications } from \"@/service/CommonApi.js\";\nimport { delMsg } from '@/utils/elementui';\nexport default {\n name: 'softwarelist',\n data: function data() {\n return {\n params: {\n searchword: \"\",\n pageNo: 1,\n linesPerPage: 10\n },\n dialogVisible: false,\n data: [],\n tableData: {\n params: [{\n name: 'name',\n label: '名称',\n value: \"\"\n }]\n },\n showListVisiable: false,\n multipleSelection: [],\n // 表格选中的数据\n loading: false\n };\n },\n components: {\n publicTable: publicTable\n },\n mounted: function mounted() {\n this.$emit(\"clearBreadcrumb\");\n this.searchApplictions();\n },\n methods: {\n //填充方法\n onRowClick: function onRowClick(row) {\n var item = row.__ob__.value;\n this.$emit(\"toLink\", item); // 将值存在sessionStorage中\n\n sessionStorage.setItem('software', JSON.stringify(item));\n },\n //更新参数\n updataParams: function updataParams(obj) {\n if (obj.name) {\n this.params.searchword = obj.name;\n } else {\n Object.assign(this.params, obj);\n }\n },\n //列表当前页变化\n currPageChange: function currPageChange(val) {\n this.params.pageNo = val;\n this.searchApplictions();\n },\n //列表页码变化\n pageSizeChange: function pageSizeChange(val) {\n this.params.linesPerPage = val;\n this.searchApplictions();\n },\n\n /**\n * 获取选中的表格数据\n */\n handleSelectionChange: function handleSelectionChange(val) {\n this.multipleSelection = val;\n },\n\n /**\n * 删除数据\n */\n deleteList: function () {\n var _deleteList = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var selectData, data, i, response;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(this.multipleSelection.length > 0)) {\n _context.next = 10;\n break;\n }\n\n selectData = this.multipleSelection;\n data = [];\n\n for (i = 0; i < selectData.length; i++) {\n data.push(selectData[i].id);\n }\n\n _context.next = 6;\n return deleteApplications(data);\n\n case 6:\n response = _context.sent;\n\n if (response.data.errcode == 0) {\n this.searchApplictions();\n this.$message.success(this.$t('msg.del_ss'));\n }\n\n _context.next = 12;\n break;\n\n case 10:\n this.$message.error(this.$t('msg.select_more'));\n return _context.abrupt(\"return\", false);\n\n case 12:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function deleteList() {\n return _deleteList.apply(this, arguments);\n }\n\n return deleteList;\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 - 50 - 71 - 20 - 40 + 'px';\n\n _this.$nextTick(function () {\n if (_this.$refs.publictable) _this.$refs.publictable.init(_this.tableData);\n });\n }, 100);\n },\n showList: function showList() {\n this.showListVisiable = true;\n this.getScollerHeight();\n },\n\n /**\n * 获取软件列表\n */\n searchApplictions: function searchApplictions() {\n var _this2 = this;\n\n var params = this.params;\n this.loading = true;\n getApplicationsList(params, {\n onSucess: function onSucess(response) {\n if (response.data.errcode == 0) {\n _this2.loading = false;\n _this2.data = response.data.data;\n _this2.tableData.columns = [{\n prop: 'name',\n label: '名称'\n }];\n _this2.tableData.data = response.data.data;\n\n _this2.$nextTick(function () {\n if (_this2.$refs.publictable) _this2.$refs.publictable.init(_this2.tableData);\n });\n }\n }\n });\n },\n //退出软件列表\n backApplications: function backApplications() {\n this.params.pageNo = 1;\n this.searchApplictions();\n this.showListVisiable = false;\n },\n\n /**\n * 重置查询\n */\n resetApplictions: function resetApplictions() {\n var params = _objectSpread(_objectSpread({}, this.params), {}, {\n searchword: \"\"\n });\n\n this.params = params;\n this.searchApplictions();\n },\n\n /**\n * 打开软件详情\n */\n toLink: function toLink(item) {\n this.$emit(\"toLink\", item); // 将值存在sessionStorage中\n\n sessionStorage.setItem('software', JSON.stringify(item));\n },\n\n /**\n * 打开新建软件对话框\n */\n newSoftware: function newSoftware() {\n this.dialogVisible = true;\n },\n\n /**\n *关闭新建软件对话框 \n */\n handleClose: function handleClose() {\n this.dialogVisible = false;\n },\n\n /**\n * 创建软件\n * {id} 0: 常规模式, 1平台模式\n */\n createSoftware: function createSoftware(id) {\n this.$emit(\"createSoftware\", id);\n this.dialogVisible = false;\n },\n\n /**\n * 删除软件\n */\n showDeleteMessageBox: function () {\n var _showDeleteMessageBox = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(id) {\n var response;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.prev = 0;\n _context2.next = 3;\n return delMsg(this.$t('msg.del_childModule'), this.$t('msg.tip'));\n\n case 3:\n _context2.next = 5;\n return deleteApplications([id]);\n\n case 5:\n response = _context2.sent;\n\n if (response.data.errcode == 0) {\n this.searchApplictions();\n this.$message.success(this.$t('msg.del_ss'));\n }\n\n _context2.next = 12;\n break;\n\n case 9:\n _context2.prev = 9;\n _context2.t0 = _context2[\"catch\"](0);\n console.log(_context2.t0);\n\n case 12:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[0, 9]]);\n }));\n\n function showDeleteMessageBox(_x) {\n return _showDeleteMessageBox.apply(this, arguments);\n }\n\n return showDeleteMessageBox;\n }()\n }\n};",null]}