|
|
@ -42,6 +42,7 @@ export default { |
|
|
|
return { |
|
|
|
loading: false, |
|
|
|
dataList: [], |
|
|
|
sampleBuildingPercent: '', |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
@ -62,6 +63,7 @@ export default { |
|
|
|
methods: { |
|
|
|
changeTableData() { |
|
|
|
if (this.allDataList.building) { |
|
|
|
this.sampleBuildingPercent = this.allDataList.building.sampleBuildingPercent |
|
|
|
if (this.allDataList['building']['buildingStaticDataLi']) { |
|
|
|
let data = this.allDataList['building']['buildingStaticDataLi'] |
|
|
|
this.dataList = data |
|
|
@ -97,7 +99,8 @@ export default { |
|
|
|
} |
|
|
|
}, 0) |
|
|
|
if (index === 3) { |
|
|
|
sums[index] = (sums[index]) *100 + ' %' |
|
|
|
console.log(this.sampleBuildingPercent*100/100) |
|
|
|
sums[index] = ((this.sampleBuildingPercent)*100).toFixed(1) + ' %' |
|
|
|
} |
|
|
|
} else { |
|
|
|
sums[index] = 'N/A' |
|
|
|