Browse Source

提交出入记录

wangming 2 months ago
parent
commit
4cfef109d6
1 changed files with 29 additions and 14 deletions
  1. 29 14
      src/pagesA/discrepancy/discrepancy.vue

+ 29 - 14
src/pagesA/discrepancy/discrepancy.vue

@@ -27,22 +27,37 @@
 
 <script>
 export default {
-    data() {
-        return {
-            currentDate: "",
-        };
-    },
-    methods: {
-        getCurrentDate() {
-            const now = new Date();
-            this.currentDate = `${now.getFullYear()}-${
-                now.getMonth() + 1
-            }月${now.getDate().toString().padStart(2, "0")}日`;
+    props: {
+        timelineData: {
+            type: Array,
+            default: () => [
+                {
+                    time: "16:12",
+                    title: "进入卫生间(房间)",
+                },
+                {
+                    time: "16:42",
+                    title: "离开房间",
+                },
+                {
+                    time: "16:12",
+                    title: "进入卫生间(房间)",
+                },
+                {
+                    time: "16:42",
+                    title: "离开房间",
+                },
+                {
+                    time: "16:12",
+                    title: "进入卫生间(房间)",
+                },
+                {
+                    time: "16:42",
+                    title: "离开房间",
+                },
+            ],
         },
     },
-    mounted() {
-        this.getCurrentDate();
-    },
 };
 </script>