当前位置:网站首页>Antd drop-down multiple options to transfer values to the background for query operations
Antd drop-down multiple options to transfer values to the background for query operations
2022-07-19 10:52:00 【fortunate_ leixin】
front end 
<a-form-model-item label=" year " style="width:100%">
<a-select
placeholder=" All "
type="list"
mode="multiple"
v-model="yearLis"
allow-clear
:max-tag-count="3"
@change="$forceUpdate()">
<a-select-option v-for="item in yearData" :key="item.code">
{
{item.value}}
</a-select-option>
</a-select>
</a-form-model-item>
data in :
{
yearData:[],// Used to receive arrays
queryParam:{
yearList:'',//v-model The value in
}
}
It needs to be handled when delivering : Convert an array to a string , When transferring to the background
this.queryParam.yearList= this.yearData.toString()
backstage :
query Accept in :
@TableField(exist = false)
private List<String> yearList;

xml in :
<if test="param.yearList!= null and param.yearList.size > 0 ">
and art.heating_year in
<foreach item="year" index="index" collection="param.yearList" open="(" close=")" separator=",">
#{year}
</foreach>
</if>
Final list page display 
The above description is personal understanding , If there is a problem, add qq 876942434, Progress together ~
边栏推荐
猜你喜欢

LeetCode 2331. Calculate the value of Boolean binary tree (tree traversal)

ROS 重名

如何在双链笔记软件中建立仪表盘和知识库?以嵌入式小组件库 NotionPet 为例

(二)使用MySQL

LeetCode 2331. 计算布尔二叉树的值(树的遍历)

SVN学习

Google Earth Engine——Hansen Global Forest Change v1.8 (2000-2020) 森林覆盖度和森林损失量数据集

How to build dashboard and knowledge base in double chain note taking software? Take the embedded widget library notionpet as an example

欧拉角,轴角,四元数与旋转矩阵详解

Pytorch与权重衰减(L2范数)
随机推荐
电商销售数据分析与预测(日期数据统计、按天统计、按月统计)
JSP based novel writing and creation website
【华为云IoT】读书笔记之《万物互联:物联网核心技术与安全》第3章(下)
基于网络编码的卫星网络容量提升方法
Aike AI frontier promotion (7.17)
基于“7·20郑州特大暴雨”对空天地一体化通信的思考
Use testeract JS offline recognition picture text record
【手写数字识别】基于Lenet网络实现手写数字识别附matlab代码
高数__方程与函数的关系
High number_ Chapter 1 space analytic geometry and vector algebra__ Distance from point to plane
【PostgreSQL 】PostgreSQL 15对distinct的优化
MFC | self drawn CEdit control under the framework
如何在双链笔记软件中建立仪表盘和知识库?以嵌入式小组件库 NotionPet 为例
如果是用mybatics去访问达梦数据库,相当于完全一样了?因为SQL语法没变。对吧?
6G中的卫星通信高效天基计算技术
Integrated network architecture and network slicing technology of air, earth and sea
c语言指针的有关总结
How to build dashboard and knowledge base in double chain note taking software? Take the embedded widget library notionpet as an example
unity3d如何利用asset store下载一些有用的资源包
Map遍历 key-value 的4种方法