How does el-table refresh only one row of data?

el-table table, after selecting a row of data, operating on the selected row and saving the current row, you need to load the latest data. How to refresh only the current row and leave the other row data unchanged? (instead of refreshing the entire table list)

Dec.24,2021

you have a bit of a need. First of all, you come to el-table automatically. The data in for is actually looped out. If you want to change the data in it, only the data source has changed. And the data source corresponds to the entire table,. It seems as if I can't figure out how to change only one line of data.


there is a parameter in the custom table that scope,scope.$index is the index of your row of data. Get the new data when refreshing and replace it according to the index.


how do you solve the problem of refreshing single-row data? I have encountered a similar problem. After clicking to delete a certain piece of data, the data status of the table is being deleted, but the back-end data will be deleted after a period of time. At this time, you need to update this piece of data in the table.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b38090-2b92a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b38090-2b92a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?