{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\charts\\Column.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\charts\\Column.vue","mtime":1667327528903},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n\r\nimport * as echarts from 'echarts'\r\nexport default {\r\n mounted() {\r\n this.draw()\r\n },\r\n methods: {\r\n draw() {\r\n var chartDom = document.getElementById('main_column')\r\n var myChart = echarts.init(chartDom)\r\n var option\r\n\r\n option = {\r\n legend: {\r\n top: 'bottom',\r\n padding: 30,\r\n },\r\n tooltip: {\r\n //此处配置鼠标移动对应区域时的黑色弹框\r\n trigger: 'item',\r\n formatter: (a) => {\r\n return (\r\n a.seriesName +\r\n '
' +\r\n a.marker +\r\n a.name +\r\n ' ' +\r\n a.data[a.seriesIndex + 1] +\r\n '个'\r\n )\r\n },\r\n },\r\n dataset: {\r\n source: [\r\n ['product', '计划开工项目', '已开工项目'],\r\n ['1月', 43, 21],\r\n ['2月', 83, 34],\r\n ['3月', 86, 0],\r\n ['4月', 86, 0],\r\n ['5月', 86, 0],\r\n ['6月', 86, 0],\r\n ['7月', 86, 0],\r\n ['8月', 86, 0],\r\n ['9月', 86, 0],\r\n ['10月', 86, 0],\r\n ['11月', 86, 0],\r\n ['12月', 86, 0],\r\n ],\r\n },\r\n xAxis: {\r\n type: 'category',\r\n axisLabel: {\r\n fontSize: 14,\r\n },\r\n },\r\n yAxis: {\r\n axisLabel: {\r\n fontSize: 16\r\n }\r\n },\r\n // Declare several bar series, each will be mapped\r\n // to a column of dataset.source by default.\r\n series: [\r\n {\r\n type: 'bar',\r\n emphasis: {\r\n itemStyle: {\r\n shadowBlur: 10,\r\n shadowColor: 'rgba(0,0,0,0.3)',\r\n },\r\n },\r\n itemStyle: {\r\n normal: {\r\n barBorderRadius: [10, 10, 0, 0],\r\n color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [\r\n {offset: 1, color: '#50c48f'},\r\n {offset: 0.5, color: '#26ccd8'},\r\n {offset: 0, color: '#3685fe'},\r\n ]),\r\n },\r\n },\r\n },\r\n {\r\n type: 'bar',\r\n emphasis: {\r\n itemStyle: {\r\n shadowBlur: 10,\r\n shadowColor: 'rgba(0,0,0,0.3)',\r\n },\r\n },\r\n itemStyle: {\r\n normal: {\r\n barBorderRadius: [10, 10, 0, 0],\r\n color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [\r\n {offset: 1, color: '#71ae46'},\r\n {offset: 0.5, color: '#96b744'},\r\n {offset: 0, color: '#c4cc38'},\r\n ]),\r\n },\r\n },\r\n },\r\n ],\r\n }\r\n\r\n option && myChart.setOption(option)\r\n },\r\n },\r\n}\r\n",null]}