问题描述:
前端获取ModelMap的值
Controller:
@GetMapping("/turnDispatch/{workNo}")
public String turnDispatch(@PathVariable("workNo") String workNo, ModelMap eap)
{
TbWorkOrder tbWorkOrder = TbWorkOrderService.selectOrderByWorkNo(workNo);
eap.put("dispatchList", tbWorkOrder );
return prefix + "/turnDispatch";
}
JS:
var workNo = '[[${dispatchList.workNo}]]';