修改root部门时sql会报错, 原因是edit页面没把ancestors传回来

This commit is contained in:
贪吃的猛犸象 2021-07-29 12:29:04 +00:00 committed by Gitee
parent 27277b51d7
commit 4b1f43bb29
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-dept-edit" th:object="${dept}"> <form class="form-horizontal m" id="form-dept-edit" th:object="${dept}">
<input name="deptId" type="hidden" th:field="*{deptId}" /> <input name="deptId" type="hidden" th:field="*{deptId}" />
<input name="ancestors" type="hidden" th:field="*{ancestors}" />
<input id="treeId" name="parentId" type="hidden" th:field="*{parentId}" /> <input id="treeId" name="parentId" type="hidden" th:field="*{parentId}" />
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">上级部门:</label> <label class="col-sm-3 control-label">上级部门:</label>