Use vue with element UI as the query area. Due to two-way data binding, select always displays the initialized value directly during initialization without displaying the value in the placeholder, as shown in the figure:
But the background default is to query all without parameters. If you change all the values to other values, the data will not be queried, which is embarrassing! !
Please ask God to solve it!
仓库管理
添加仓库 查询
You can do this
Personal opinion, for reference
The first method
searchInfo.houseType
Initial value setting nullThe second method
orWhen sending a request, manually omit the value of -1 or 0!