Browse Source

整治项目分类

maxiaoxiao 8 tháng trước cách đây
mục cha
commit
97abbf2a25
1 tập tin đã thay đổi với 28 bổ sung1 xóa
  1. 28 1
      src/views/LandConsolidation/components/sdgk.vue

+ 28 - 1
src/views/LandConsolidation/components/sdgk.vue

@@ -87,6 +87,7 @@
 <script>
 import pie from "@/components/echartsTemplate/pie.vue";
 import { overview, district, reason } from "@/api/Idleland.js";
+import { QueryList } from "@/api/cockpitNew";
 export default {
   props: {},
   data() {
@@ -130,10 +131,36 @@ export default {
     getData() {
       this.$emit("updateParent", "loading", true);
       this.params = { districtCode: this.region };
-      this.GetOverview();
+      this.Getzzxm();
 
       this.GetSumList();
     },
+    async Getzzxm(params) {
+      let res = await QueryList({
+        jscType: "jsc_stxf_ywfl_tdzz",
+        id: params ? params.id : "4602",
+      });
+      let arr = [];
+      res.data.forEach((res) => {
+        arr.push({
+          name: res.zzlx,
+          value: res.xmsl,
+        });
+      });
+      this.setEchart({ data: arr, type: '"horizontal"' }, 0);
+      // this.$refs.stxf_echart_tdzz.setOptions(arr);
+
+      // let res_hz = await QueryList({
+      //   jscType: "jsc_stxf_ztgh_tdzz",
+      //   id: params ? params.id : "4602",
+      // });
+
+      // this.sdata.tdzz = {
+      //   xzqhdm_number: res_hz.data[0].xmsl,
+      //   zlmj: res_hz.data[0].mj,
+      //   tzje: res_hz.data[0].tzje,
+      // };
+    },
     GetOverview() {
       overview(this.params).then((res) => {
         this.sdata = res.data || {};