{"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/Modules/ChartsList.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/Modules/ChartsList.vue","mtime":1701674859501},{"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 \"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 _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\";\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//\nimport { getChartsList as _getChartsList, deleteCharts } from \"@/service/ModulesApi.js\";\nimport { delMsg } from '@/utils/elementui';\nexport default {\n name: 'chartslist',\n data: function data() {\n return {\n searchParams: {\n appId: \"\",\n moduleId: \"\",\n searchword: \"\",\n pageNo: 1,\n linesPerPage: 10\n },\n params: {\n id: \"\",\n name: \"\",\n type: \"\",\n note: \"\",\n scripttext: \"\"\n },\n data: {},\n multipleSelectionId: [],\n multipleSelectionArray: [],\n tableHeight: 100\n };\n },\n mounted: function mounted() {\n this.getScollerHeight();\n var appId = sessionStorage.getItem(\"appId\");\n var moduleId = this.$route.query.moduleId;\n\n var searchParams = _objectSpread(_objectSpread({}, this.searchParams), {}, {\n appId: appId,\n moduleId: moduleId\n });\n\n this.searchParams = searchParams;\n this.getChartsList();\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 第一层页签, 50 列表标题, 71 查询, 20 父组件外边距, 40分页\n\n _this.tableHeight = clientHeight - 60 - 32 - 41 - 50 - 71 - 20 - 40 + 'px';\n }, 100);\n },\n\n /**\n * 获取表单列表\n */\n getChartsList: function () {\n var _getChartsList2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var response;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _getChartsList(this.searchParams);\n\n case 2:\n response = _context.sent;\n\n if (response.data.errcode == 0) {\n this.data = response.data.data;\n }\n\n case 4:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function getChartsList() {\n return _getChartsList2.apply(this, arguments);\n }\n\n return getChartsList;\n }(),\n\n /**\n * 重置查询名称值\n */\n resetName: function resetName() {\n var searchParams = _objectSpread(_objectSpread({}, this.searchParams), {}, {\n searchword: \"\"\n });\n\n this.searchParams = searchParams;\n this.getChartsList();\n },\n\n /**\n * 勾选行时响应\n */\n handleSelectionChange: function handleSelectionChange(val) {\n var multipleSelectionId = [];\n\n if (val.length) {\n val.map(function (e) {\n multipleSelectionId.push(e.id);\n });\n }\n\n this.multipleSelectionArray = val;\n this.multipleSelectionId = multipleSelectionId;\n },\n\n /**\n * 删除统计图\n */\n showDeleteConfirm: function () {\n var _showDeleteConfirm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var multipleSelectionId, response;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n multipleSelectionId = this.multipleSelectionId;\n\n if (!(multipleSelectionId.length > 0)) {\n _context2.next = 16;\n break;\n }\n\n _context2.prev = 2;\n _context2.next = 5;\n return delMsg(this.$t('msg.delConfirm'), this.$t('msg.tip'));\n\n case 5:\n _context2.next = 7;\n return deleteCharts(multipleSelectionId);\n\n case 7:\n response = _context2.sent;\n\n if (response.data.errcode == 0) {\n this.getChartsList();\n this.$message.success(this.$t('msg.del_ss'));\n }\n\n _context2.next = 14;\n break;\n\n case 11:\n _context2.prev = 11;\n _context2.t0 = _context2[\"catch\"](2);\n console.log(_context2.t0);\n\n case 14:\n _context2.next = 17;\n break;\n\n case 16:\n this.$message.error(this.$t('msg.check_data'));\n\n case 17:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[2, 11]]);\n }));\n\n function showDeleteConfirm() {\n return _showDeleteConfirm.apply(this, arguments);\n }\n\n return showDeleteConfirm;\n }(),\n\n /**\n * 当前页\n */\n handleCurrentChange: function handleCurrentChange(val) {\n var searchParams = _objectSpread(_objectSpread({}, this.searchParams), {}, {\n pageNo: val\n });\n\n this.searchParams = searchParams;\n this.getChartsList();\n },\n\n /**\n * 切换分页,每页显示多少条\n */\n handleSizeChange: function handleSizeChange(val) {\n var searchParams = _objectSpread(_objectSpread({}, this.searchParams), {}, {\n linesPerPage: val\n });\n\n this.searchParams = searchParams;\n this.getChartsList();\n },\n\n /**\n * 选中数据源回显\n */\n onRowClick: function onRowClick(row) {\n this.$router.push({\n path: '/home/softwaresdetails/charts',\n query: {\n edit: true,\n moduleId: this.$route.query.moduleId,\n id: row.id\n }\n });\n },\n\n /**\n * 新建图表\n */\n newCharts: function newCharts() {\n this.$router.push({\n path: '/home/softwaresdetails/charts',\n query: {\n edit: false,\n moduleId: this.$route.query.moduleId\n }\n });\n }\n }\n};",null]}