{"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\\PieChartContract.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web-prod\\src\\components\\charts\\projectStatisticsCharts\\PieChartContract.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/contractAmount', 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('mainPieChartContract');\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: ['#9489fa', '#f06464', '#f7af59', '#f0da49', '#71c16f', '#2aaaef', '#5690dd', '#bd88f5', '#009db2', '#024b51', '#0780cf', '#765005'],\n series: [{\n name: '合同金额统计',\n type: 'pie',\n radius: '50%',\n tooltip: {\n valueFormatter: function valueFormatter(value) {\n return value + '万元';\n }\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 label: {\n show: true,\n textStyle: {\n color: '#5690dd',\n fontSize: 14\n },\n formatter: '{b}\\n总值:{c}万元\\n占比{d}%'\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]}