baolei hai 1 ano
pai
achega
302d8b3862

+ 2 - 0
src/main/java/com/goer/project/model/modelEntity/controller/ModelEntityController.java

@@ -148,6 +148,8 @@ public class ModelEntityController extends BaseController
         ModelProject modelProject = modelProjectService.selectModelProjectById(modelEntity.getProjectId());
         modelProject.setOrgEntityid(id);
         mmap.put("modelProject", modelProject);
+        mmap.put("modelEntity", modelEntity);
+
         return prefix + "/copy";
     }
 

+ 1 - 1
src/main/resources/templates/model/modelEntity/copy.html

@@ -5,7 +5,7 @@
 </head>
 <body class="white-bg">
 <div class="wrapper wrapper-content animated fadeInRight ibox-content">
-    <form class="form-horizontal m" id="form-modelEntity-copy">
+    <form class="form-horizontal m" id="form-modelEntity-copy" th:object="${modelEntity}">
         <input type="hidden" id="projectId" name="projectId" th:value="${modelProject.id}">
         <input type="hidden" id="orgEntityId" name="orgEntityId" th:value="${modelProject.orgEntityid}">