-
@@ -15,8 +15,9 @@
diff --git a/src/views/cityConstruction/components/plan/components/landUse.vue b/src/views/cityConstruction/components/plan/components/landUse.vue
index 007316c..2e12697 100644
--- a/src/views/cityConstruction/components/plan/components/landUse.vue
+++ b/src/views/cityConstruction/components/plan/components/landUse.vue
@@ -48,6 +48,7 @@
import GaugeItem from './gaugeItem'
import RoundLiquidFill from '@/components/liquidFill/roundLiquidFill'
import {fetchProjectCount} from '@/api/cityManage'
+import mockData from '../../../../../../static/plan.json'
export default {
name: 'LandUse',
components: {RoundLiquidFill, GaugeItem, ProgressBar2, Legend},
@@ -106,10 +107,15 @@
this.compTimer = null
},
getData () {
+ this.total = mockData.planningLandUse.total
+ this.already = mockData.planningLandUse.already
+ this.percent = mockData.planningLandUse.percent
if (this.currentComp === 'data1') {
- this.data = this.data1
+ // this.data = this.data1
+ this.data = mockData.planningLandUse.data1
} else if (this.currentComp === 'data2') {
- this.data = this.data2
+ // this.data = this.data2
+ this.data = mockData.planningLandUse.data2
}
// fetchProjectCount().then(response => {
// if (response.code === 200) {
diff --git a/src/views/cityConstruction/components/plan/ecology.vue b/src/views/cityConstruction/components/plan/ecology.vue
index e4c4f49..f97a6af 100644
--- a/src/views/cityConstruction/components/plan/ecology.vue
+++ b/src/views/cityConstruction/components/plan/ecology.vue
@@ -27,6 +27,7 @@
import Corner1 from '@/components/corner/Corner1'
import SimpleBlock from '@/components/block/simpleBlock'
import EcologyLine from './components/ecologyLine'
+import mockData from '../../../../../static/plan.json'
// import {fetchInfrastructure} from '@/api/jgzl'
export default {
name: 'Ecology',
@@ -46,9 +47,13 @@
},
methods: {
getData () {
- for (const item of Object.keys(this.data)) {
- this.getItemData(item)
- }
+ this.data.csgy.value = mockData.gardens.count.park
+ this.data.jgzl.value = mockData.gardens.count.UFA
+ this.data.cscl.value = mockData.gardens.count.maintenance
+ this.data.stgy.value = mockData.gardens.count.passengerFlow
+ // for (const item of Object.keys(this.data)) {
+ // this.getItemData(item)
+ // }
},
// item,传参数
getItemData (item) {
diff --git a/src/views/cityConstruction/components/plan/pipeCountBar.vue b/src/views/cityConstruction/components/plan/pipeCountBar.vue
index 33d53de..58c734a 100644
--- a/src/views/cityConstruction/components/plan/pipeCountBar.vue
+++ b/src/views/cityConstruction/components/plan/pipeCountBar.vue
@@ -22,6 +22,7 @@
import ColorfulBarChart from '@/components/barChart/colorfulBarChart'
import ChartLayout from '@/components/layout/chartLayout'
import {fetchPipeCount} from '@/api/cityManage'
+import mockData from '../../../../../static/plan.json'
export default {
name: 'pipeCountBar',
components: {ChartLayout, ColorfulBarChart},
@@ -42,13 +43,16 @@
},
methods: {
getData () {
- fetchPipeCount().then(response => {
- if (response.code === 200) {
- const data = response.data
- this.options.xAxisData = data.map(item => { return item.name })
- this.options.seriesData = data.map(item => { return item.value })
- }
- })
+ this.options.xAxisData = mockData.undergroundPipelines.chart2.xData
+ this.options.seriesData = mockData.undergroundPipelines.chart2.yData
+ this.options.unit = mockData.undergroundPipelines.chart2.yUnit
+ // fetchPipeCount().then(response => {
+ // if (response.code === 200) {
+ // const data = response.data
+ // this.options.xAxisData = data.map(item => { return item.name })
+ // this.options.seriesData = data.map(item => { return item.value })
+ // }
+ // })
}
}
}
diff --git a/src/components/annularProgress/annularComp.vue b/src/components/annularProgress/annularComp.vue
index 5305f16..5a09137 100644
--- a/src/components/annularProgress/annularComp.vue
+++ b/src/components/annularProgress/annularComp.vue
@@ -19,7 +19,7 @@