|
@@ -193,7 +193,7 @@
|
|
|
import CountTo from 'vue-count-to'
|
|
import CountTo from 'vue-count-to'
|
|
|
import * as echarts from 'echarts'
|
|
import * as echarts from 'echarts'
|
|
|
import { cencusTotal, scenicSpotVisits, visitsByDay } from '@/api/bz/resource'
|
|
import { cencusTotal, scenicSpotVisits, visitsByDay } from '@/api/bz/resource'
|
|
|
-import { leaderLine } from '@/api/bz/monitor'
|
|
|
|
|
|
|
+import { monthlyFlowList } from '@/api/bz/monitor'
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -214,13 +214,13 @@ export default {
|
|
|
this.topData = data;
|
|
this.topData = data;
|
|
|
});
|
|
});
|
|
|
this.getTrendData();
|
|
this.getTrendData();
|
|
|
- leaderLine({ dateType: 1, chartTime: '2' }).then((data) => {
|
|
|
|
|
|
|
+ monthlyFlowList({}).then((data) => {
|
|
|
this.lineChartImage('chart1', data.map(dt => ({
|
|
this.lineChartImage('chart1', data.map(dt => ({
|
|
|
- name: dt.name,
|
|
|
|
|
|
|
+ name: dt.label,
|
|
|
value: parseFloat(dt.value * 0.9).toFixed(0)
|
|
value: parseFloat(dt.value * 0.9).toFixed(0)
|
|
|
})))
|
|
})))
|
|
|
this.lineChartImage('chart2', data.map(dt => ({
|
|
this.lineChartImage('chart2', data.map(dt => ({
|
|
|
- name: dt.name,
|
|
|
|
|
|
|
+ name: dt.label,
|
|
|
value: parseFloat(dt.value * 0.7).toFixed(0)
|
|
value: parseFloat(dt.value * 0.7).toFixed(0)
|
|
|
})))
|
|
})))
|
|
|
})
|
|
})
|
|
@@ -266,11 +266,11 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
getTrendData() {
|
|
getTrendData() {
|
|
|
if (this.chartForm.chartTime === '1') {
|
|
if (this.chartForm.chartTime === '1') {
|
|
|
- scenicSpotVisits({ type: 1, dateTime: 1 }).then((data) => {
|
|
|
|
|
|
|
+ scenicSpotVisits({ type: 1 }).then((data) => {
|
|
|
this.barChartImage('chart-first', data)
|
|
this.barChartImage('chart-first', data)
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
- leaderLine(this.chartForm).then((data) => {
|
|
|
|
|
|
|
+ monthlyFlowList(this.chartForm).then((data) => {
|
|
|
this.chartData = data;
|
|
this.chartData = data;
|
|
|
this.lineChartImage('chart-first', data);
|
|
this.lineChartImage('chart-first', data);
|
|
|
})
|
|
})
|