|
@@ -88,6 +88,8 @@
|
|
|
import pie from "@/components/echartsTemplate/pie.vue";
|
|
|
import { overview, district, reason } from "@/api/Idleland.js";
|
|
|
import { QueryList } from "@/api/cockpitNew";
|
|
|
+import { legends } from "./config.js";
|
|
|
+import { loadGeoJSON } from "@/utils/MapHelper/help.js";
|
|
|
export default {
|
|
|
props: {},
|
|
|
data() {
|
|
@@ -132,6 +134,10 @@ export default {
|
|
|
this.$emit("updateParent", "loading", true);
|
|
|
this.params = { districtCode: this.region };
|
|
|
this.Getzzxm();
|
|
|
+ this.Getkjxx();
|
|
|
+ this.Getkjxx();
|
|
|
+ this.Getkjxx();
|
|
|
+ this.Getkjxx();
|
|
|
|
|
|
this.GetSumList();
|
|
|
},
|
|
@@ -161,6 +167,34 @@ export default {
|
|
|
// tzje: res_hz.data[0].tzje,
|
|
|
// };
|
|
|
},
|
|
|
+ async Getkjxx(params) {
|
|
|
+ let res = await QueryList({
|
|
|
+ jscType: "qytuzz_sdzl_kjxx",
|
|
|
+ id: params ? params.id : "4602",
|
|
|
+ });
|
|
|
+ this.active_tableData(res.data);
|
|
|
+ },
|
|
|
+ active_tableData(newVal) {
|
|
|
+ newVal.forEach((res, index) => {
|
|
|
+ let color = legends[res.type].color;
|
|
|
+ if (res.geom)
|
|
|
+ loadGeoJSON(res.geom, color, { isfly: false }, (data) => {
|
|
|
+ geoSources[res.id] = data;
|
|
|
+ data.name = "LandConsolidation";
|
|
|
+ // data.entities.values.forEach((entity) => {
|
|
|
+ // entity.properties = { type: "图斑上图", id: res.id };
|
|
|
+ // });
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ reset() {
|
|
|
+ if (!window.viewer) return;
|
|
|
+ viewer.entities.removeAll();
|
|
|
+ viewer.dataSources.removeAll();
|
|
|
+ // viewer.dataSources._dataSources.forEach((das) => {
|
|
|
+ // if (das.name == "LandConsolidation") {viewer.dataSources.remove(das);}
|
|
|
+ // });
|
|
|
+ },
|
|
|
GetOverview() {
|
|
|
overview(this.params).then((res) => {
|
|
|
this.sdata = res.data || {};
|