From 2009dc9c85455fc8f14dc9824a4d7981724e6b24 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Mon, 22 Sep 2025 16:32:25 +0800 Subject: [PATCH] =?UTF-8?q?2025-09-22=20=E6=8A=A5=E4=BB=B7=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/quote/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/modules/quote/index.vue b/src/views/modules/quote/index.vue index 075ad54..51cea5e 100644 --- a/src/views/modules/quote/index.vue +++ b/src/views/modules/quote/index.vue @@ -515,8 +515,10 @@ export default { if (data && data.code === 0){ this.dataList = data.rows this.total = data.total - if (this.dataList[0] !== undefined){ + if (this.dataList[0] !== undefined) { this.handleSelect(this.dataList[0]) + } else { + this.currentQuote = {} } // if (index !== undefined){ // this.handleSelect(this.dataList[index]) @@ -531,13 +533,15 @@ export default { }) this.isFilterSearch = false }, + handleSelect(row){ if (row){ this.currentQuote = {...row} - }else { + } else { this.currentQuote = {} } }, + handleSave(row){ this.$nextTick(()=>{ if (this.$refs.saveForm){ @@ -560,6 +564,7 @@ export default { } this.saveVisible = true }, + handleSizeChange(size){ this.size = size if ( this.isFilterSearch === false){ @@ -568,6 +573,7 @@ export default { this.searchByAnyField(this.filterSearchData) } }, + handlePageChange(no) { this.no = no if ( this.isFilterSearch === false){