{"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\\PieChartBuild.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\src\\components\\charts\\projectStatisticsCharts\\PieChartBuild.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":456789000000},{"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//\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 this.$http.post('${cqxy}/biz/statistics/v1/engineeringChange', params).then(function (res) {\n _this.data = res.data.value;\n var data = [];\n _this.data.forEach(function (item) {\n data.push({\n value: item.total,\n name: item.typeName\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('mainPieChartBuild');\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: ['#fa2c7b', '#ff38e0', '#ffa235', '#04c5f3', '#0066fe', '#8932a5', '#c90444'],\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: 1048,\n name: '管网'\n }, {\n value: 735,\n name: '道路'\n }, {\n value: 580,\n name: '楼宇厂房'\n }, {\n value: 484,\n name: '征地拆迁'\n }, {\n value: 300,\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]}