还有post方法2020年4月27号有时间测一下
axios.post("/admin/doctorManage/a",this.params)
.then(res=>{
this.array = res.data.doctors;
console.log(res.data.doctors)
}).catch(err=>{
this.$message.error(err);
});
@RequestMapping(value="/admin/doctorManage/a",method = RequestMethod.POST)
@ResponseBody
public JSONObject doctorManagewith(@RequestBody(required = false) Doctor doctor){
String name = doctor.getName();
String certId = doctor.getCertId();
JSONObject json=new JSONObject();
json.put("doctors",doctorService.getAllDoctor(name,certId));
System.out.println(json);
return json;
}