{"remainingRequest":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/src/components/admin/DeptAdmin/Echart.vue?vue&type=script&lang=js&","dependencies":[{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/src/components/admin/DeptAdmin/Echart.vue","mtime":1742796810165},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/babel.config.js","mtime":1742796810089},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/babel-loader/lib/index.js","mtime":315532800000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/vue-loader/lib/index.js","mtime":1655715099000}],"contextDependencies":[],"result":["import \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"/data/jenkins/workspace/badp-bcxin-web-5.x-kms/src/badp-bcxin-5.x/obpm-kms-web/kmspc/node_modules/@babel/runtime-corejs2/helpers/esm/asyncToGenerator.js\";\nimport API from \"@/api.js\";\nexport default {\n name: 'hello',\n data: function data() {\n return {\n xAxis: [],\n fileUploadCount: []\n };\n },\n watch: {\n fileUploadCount: function fileUploadCount() {\n this.drawLine();\n }\n },\n mounted: function mounted() {\n this.getChart();\n },\n methods: {\n //获取数据\n getChart: function () {\n var _getChart = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var result, data, i, userName, count;\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 API.getChartData();\n\n case 2:\n result = _context.sent;\n data = result.data.data;\n\n if (data != undefined) {\n for (i = 0; i < data.length; i++) {\n userName = data[i].userName;\n count = data[i].fileUploadCount;\n this.xAxis.push(userName);\n this.fileUploadCount.push(count);\n }\n }\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function getChart() {\n return _getChart.apply(this, arguments);\n }\n\n return getChart;\n }(),\n //渲染echart\n drawLine: function drawLine() {\n // 基于准备好的dom,初始化echarts实例\n var that = this;\n var myChart = this.$echarts.init(this.$refs.myChart);\n var option = {\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n // 坐标轴指示器,坐标轴触发有效\n type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'\n\n }\n },\n xAxis: [{\n type: 'category',\n data: this.xAxis\n }],\n yAxis: [{\n type: 'value'\n }],\n color: ['#d48265', '#91c7ae', '#749f83'],\n legend: {\n data: this.xAxis\n },\n series: [{\n name: this.$t('label.number_files'),\n itemStyle: {\n normal: {\n color: function color(params) {\n // build a color map as your need.\n var colorList = ['#C1232B', '#B5C334', '#FCCE10', '#E87C25', '#27727B', '#FE8463', '#9BCA63', '#FAD860', '#F3A43B', '#60C0DD', '#D7504B', '#C6E579', '#F4E001', '#F0805A', '#26C0C0'];\n return colorList[params.dataIndex];\n }\n }\n },\n type: 'bar',\n stack: this.$t('label.label_number_files'),\n data: this.fileUploadCount\n }]\n };\n myChart.setOption(option);\n }\n }\n};",null]}