Sfoglia il codice sorgente

大中社区左侧数据

shaogen1995 3 anni fa
parent
commit
f0a1cd5fde

+ 3 - 32
shuzhixiangzheng/src/components/OtherChilds/Dezhizhaihai.vue

@@ -32,44 +32,15 @@
   
   <script>
 export default {
+  props: ["data"],
   name: "dezhizhaihaiPage",
   components: {},
   data() {
     return {
-      data: [
-        {
-          id: 1,
-          name: "月亮山东路水务局宿舍等13户屋后滑坡",
-          type: "滑坡",
-          num: 48.0,
-        },
-        { id: 2, name: "金湾666666666", type: "滑坡隐患点", num: 32.0 },
-        {
-          id: 3,
-          name: "月亮山东路水务局宿舍等13户屋后滑坡",
-          type: "滑坡",
-          num: 48.0,
-        },
-        { id: 4, name: "金湾666666666", type: "滑坡隐患点", num: 32.0 },
-        {
-          id: 5,
-          name: "月亮山东路水务局宿舍等13户屋后滑坡",
-          type: "滑坡",
-          num: 48.0,
-        },
-        { id: 6, name: "金湾666666666", type: "滑坡隐患点", num: 32.0 },
-        {
-          id: 7,
-          name: "月亮山东路水务局宿舍等13户屋后滑坡",
-          type: "滑坡",
-          num: 48.0,
-        },
-        { id: 8, name: "金湾666666666", type: "滑坡隐患点", num: 32.0 },
-      ],
+
     };
   },
-  mounted() {
-  },
+  mounted() {},
   methods: {},
 };
 </script>

+ 1 - 1
shuzhixiangzheng/src/components/OtherChilds/LeftPage.vue

@@ -7,7 +7,7 @@
     <img id="person_status_img" src="../../assets/png/2.png" />
     <PepoleStatus></PepoleStatus>
     <img id="dizhizaihai_img" src="../../assets/png/dizhizaihai.png" />
-    <Dezhizhaihai></Dezhizhaihai>
+    <Dezhizhaihai :data='dataAll.damage'></Dezhizhaihai>
   </div>
 </template>