diff --git a/src/assets/images/carbon-result-bg-1.png b/src/assets/images/carbon-result-bg-1.png index d1f724e..d414efe 100644 --- a/src/assets/images/carbon-result-bg-1.png +++ b/src/assets/images/carbon-result-bg-1.png Binary files differ diff --git a/src/assets/images/carbon-result-bg-1.png b/src/assets/images/carbon-result-bg-1.png index d1f724e..d414efe 100644 --- a/src/assets/images/carbon-result-bg-1.png +++ b/src/assets/images/carbon-result-bg-1.png Binary files differ diff --git a/src/components.d.ts b/src/components.d.ts index ab9c1f9..d4f61cb 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -57,5 +57,6 @@ SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] Trend: typeof import('./components/Trend/index.vue')['default'] + TrendChart: typeof import('./components/map/trendChart.vue')['default'] } } diff --git a/src/assets/images/carbon-result-bg-1.png b/src/assets/images/carbon-result-bg-1.png index d1f724e..d414efe 100644 --- a/src/assets/images/carbon-result-bg-1.png +++ b/src/assets/images/carbon-result-bg-1.png Binary files differ diff --git a/src/components.d.ts b/src/components.d.ts index ab9c1f9..d4f61cb 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -57,5 +57,6 @@ SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] Trend: typeof import('./components/Trend/index.vue')['default'] + TrendChart: typeof import('./components/map/trendChart.vue')['default'] } } diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 869036b..8ebf01a 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -30,7 +30,7 @@ default: () => { return { top: 50, - left: 10, + left: 20, right: 20, bottom: 10, containLabel: true, // 是否包含坐标轴的刻度标签 @@ -174,6 +174,13 @@ type: Boolean, default: false, }, + /** + * 工具 + */ + toolbox: { + type: Boolean, + default: false, + }, }) // 图表对象 @@ -183,6 +190,7 @@ // 监听数据变化 watch( [() => props.xAxisData, props.data], ([newName, newNums], [oldName, oldNums]) => { + console.log(newName, newNums) refreshChart() }, { @@ -196,7 +204,7 @@ grid: props.grid, legend: props.legend, // 图例 toolbox: { - show: true, + show: props.toolbox, feature: { dataZoom: { yAxisIndex: 'none', diff --git a/src/assets/images/carbon-result-bg-1.png b/src/assets/images/carbon-result-bg-1.png index d1f724e..d414efe 100644 --- a/src/assets/images/carbon-result-bg-1.png +++ b/src/assets/images/carbon-result-bg-1.png Binary files differ diff --git a/src/components.d.ts b/src/components.d.ts index ab9c1f9..d4f61cb 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -57,5 +57,6 @@ SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] Trend: typeof import('./components/Trend/index.vue')['default'] + TrendChart: typeof import('./components/map/trendChart.vue')['default'] } } diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 869036b..8ebf01a 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -30,7 +30,7 @@ default: () => { return { top: 50, - left: 10, + left: 20, right: 20, bottom: 10, containLabel: true, // 是否包含坐标轴的刻度标签 @@ -174,6 +174,13 @@ type: Boolean, default: false, }, + /** + * 工具 + */ + toolbox: { + type: Boolean, + default: false, + }, }) // 图表对象 @@ -183,6 +190,7 @@ // 监听数据变化 watch( [() => props.xAxisData, props.data], ([newName, newNums], [oldName, oldNums]) => { + console.log(newName, newNums) refreshChart() }, { @@ -196,7 +204,7 @@ grid: props.grid, legend: props.legend, // 图例 toolbox: { - show: true, + show: props.toolbox, feature: { dataZoom: { yAxisIndex: 'none', diff --git a/src/components/map/index.vue b/src/components/map/index.vue index fbcdc2f..62cbbd3 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -379,6 +379,7 @@ // 切换用电检测/用热监测 const changeFlagType = () => { map.value.clearMap() + map.value.setCenter([111.765785, 40.718114]) if (flagType.value) { useHot() } diff --git a/src/assets/images/carbon-result-bg-1.png b/src/assets/images/carbon-result-bg-1.png index d1f724e..d414efe 100644 --- a/src/assets/images/carbon-result-bg-1.png +++ b/src/assets/images/carbon-result-bg-1.png Binary files differ diff --git a/src/components.d.ts b/src/components.d.ts index ab9c1f9..d4f61cb 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -57,5 +57,6 @@ SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] Trend: typeof import('./components/Trend/index.vue')['default'] + TrendChart: typeof import('./components/map/trendChart.vue')['default'] } } diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 869036b..8ebf01a 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -30,7 +30,7 @@ default: () => { return { top: 50, - left: 10, + left: 20, right: 20, bottom: 10, containLabel: true, // 是否包含坐标轴的刻度标签 @@ -174,6 +174,13 @@ type: Boolean, default: false, }, + /** + * 工具 + */ + toolbox: { + type: Boolean, + default: false, + }, }) // 图表对象 @@ -183,6 +190,7 @@ // 监听数据变化 watch( [() => props.xAxisData, props.data], ([newName, newNums], [oldName, oldNums]) => { + console.log(newName, newNums) refreshChart() }, { @@ -196,7 +204,7 @@ grid: props.grid, legend: props.legend, // 图例 toolbox: { - show: true, + show: props.toolbox, feature: { dataZoom: { yAxisIndex: 'none', diff --git a/src/components/map/index.vue b/src/components/map/index.vue index fbcdc2f..62cbbd3 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -379,6 +379,7 @@ // 切换用电检测/用热监测 const changeFlagType = () => { map.value.clearMap() + map.value.setCenter([111.765785, 40.718114]) if (flagType.value) { useHot() } diff --git a/src/components/map/infoWindow.vue b/src/components/map/infoWindow.vue index 430bd46..b1d8cc9 100644 --- a/src/components/map/infoWindow.vue +++ b/src/components/map/infoWindow.vue @@ -4,14 +4,17 @@ Date: 2023-05-10 --> + + + + diff --git a/src/assets/images/carbon-result-bg-1.png b/src/assets/images/carbon-result-bg-1.png index d1f724e..d414efe 100644 --- a/src/assets/images/carbon-result-bg-1.png +++ b/src/assets/images/carbon-result-bg-1.png Binary files differ diff --git a/src/components.d.ts b/src/components.d.ts index ab9c1f9..d4f61cb 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -57,5 +57,6 @@ SystemInfo: typeof import('./components/SystemInfo/index.vue')['default'] TableContainer: typeof import('./components/TableContainer/index.vue')['default'] Trend: typeof import('./components/Trend/index.vue')['default'] + TrendChart: typeof import('./components/map/trendChart.vue')['default'] } } diff --git a/src/components/Echart/LineChart.vue b/src/components/Echart/LineChart.vue index 869036b..8ebf01a 100644 --- a/src/components/Echart/LineChart.vue +++ b/src/components/Echart/LineChart.vue @@ -30,7 +30,7 @@ default: () => { return { top: 50, - left: 10, + left: 20, right: 20, bottom: 10, containLabel: true, // 是否包含坐标轴的刻度标签 @@ -174,6 +174,13 @@ type: Boolean, default: false, }, + /** + * 工具 + */ + toolbox: { + type: Boolean, + default: false, + }, }) // 图表对象 @@ -183,6 +190,7 @@ // 监听数据变化 watch( [() => props.xAxisData, props.data], ([newName, newNums], [oldName, oldNums]) => { + console.log(newName, newNums) refreshChart() }, { @@ -196,7 +204,7 @@ grid: props.grid, legend: props.legend, // 图例 toolbox: { - show: true, + show: props.toolbox, feature: { dataZoom: { yAxisIndex: 'none', diff --git a/src/components/map/index.vue b/src/components/map/index.vue index fbcdc2f..62cbbd3 100644 --- a/src/components/map/index.vue +++ b/src/components/map/index.vue @@ -379,6 +379,7 @@ // 切换用电检测/用热监测 const changeFlagType = () => { map.value.clearMap() + map.value.setCenter([111.765785, 40.718114]) if (flagType.value) { useHot() } diff --git a/src/components/map/infoWindow.vue b/src/components/map/infoWindow.vue index 430bd46..b1d8cc9 100644 --- a/src/components/map/infoWindow.vue +++ b/src/components/map/infoWindow.vue @@ -4,14 +4,17 @@ Date: 2023-05-10 --> + + + + diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 0bb95a0..9f395ae 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -24,7 +24,7 @@