|
@@ -239,7 +239,22 @@ export default {
|
|
|
getBarChart1() {
|
|
|
GetReportform(this.getBarChart1Parm).then(response => {
|
|
|
console.log('图1', response)
|
|
|
- this.chart_data1 = response.data.chart_data
|
|
|
+ let pasture = response.data.chart_data.pasture
|
|
|
+ let keys = []
|
|
|
+ pasture.forEach((item,key)=>{
|
|
|
+ if(item.includes("公司")){
|
|
|
+ keys.push(key)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ let lastYear = response.data.chart_data.lastYear
|
|
|
+ let new_pasture = pasture.splice(keys[0],keys.length)
|
|
|
+ let new_lastYear = lastYear.splice(keys[0],keys.length)
|
|
|
+ let NowYear = response.data.chart_data.nowYear
|
|
|
+ let new_NowYear = NowYear.splice(keys[0],keys.length)
|
|
|
+ this.chart_data1.pasture = pasture
|
|
|
+ this.chart_data1.lastYear = lastYear
|
|
|
+ this.chart_data1.nowYear = NowYear
|
|
|
+ // this.chart_data1 = response.data.chart_data
|
|
|
this.roadBarChart1(this.chart_data1)
|
|
|
var nowYear = response.data.chart_data.nowYear
|
|
|
var total = 0
|