|
@@ -11,7 +11,9 @@
|
|
<div>
|
|
<div>
|
|
<div style="width: 900px; height: 1000px; display: flex;position: relative;justify-content: center; padding-top: 150px;">
|
|
<div style="width: 900px; height: 1000px; display: flex;position: relative;justify-content: center; padding-top: 150px;">
|
|
<MapCharts
|
|
<MapCharts
|
|
- :mapHeatData="heatMap" :formatter="showLabel" :qx="qx" @selectArea="area => qx = area" />
|
|
|
|
|
|
+ :mapHeatData="heatMap"
|
|
|
|
+ :legend="legendData"
|
|
|
|
+ :formatter="showLabel" :qx="qx" @selectArea="area => qx = area" />
|
|
<div style="position: absolute; width: 500px; top: 10px; left: -20px">
|
|
<div style="position: absolute; width: 500px; top: 10px; left: -20px">
|
|
<SearchBox :area.sync="qx" />
|
|
<SearchBox :area.sync="qx" />
|
|
</div>
|
|
</div>
|
|
@@ -32,8 +34,9 @@
|
|
import UnitInfo from "./components/UnitInfo.vue";
|
|
import UnitInfo from "./components/UnitInfo.vue";
|
|
import Construction from "./components/Construction.vue";
|
|
import Construction from "./components/Construction.vue";
|
|
import ManagementContent from "./components/ManagementContent.vue";
|
|
import ManagementContent from "./components/ManagementContent.vue";
|
|
- import MapCharts from "../Home/components/MapCharts.vue";
|
|
|
|
|
|
+ import MapCharts from "../Home/components/NewMapChartsCategory.vue";
|
|
import SearchBox from '@/components/SearchBox.vue';
|
|
import SearchBox from '@/components/SearchBox.vue';
|
|
|
|
+import { loadMapData } from '@/shared'
|
|
import {
|
|
import {
|
|
getGlzts,
|
|
getGlzts,
|
|
getWbxxs,
|
|
getWbxxs,
|
|
@@ -41,10 +44,7 @@
|
|
getJzrzdwpms,
|
|
getJzrzdwpms,
|
|
getWbdwgljzpm,
|
|
getWbdwgljzpm,
|
|
} from "@/api/management.js";
|
|
} from "@/api/management.js";
|
|
- import {
|
|
|
|
- getQyfbList
|
|
|
|
-} from "@/api/basicInfor.js";
|
|
|
|
-import { formatCityData, createMapChartWindowInfo } from "../../utils";
|
|
|
|
|
|
+import { createMapChartWindowInfo } from "../../utils";
|
|
export default {
|
|
export default {
|
|
name: "FirePage",
|
|
name: "FirePage",
|
|
components: {
|
|
components: {
|
|
@@ -64,6 +64,7 @@ import { formatCityData, createMapChartWindowInfo } from "../../utils";
|
|
ZjglList: [],
|
|
ZjglList: [],
|
|
wbdwList: [],
|
|
wbdwList: [],
|
|
heatMap: [],
|
|
heatMap: [],
|
|
|
|
+ legendData: [],
|
|
qx: "重庆市",
|
|
qx: "重庆市",
|
|
params: {
|
|
params: {
|
|
pageSize: 100,
|
|
pageSize: 100,
|
|
@@ -72,7 +73,7 @@ import { formatCityData, createMapChartWindowInfo } from "../../utils";
|
|
|
|
|
|
showLabel(params) {
|
|
showLabel(params) {
|
|
return createMapChartWindowInfo({ title: params.name }, () =>
|
|
return createMapChartWindowInfo({ title: params.name }, () =>
|
|
- `高层建筑数 <span style="font-size: 24px;color:red;font-weight:bold;">${params.value}</span>栋`
|
|
|
|
|
|
+ `高层建筑数 <span style="font-size: 24px;color:red;font-weight:bold;">${params.data.meta.sl}</span>栋`
|
|
);
|
|
);
|
|
},
|
|
},
|
|
};
|
|
};
|
|
@@ -115,19 +116,10 @@ import { formatCityData, createMapChartWindowInfo } from "../../utils";
|
|
});
|
|
});
|
|
},
|
|
},
|
|
loadMapData() {
|
|
loadMapData() {
|
|
- getQyfbList({
|
|
|
|
- pageSize: 1000,
|
|
|
|
- pageNum: 1,
|
|
|
|
- }).then((res) => {
|
|
|
|
- let lists = res.data.rows;
|
|
|
|
- this.heatMap = formatCityData(
|
|
|
|
- lists.map((item) => ({
|
|
|
|
- name: item.qx,
|
|
|
|
- value: item.zs,
|
|
|
|
- }))
|
|
|
|
- );
|
|
|
|
- console.log(res.data.rows, this.heatMap);
|
|
|
|
- });
|
|
|
|
|
|
+ loadMapData('GCJZ').then(res => {
|
|
|
|
+ this.heatMap = res.heatMap
|
|
|
|
+ this.legendData = res.legendData
|
|
|
|
+ })
|
|
},
|
|
},
|
|
// 维保形式
|
|
// 维保形式
|
|
getWbxsList() {
|
|
getWbxsList() {
|