Commit b59656e7 by 杨明

表格回显

1 parent fc32bf2e
...@@ -183,7 +183,7 @@ export default { ...@@ -183,7 +183,7 @@ export default {
handleDelete(row) { handleDelete(row) {
this.selectedData = this.selectedData.filter((item) => item.id !== row.id) this.selectedData = this.selectedData.filter((item) => item.id !== row.id)
const obj = this.selectingData.find((v) => v.id == row.id) const obj = this.selectingData.find((v) => v.id == row.id)
this.$refs.seletingTable.toggleRowSelection(obj) if (obj) this.$refs.seletingTable.toggleRowSelection(obj)
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.currentPage = val this.currentPage = val
......
...@@ -311,7 +311,7 @@ export default { ...@@ -311,7 +311,7 @@ export default {
handleDelete(row) { handleDelete(row) {
this.selectedData = this.selectedData.filter((item) => item.id !== row.id) this.selectedData = this.selectedData.filter((item) => item.id !== row.id)
const obj = this.selectingData.find((v) => v.id == row.id) const obj = this.selectingData.find((v) => v.id == row.id)
this.$refs.seletingTable.toggleRowSelection(obj) if (obj) this.$refs.seletingTable.toggleRowSelection(obj)
}, },
handleCurrentChange(val = 1) { handleCurrentChange(val = 1) {
this.currentPage = val this.currentPage = val
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!