一:传递json对象字符串 (标红的必须设置成这样)
var data={};
data.numbers=vm.orderDetails.peoNumber;
data.startTime = vm.orderDetails.startTime;
data.downTime = vm.orderDetails.downTime;data.number = value;
console.log(data)
$.ajax({
type:'post',
url:baseURL + "srbuses/filter",
data:JSON.stringify(data),
dataType:'json',
async:false,
contentType: 'application/json',
success:function(data){
vm.data1 = data.buses;
}
})
此时后台
@RequestMapping("/filter")
public R filter(@