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.

Menu