{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web-prod\\src\\components\\charts\\projectStatisticsCharts\\PieChartBidding.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\src\\components\\charts\\projectStatisticsCharts\\PieChartBidding.vue","mtime":1667333349305},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\babel.config.js","mtime":1667333346259},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\nimport * as echarts from 'echarts';\nexport default {\n props: {\n params: {\n type: Object,\n default: function _default() {}\n }\n },\n data: function data() {\n return {\n myChart: '',\n data: ''\n };\n },\n watch: {\n params: {\n handler: function handler(newValue) {\n this.getData(newValue);\n },\n deep: true\n }\n },\n mounted: function mounted() {\n this.draw();\n this.getData(this.params);\n },\n methods: {\n getData: function getData(params) {\n var _this = this;\n\n this.$http.post('${cqxy}/biz/statistics/v1/biddingStatistics', params).then(function (res) {\n _this.data = res.data.value;\n var data = [];\n\n _this.data.forEach(function (item) {\n data.push({\n value: item.total,\n name: item.typeName\n });\n });\n\n _this.refreshData(data);\n });\n },\n refreshData: function refreshData(data) {\n //刷新数据\n var option = this.myChart.getOption();\n option.series[0].data = data;\n this.myChart.setOption(option);\n },\n draw: function draw() {\n var chartDom = document.getElementById('mainPieChartBidding');\n this.myChart = echarts.init(chartDom);\n var option;\n option = {\n tooltip: {\n trigger: 'item'\n },\n legend: {\n top: 'bottom',\n padding: 20\n },\n color: ['#63b2ee', '#76da91', '#f8cb7f', '#f89588', '#7cd6cf', '#9192ab', '#7898e1'],\n series: [{\n name: '招投标统计',\n type: 'pie',\n radius: '50%',\n tooltip: {\n valueFormatter: function valueFormatter(value) {\n return value + '个';\n }\n },\n label: {\n show: true,\n textStyle: {\n color: '#5690dd',\n fontSize: 14\n },\n formatter: '{b}{c}个\\n占比{d}%'\n },\n data: [{\n value: 10,\n name: '公开招标'\n }, {\n value: 20,\n name: '直接委托'\n }, {\n value: 3,\n name: '走流程'\n }, {\n value: 0,\n name: '其他'\n }],\n emphasis: {\n itemStyle: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(0, 0, 0, 0.5)'\n }\n }\n }]\n };\n option && this.myChart.setOption(option);\n }\n }\n};",null]}