From 2069d917f8b33e8de80dcf972c72cf54ae4019ba Mon Sep 17 00:00:00 2001
From: zhongrj <123456>
Date: Thu, 29 Dec 2022 09:43:39 +0800
Subject: [PATCH] 安保活动查询关联完善

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

diff --git a/src/views/security/security.vue b/src/views/security/security.vue
index 482afc7..e000c7c 100644
--- a/src/views/security/security.vue
+++ b/src/views/security/security.vue
@@ -14,12 +14,12 @@
       </template>
     </avue-crud>
 
-    <el-drawer title="活动人员区域" :visible.sync="personBox" :append-to-body="true" size="50%">
-      <securityManage />
+    <el-drawer title="活动人员区域" :visible.sync="personBox" :append-to-body="true" size="50%" :destroy-on-close="true">
+      <securityManage ref="securityManage" :securityId="securityId"/>
     </el-drawer>
 
-    <el-drawer title="活动车辆区域" :visible.sync="carBox" :append-to-body="true" size="50%">
-      <securityManageCar />
+    <el-drawer title="活动车辆区域" :visible.sync="carBox" :append-to-body="true" size="50%" :destroy-on-close="true">
+      <securityManageCar ref="car" :securityId="securityId"/>
     </el-drawer>
   </basic-container>
 </template>
@@ -38,6 +38,7 @@
   },
   data() {
     return {
+      securityId:"",
       carBox: false,
       personBox: false,
       form: {},
@@ -337,12 +338,14 @@
       });
     },
     //活动人员区域点击按钮事件
-    handlePersonList() {
+    handlePersonList(row) {
       this.personBox = true;
+      this.securityId = row.id
     },
     //活动车辆区域点击按钮事件
-    handleCarList() {
+    handleCarList(row) {
       this.carBox = true;
+      this.securityId = row.id
     }
   }
 };

--
Gitblit v1.9.3