|
@@ -43,6 +43,7 @@
|
|
|
import barAndLine from "@/views/cockpit/common/ThreeStackedBarAndLine.vue";
|
|
|
import sankey from "@/components/echartsTemplate/sankey.vue";
|
|
|
import { district } from "@/api/Idleland.js";
|
|
|
+import { QueryList } from "@/api/cockpitNew";
|
|
|
export default {
|
|
|
props: {},
|
|
|
data() {
|
|
@@ -50,7 +51,8 @@ export default {
|
|
|
jdData: {
|
|
|
legend_data: ["整治前", "整治后", "变化率"],
|
|
|
x_data: [],
|
|
|
- // legendmap: [{ type: "bar" }, { type: "bar" }, { type: "line" }],
|
|
|
+ yAxis: [{ name: "面积(公顷)" }, { name: "变化率(%)" }],
|
|
|
+ legendmap: [{ type: "bar" }, { type: "bar" }, { type: "line" }],
|
|
|
params: {},
|
|
|
region: "",
|
|
|
},
|
|
@@ -86,19 +88,20 @@ export default {
|
|
|
},
|
|
|
getData() {
|
|
|
this.$emit("updateParent", "loading", true);
|
|
|
- this.params = { districtCode: this.region };
|
|
|
- this.GetDistrict();
|
|
|
+ this.Getqhdb();
|
|
|
},
|
|
|
- GetDistrict() {
|
|
|
+ Getqhdb() {
|
|
|
this.jdData.x_data = [];
|
|
|
- this.jdData.result = [[], [], [], []];
|
|
|
- district(this.params).then((res) => {
|
|
|
+ this.jdData.result = [[], [], []];
|
|
|
+ QueryList({
|
|
|
+ jscType: "qytuzz_sdzl_tdlyqhdb_dlbh_sd",
|
|
|
+ id: this.region,
|
|
|
+ }).then((res) => {
|
|
|
res.data.forEach((jdData) => {
|
|
|
- this.jdData.x_data.push(jdData.districtName);
|
|
|
- this.jdData.result[0].push(jdData.confirmAre.toFixed(2));
|
|
|
- this.jdData.result[1].push(jdData.disposalArea.toFixed(2));
|
|
|
- this.jdData.result[2].push((jdData.idleRate * 100).toFixed(2));
|
|
|
- // this.jdData.result[3].push((jdData.disposalRate * 100).toFixed(2));
|
|
|
+ this.jdData.x_data.push(jdData.dlbmmc);
|
|
|
+ this.jdData.result[0].push(jdData.qtbdlmj.toFixed(2));
|
|
|
+ this.jdData.result[1].push(jdData.htbdlmj.toFixed(2));
|
|
|
+ this.jdData.result[2].push((jdData.bhl * 100).toFixed(2));
|
|
|
});
|
|
|
this.setEchart(this.jdData, 1);
|
|
|
this.$emit("updateParent", "loading", false);
|
|
@@ -176,9 +179,12 @@ export default {
|
|
|
background-size: 100% 100%;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+}
|
|
|
+</style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.qhdb {
|
|
|
.echart {
|
|
|
- width: 800px !important;
|
|
|
+ width: 810px !important;
|
|
|
height: 260px !important;
|
|
|
}
|
|
|
}
|