Element-ui+vue built a tree-shaped table, access to a large number of data when the page directly stuck, looking for a solution!

the project needs to make a tree-shaped table, as shown in the figure. The page still flows when there is a small amount of data. After importing thousands of pieces of data, it is directly jammed. When you first request to render DOM, you use 3room5s. When you enter, the expand button basically cannot be clicked. Click on the whole page and nothing can be done. After stutters for 5s, the whole page card is blank and the data will appear. And requirements can not use paging, please give a train of thought.


Segmentation request. Just come in and display only the first-level data. When you click, you request the next-level data according to the node you clicked. Of course, this needs to be discussed with the backend. This is very beneficial. In the future, more and more data or more data pages will not be stuttered


, which I have encountered. Solved


vue tree form


see whether mine meets your requirements or not. I solved the https://codeshelper.com/q/10.


lazy loading of the form seems to work. Confirm the query interface of this data with the back-end developer. Data governance must be complete. Segments of large magnitude

Menu