{"remainingRequest":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xypm-web\\src\\components\\charts\\projectStatisticsCharts\\ColumnBarLine.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xypm-web\\src\\components\\charts\\projectStatisticsCharts\\ColumnBarLine.vue","mtime":1675214576495},{"path":"D:\\jenkins\\workspace\\xypm-web\\babel.config.js","mtime":1675214572901},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xypm-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _defineProperty from \"D:/jenkins/workspace/xypm-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport \"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/investmentProgress', params).then(function (res) {\n        _this.data = res.data.value;\n        var investmentList = [];\n        var outputList = [];\n        var paymentList = [];\n        var data = {};\n\n        _this.data.investmentList.forEach(function (item, index) {\n          var value = FormMath.tofixed(FormMath.toNumber(item[index + 1]) / 10000, 0);\n          investmentList.push(value);\n        });\n\n        _this.data.outputList.forEach(function (item, index) {\n          var value = FormMath.tofixed(FormMath.toNumber(item[index + 1]) / 10000, 2);\n          outputList.push(value);\n        });\n\n        _this.data.paymentList.forEach(function (item, index) {\n          var value = FormMath.tofixed(FormMath.toNumber(item[index + 1]) / 10000, 2);\n          paymentList.push(value);\n        });\n\n        data = {\n          investmentList: investmentList,\n          outputList: outputList,\n          paymentList: paymentList\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.investmentList; //投资数据\n\n      option.series[1].data = data.outputList; //产值数据\n\n      option.series[2].data = data.paymentList; //支付数据\n\n      this.myChart.setOption(option);\n    },\n    draw: function draw() {\n      var chartDom = document.getElementById('mainColumnBarLine');\n      this.myChart = echarts.init(chartDom);\n      var option;\n      option = {\n        legend: {\n          top: 'bottom',\n          padding: 30,\n          data: ['投资', '产值', '支付']\n        },\n        tooltip: _defineProperty({\n          trigger: 'axis',\n          axisPointer: {\n            type: 'cross',\n            crossStyle: {\n              color: '#999'\n            }\n          }\n        }, \"trigger\", 'axis'),\n        xAxis: {\n          type: 'category',\n          data: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],\n          axisPointer: {\n            type: 'shadow'\n          },\n          axisLabel: {\n            fontSize: 14\n          }\n        },\n        yAxis: {\n          type: 'value',\n          axisLabel: {\n            formatter: '{value}',\n            fontSize: 16\n          }\n        },\n        // yAxis: [\n        //   {\n        //     type: 'value',\n        //     min: 0,\n        //     // max: '10%',\n        //     axisLabel: {\n        //       formatter: '{value}',\n        //       fontSize: 16\n        //     }\n        //   },\n        //   {\n        //     type: 'value',\n        //     min: 0,\n        //     // max: '10%',\n        //     axisLabel: {\n        //       formatter: '{value}',\n        //       fontSize: 16\n        //     }\n        //   }\n        // ],\n        series: [{\n          name: '投资',\n          type: 'bar',\n          tooltip: {\n            valueFormatter: function valueFormatter(value) {\n              return value + '万元';\n            }\n          },\n          emphasis: {\n            itemStyle: {\n              shadowBlur: 10,\n              shadowColor: 'rgba(0,0,0,0.3)'\n            }\n          },\n          itemStyle: {\n            normal: {\n              barBorderRadius: [10, 10, 0, 0],\n              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{\n                offset: 1,\n                color: '#63b2ee'\n              }, {\n                offset: 0.5,\n                color: '#76da91'\n              }, {\n                offset: 0,\n                color: '#f8cb7f'\n              }])\n            }\n          },\n          data: [730.2984, 256.4447, 220, 340, 429, 791, 652, 452, 323, 255, 671, 303]\n        }, {\n          name: '产值',\n          type: 'line',\n          // yAxisIndex: 1,\n          // smooth: true,\n          tooltip: {\n            valueFormatter: function valueFormatter(value) {\n              return value + '万元';\n            }\n          },\n          itemStyle: {\n            normal: {\n              color: '#f89588'\n            }\n          },\n          data: [830.2984, 286.4447, 320, 340, 429, 791, 652, 452, 623, 255, 771, 403]\n        }, {\n          name: '支付',\n          type: 'line',\n          // yAxisIndex: 1,\n          // smooth: true,\n          tooltip: {\n            valueFormatter: function valueFormatter(value) {\n              return value + '万元';\n            }\n          },\n          itemStyle: {\n            normal: {\n              color: '#76da91'\n            }\n          },\n          data: [630.2984, 386.4447, 420, 380, 329, 711, 552, 422, 632, 205, 791, 433]\n        }]\n      };\n      option && this.myChart.setOption(option);\n    }\n  }\n};",null]}