The vue element table adds different display states to a single piece of data according to the data returned by the background (0 or 1).

Business requirements are as follows:
there is a multi-check box in front of the data. Select and click the publish button. The id of this data will be transferred to another table in the background (which is not a table with this data) and a status bar will be added after the data. According to the difference of the status bar, you can see whether this data has been published
for further explanation. Thank you

.

Picture:

Aug.04,2021

Click publish. If the request API is successful, you can request the list data again. You can determine whether the list data is published as a relative front-end display through 0x1, or directly modify the value representing the status in the original list data without re-requesting the list data.

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-1e622e8-45968.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-1e622e8-45968.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?