From 6155669d6cecdff465688ec86bc69453b7896b2c Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Wed, 03 Jul 2024 19:01:40 +0800
Subject: [PATCH] 代码优化

---
 src/views/publicSecurity/components/auditBase.vue |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/views/publicSecurity/components/auditBase.vue b/src/views/publicSecurity/components/auditBase.vue
index 56d6d03..ce9027e 100644
--- a/src/views/publicSecurity/components/auditBase.vue
+++ b/src/views/publicSecurity/components/auditBase.vue
@@ -101,11 +101,20 @@
         this.getPlaceAddressListRequest(query)
       },
       getPlaceAddressListRequest(query) {
-        getList(1, 10, {
-          neiName: query
-        }).then(res => {
-          this.standardAddressList = res.data.data.records;
-        })
+        // 场所名称查询
+        if (this.type == 2) {
+          getList(1, 10, {
+            placeName: query
+          }).then(res => {
+            this.standardAddressList = res.data.data.records;
+          })
+        } else {
+          getList(1, 10, {
+            neiName: query
+          }).then(res => {
+            this.standardAddressList = res.data.data.records;
+          })
+        }
       },
 
       handleSubmit(status) {

--
Gitblit v1.9.3