Browse Source

土地现状

maxiaoxiao 10 months ago
parent
commit
005948a78a
1 changed files with 7 additions and 5 deletions
  1. 7 5
      src/views/siteselection/components/dkDetails.vue

+ 7 - 5
src/views/siteselection/components/dkDetails.vue

@@ -1,6 +1,8 @@
 <template>
   <div class="dkxq_Container">
+    {{ title }}
     <pie
+      v-if="title == '土地现状'"
       :class="`echart`"
       unit="亩"
       @echartClick="echartClick"
@@ -17,12 +19,12 @@ export default {
   props: {},
   data() {
     return {
-      type: "",
+      title: "",
     };
   },
   methods: {
-    show(item, type) {
-      this.type = type;
+    show(item, title) {
+      this.title = title;
       this.getData(item);
     },
     getData(item) {
@@ -52,10 +54,10 @@ export default {
         }
       });
     },
-    setEchart(data, type) {
+    setEchart(data, title) {
       console.log("res.data", this.$refs.echartRef);
       this.$nextTick(() => {
-        this.$refs.echartRef.setOptions({ data, type });
+        this.$refs.echartRef.setOptions({ data, title });
       });
     },
     echartClick(name) {},