From d1490ddad2f4bd33fe348d813d5d151269677c7b Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 28 Nov 2022 11:28:43 +0800
Subject: [PATCH] 活动时间选择改为时间选择器;

---
 src/views/security/security.vue |   34 ++++++++++++++++++++++++++++------
 1 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/src/views/security/security.vue b/src/views/security/security.vue
index a2dc462..1a9cd29 100644
--- a/src/views/security/security.vue
+++ b/src/views/security/security.vue
@@ -70,29 +70,51 @@
               label: "负责人",
               prop: "person",
             },
+            // {
+            //   label: "地址",
+            //   prop: "avueMap",
+            //   type: "map",
+            // },
             {
               label: "地址",
               prop: "place",
+              // addDisplay: false,
+              // editDisplay: false,
+              // viewDisplay: false,
+            },
+            {
+              label: "经纬度",
+              prop: "position",
+              type: "input",
+              hide:true
             },
             {
               label: "时间",
               prop: "time",
+              type: "datetime",
+              format: "yyyy-MM-dd hh:mm:ss",
+              valueFormat: "yyyy-MM-dd hh:mm:ss",
             },
             {
               label: "活动内容",
               prop: "content",
-            },
-            {
-              label: "位置",
-              prop: "position",
-              type: "input",
-              hide:true
             },
           ]
         },
         data: []
       };
     },
+    // watch: {
+    //   //latitude   longitude   formattedAddress
+    //   "form.avueMap":{
+    //     handler (newObj) {
+    //       if (newObj.length>0) {
+    //         this.form.place = newObj[2]
+    //         this.form.position = newObj[0]+","+newObj[1]
+    //       }
+    //     }
+    //   }
+    // },
     computed: {
       ...mapGetters(["permission"]),
       permissionList() {

--
Gitblit v1.9.3