From 74785345678193a093f9d90d1cb688c22cb42cb7 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 13 Feb 2023 11:24:35 +0800
Subject: [PATCH] 安保管理修复活动区域没选择提交时报错

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

diff --git a/src/views/security/security.vue b/src/views/security/security.vue
index b478172..8950505 100644
--- a/src/views/security/security.vue
+++ b/src/views/security/security.vue
@@ -310,6 +310,12 @@
             })
         },
         rowUpdate (row, index, done, loading) {
+            if (!row.activityArea){
+              this.$message.warning("请绘制活动区域")
+              loading()
+              return
+            }
+
             row.position = row.longitude + " " + row.latitude
             update(row).then(() => {
                 this.onLoad(this.page)

--
Gitblit v1.9.3