How to use the YIDA address component value for drop-down components
I. Requirements background
The address component of YIDA is a complete set. For user entry, you must fill in the selected dimensions (such as provinces, provinces, cities, provinces, cities, streets, provinces and cities + detailed addresses). In some business scenarios, it may be difficult for us to let users choose provinces and cities. For example, what if "Zhejiang Province/Hangzhou City/unknown area" and "Zhejiang Province/unknown city/unknown area" may appear in the address selection when entering inaccurate customer information? At this time, I thought of using the drop-down box to associate and select instead of the address component.
II. Implementation plan
To achieve the above results of "Zhejiang Province/Hangzhou City/Yuhang District/unknown Street" and "Zhejiang Province/Hangzhou City/unknown city. There are three solutions:
Solution 1: drag three address components. Each component can only be selected from provinces, provinces, and cities. When the provincial and municipal components have no value, it is "unknown"; However, this method is difficult to obtain the value. At the same time, the linkage effect cannot be generated;
Solution 2: download all the provincial and urban streets of the address to form a data table (Download is provided later)
3. Try it online
https://www.aliwork.com/bench/coe? tplUuid=TPL_BG517JOBA5X66BZ4WNOJ