From e03ab83f07ba16e8295e78f69598a4b2b1b1deec Mon Sep 17 00:00:00 2001
From: suerwei <18810552194@163.com>
Date: 星期四, 16 五月 2024 16:44:23 +0800
Subject: [PATCH] 人员管理挂载project
---
javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectPerson/add.html | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectPerson/add.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectPerson/add.html
index bd90031..c6a0e41 100644
--- a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectPerson/add.html
+++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectPerson/add.html
@@ -43,13 +43,20 @@
<th:block th:include="include :: footer" />
<script type="text/javascript">
var prefix = ctx + "geo/projectPerson"
+ var project_Id = [[${project_Id}]];
+ console.log("projectId",project_Id);
+
$("#form-projectPerson-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
- $.operate.save(prefix + "/add", $('#form-projectPerson-add').serialize());
+ let formData = $('#form-projectPerson-add').serialize();
+ let data = formData + "&projectId=" + project_Id
+ console.log("projectId",project_Id);
+ console.log("data",data);
+ $.operate.save(prefix + "/add", data);
}
}
</script>
--
Gitblit v1.9.1