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){