From b7f3f1ed8d3311e3b7aa99731ced6745cc3413b4 Mon Sep 17 00:00:00 2001
From: suerwei <18810552194@163.com>
Date: 星期五, 17 五月 2024 11:57:23 +0800
Subject: [PATCH] 整理进出库管理功能
---
javaweb-plus/javaweb-cms/src/main/resources/templates/geo/deviceLog/add.html | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/deviceLog/add.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/deviceLog/add.html
index 3e47423..6a96c70 100644
--- a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/deviceLog/add.html
+++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/deviceLog/add.html
@@ -18,6 +18,12 @@
<input name="projectName" 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="deviceCode" class="form-control" type="text">
+ </div>
+ </div>
<div class="form-group">
<label class="col-sm-3 control-label">璁惧鍚嶇О锛�</label>
<div class="col-sm-8">
@@ -61,13 +67,17 @@
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "geo/deviceLog"
+ var projectId = [[${projectId}]];
+
$("#form-deviceLog-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
- $.operate.save(prefix + "/add", $('#form-deviceLog-add').serialize());
+ let formData = $('#form-deviceLog-add').serialize();
+ let data = formData + "&projectId=" + projectId;
+ $.operate.save(prefix + "/add", data);
}
}
</script>
--
Gitblit v1.9.1