You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
就比如 select 组件,修改表单,需要根据后台返回的 id 显示 name。
如果是本地数据,遍历一次就可以。
如果是远程数据,问题就复杂得多了,一种办法是让后端返回表单数据得时候,把 name 也带上,另一种办法是新增一个查询接口,每次需要显示得时候去查询。
解决办法都需要后端配合,前端要做得事情就是把 name 取出来显示,手动在业务代码里面写是很麻烦的,最好是能封装到组件中做,那就相当完美了。
The text was updated successfully, but these errors were encountered: