|
@@ -49,9 +49,9 @@ export default {
|
|
|
return {
|
|
|
// loading: false,
|
|
|
jdData: {
|
|
|
- legend_data: ["整治前", "整治后", "变化率"],
|
|
|
+ legend_data: ["整治前", "整治后", "变化面积"],
|
|
|
x_data: [],
|
|
|
- yAxis: [{ name: "面积(公顷)" }, { name: "变化面积(公顷)" }],
|
|
|
+ yAxis: [{ name: "面积(km²)" }, { name: "变化面积(km²)" }],
|
|
|
legendmap: [{ type: "bar" }, { type: "bar" }, { type: "line" }],
|
|
|
params: {},
|
|
|
region: "",
|
|
@@ -67,6 +67,7 @@ export default {
|
|
|
],
|
|
|
tab1: 0,
|
|
|
tab: "sd",
|
|
|
+ dbdata: {},
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -76,7 +77,7 @@ export default {
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
contrast() {
|
|
|
- this.$emit("contrast");
|
|
|
+ this.$emit("contrast", this.dbdata);
|
|
|
},
|
|
|
changeData(name, updata) {
|
|
|
this[name] = updata;
|
|
@@ -99,6 +100,7 @@ export default {
|
|
|
jscType: `qytuzz_sdzl_tdlyqhdb_dlbh_${this.tab}`,
|
|
|
id: this.region,
|
|
|
}).then((res) => {
|
|
|
+ this.dbdata = { fp: res.data };
|
|
|
res.data.forEach((jdData) => {
|
|
|
this.jdData.x_data.push(jdData.dlbmmc);
|
|
|
this.jdData.result[0].push(jdData.qtbdlmj.toFixed(2));
|
|
@@ -106,6 +108,7 @@ export default {
|
|
|
this.jdData.result[2].push(jdData.bhl.toFixed(2));
|
|
|
});
|
|
|
this.setEchart(this.jdData, 1);
|
|
|
+
|
|
|
// this.loading = false;
|
|
|
});
|
|
|
},
|