Browse Source

修改了报表颜色问题

duanxiaoduan 1 year ago
parent
commit
2c0c3f0def

+ 5 - 4
src/views/report/queryCombustion/index.vue

@@ -641,7 +641,7 @@ export default {
           data: ['燃动费用', '预算'],
           right: 40
         },
-        color: ['#2dc0e8', '#769cfc'],
+        color: ['#61A5E8', '#9933FF'],
         grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
         xAxis: [{ type: 'category',  name: '牧场',data: chart_data.xdata, axisLabel: { interval: 0, rotate: 30 }}],
         yAxis: [{ type: 'value', name: '元', axisLabel: { formatter: '{value}万' }}],
@@ -691,7 +691,7 @@ export default {
           data: ['柴油用量', '去年同期'],
           right: 40
         },
-        color: ['#2dc0e8', '#769cfc'],
+        color: ['#61A5E8', '#9933FF'],
         grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
         xAxis: [{ type: 'category',  name: '牧场',data: chart_data.xdata, axisLabel: { interval: 0, rotate: 30 }}],
         yAxis: [{ type: 'value', name: '用量(万升)', axisLabel: { formatter: '{value}' }}],
@@ -735,7 +735,7 @@ export default {
           data: ['实际费用'],
           right: 40
         },
-        color: ['#2dc0e8', '#769cfc'],
+        color: ['#61A5E8', '#9933FF'],
         grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
         xAxis: [{ type: 'category',  name: '牧场',data: chart_data.xdata, axisLabel: { interval: 0, rotate: 30 }}],
         yAxis: [{ type: 'value', name: '用量(升)', axisLabel: { formatter: '{value}' }}],
@@ -745,7 +745,8 @@ export default {
             type: 'bar',
             data: chart_data.data1,
             barMaxWidth:20,
-            markLine:{ data:[ {yAxis:chart_data.line} ] },
+            markLine:{ data:[ {yAxis:chart_data.line} ],
+            lineStyle: { color: '#FFB800' } },
             emphasis: { label: { show: true, position: 'inside' }}
           },
         ]

+ 1 - 1
src/views/report/queryElec/index.vue

@@ -767,7 +767,7 @@ export default {
               var item = {
                 name: chart_data.data_name[i],
                 type: 'line',
-                data: chart_data.data1[i]
+                data: chart_data.data2[i]
               }
               serie.push(item)
             }

+ 5 - 4
src/views/report/queryRepair/index.vue

@@ -899,10 +899,11 @@ export default {
         }
         this.percentage = this.percentage
       }, 1000)
-      this.downLoadParm.name = 'geteqclassSumDay'
-      this.downLoadParm.returntype = 'Map'
-      this.downLoadParm.parammaps = this.getdataListParmSee.parammaps
-      GetAccount(this.downLoadParm).then(response => {
+      var downLoadParm = {}
+      downLoadParm.name = 'geteqclassSumDay'
+      downLoadParm.returntype = 'Map'
+      downLoadParm.parammaps = this.getdataListParmSee.parammaps
+      GetAccount(downLoadParm).then(response => {
         if (response.data.list !== '') {
           this.percentage = 99
           setTimeout(() => {