|
|
|
@ -517,6 +517,8 @@ export default { |
|
|
|
this.total = data.total |
|
|
|
if (this.dataList[0] !== undefined) { |
|
|
|
this.handleSelect(this.dataList[0]) |
|
|
|
} else { |
|
|
|
this.currentQuote = {} |
|
|
|
} |
|
|
|
// if (index !== undefined){ |
|
|
|
// this.handleSelect(this.dataList[index]) |
|
|
|
@ -531,6 +533,7 @@ export default { |
|
|
|
}) |
|
|
|
this.isFilterSearch = false |
|
|
|
}, |
|
|
|
|
|
|
|
handleSelect(row){ |
|
|
|
if (row){ |
|
|
|
this.currentQuote = {...row} |
|
|
|
@ -538,6 +541,7 @@ export default { |
|
|
|
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){ |
|
|
|
|