在二级联动的基础上
HTML部分
学校
JS部分
getDaySchool:function () {
$.ajax({
type: "POST",
url: baseURL + "platform/notice1/All123",
contentType: "application/json",
success: function (r) {
if (r.code === 0) {
vm.school = r.school;
vm.student.gid=0;
vm.student.cid=0;
}else {
}
}
});
}Controller部分
@RequestMapping("/All123")
public R list(){
Map map = new HashMap<>();
List list = schoolService.selectByMap(map);
return R.ok().put("school", list);
}