How to calculate how to use the computed properties of the el-table

Scenario: In elementUI, a table displaying data table, if you run into when to use the data structure transformation switch, how should I do?
At first, I wanted to write the switch structure in the computed value in return I want out, and found that the data do not show up.

Here Insert Picture Description
Here Insert Picture Description
Then after thought, we can return the data we want in the form of methods used method
after such a change
Here Insert Picture Description
Here Insert Picture Description
then fine. . .

Published 55 original articles · won praise 8 · views 1728

Guess you like

Origin blog.csdn.net/louting249/article/details/104771186