From c9be45b837c24928571f4ebc016bfdd10804ea63 Mon Sep 17 00:00:00 2001
From: zmk <496160012@qq.com>
Date: 星期四, 16 五月 2024 17:12:43 +0800
Subject: [PATCH] 修改了登录页
---
javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectPerson/add.html | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 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..742db8c 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
@@ -41,15 +41,23 @@
</form>
</div>
<th:block th:include="include :: footer" />
- <script type="text/javascript">
+ <script th:inline="javascript">
var prefix = ctx + "geo/projectPerson"
+ var project_Ids = [[${project_Id}]];
+ alert(project_Ids);
+ 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