From e2e20760027304945b8949cf901f57e9a2f26974 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Mon, 14 Feb 2022 09:14:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=85=84=E5=BC=9F=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E4=BC=A0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/search/index.vue | 5 +---- jero-web/src/components/tableDate/index.vue | 10 ++++++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/jero-web/src/components/search/index.vue b/jero-web/src/components/search/index.vue index 5fe5068ac..b5afec130 100644 --- a/jero-web/src/components/search/index.vue +++ b/jero-web/src/components/search/index.vue @@ -94,10 +94,6 @@ export default { name: 'index', props: { - searchList: { - type: Array, - default: [] - }, url: { type: Object, default: {} @@ -111,6 +107,7 @@ return { queryParam: {}, toggleSearchStatus:false, + searchList:[], } }, mounted() { diff --git a/jero-web/src/components/tableDate/index.vue b/jero-web/src/components/tableDate/index.vue index d94dd8a11..347acdc0e 100644 --- a/jero-web/src/components/tableDate/index.vue +++ b/jero-web/src/components/tableDate/index.vue @@ -111,9 +111,11 @@ this.tableAll = event.target.checked this.checkboxList = [] if (this.tableAll) { - this.jsonBody.forEach(res => { - this.checkboxList.push(res.id) - }) + if (this.jsonBody.length > 0){ + this.jsonBody.forEach(res => { + this.checkboxList.push(res.id) + }) + } } }, getTableList(search) { @@ -122,7 +124,7 @@ } getAction(this.url.tableList, params).then((res) => { if (res.success) { - this.jsonBody = res.result + this.jsonBody = res.result || [] } }) },