@GetMapping("/demo/{studentId}")
public String demo(@PathVariable("studentId") Long studetnId, ModelMap mmap)
{
mmap.put("man", sysmanagementservie.selectManagementById(studetnId));
return prefix + "/task";
}
function selTask(man){
$.modal.open("他的任务", prefix + '/demo/' + man);
}
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('任务列表')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" th:object="${man}">
<body class="white-bg">
<input name="tid" th:field="*{mid}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">姓名:</label>
<div class="col-sm-8">
<input name="member" th:field="*{mname}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">任务进度:</label>
<div class="col-sm-8">
<input name="mtake" th:field="*{mtake}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">任务:</label>
<div class="col-sm-8">
<input name="mcontent" th:field="*{mcontent}" class="form-control" type="text">
</div>
</div>
</body>
</form>
</div>
</body>
</html>
功能展示
数据库中的键值一定要对应