下拉搜索
-————————————————————————————-后台————————————————————————————————————
List<DeliveryStore> deliveryStoreList = deliveryStoreService.getAll(getCurrentUser().getTenantId());
model.addAttribute("deliveryStoreList", deliveryStoreList);
-————————————————————————————-页面————————————————————————————————————
$(function(){
//初始化下拉多选搜索框
$(“#shopId”).select2({
allowClear:true
})
})
var shopId = $(“#shopId”).val();
if(shopId == null || shopId == ‘’){
layer.alert(“请选择参与的门店”,{icon:0});
}
还没有评论,来说两句吧...