From 5e2aafeede13d337380f736567caf74f49713be7 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 09 Aug 2024 14:38:32 +0800
Subject: [PATCH] 代码优化
---
src/views/publicSecurity/components/auditBase.vue | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/src/views/publicSecurity/components/auditBase.vue b/src/views/publicSecurity/components/auditBase.vue
index 56d6d03..2afc27f 100644
--- a/src/views/publicSecurity/components/auditBase.vue
+++ b/src/views/publicSecurity/components/auditBase.vue
@@ -7,7 +7,7 @@
<el-button :size="size" @click="handleSubmit(3)">驳 回</el-button>
</template>
- <template slot-scope="{ row, size, index }" slot="houseCode">
+ <template slot-scope="{ row, size, index }" slot="houseCode" v-if="this.type == 2">
<el-select v-model="form.houseCode" filterable remote :remote-method="onRemoteMethod" @change="onSelectChange"
placeholder="请选择标准地址" reserve-keyword>
<el-option v-for="item in standardAddressList" :key="item.houseCode"
@@ -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