From b9b712a7701eb83c7dbd8367c534d4c880503adb Mon Sep 17 00:00:00 2001
From: zmk <496160012@qq.com>
Date: 星期六, 18 五月 2024 16:51:19 +0800
Subject: [PATCH] 提交代码
---
javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/add.html | 30 ++++++++++++++++++------------
1 files changed, 18 insertions(+), 12 deletions(-)
diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/add.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/add.html
index 7f34c23..f31e8cf 100644
--- a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/add.html
+++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/projectData/add.html
@@ -12,16 +12,16 @@
<input name="name" class="form-control" type="text">
</div>
</div>
- <div class="form-group">
- <label class="col-sm-3 control-label">璧勬枡绫诲瀷锛�</label>
- <div class="col-sm-8">
- <select name="dataType" class="form-control m-b" th:with="type=${@dict.getType('project_data_type')}" required>
- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">鏂囦欢绫诲瀷锛�</label>
+<!-- <div class="form-group">-->
+<!-- <label class="col-sm-3 control-label">璧勬枡绫诲瀷锛�</label>-->
+<!-- <div class="col-sm-8">-->
+<!-- <select name="dataType" class="form-control m-b" th:with="type=${@dict.getType('project_data_type')}" required>-->
+<!-- <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
+<!-- </select>-->
+<!-- </div>-->
+<!-- </div>-->
+ <div th:if="${dataType}=='3'" class="form-group">
+ <label class="col-sm-3 control-label">涓氬姟绫诲瀷锛�</label>
<div class="col-sm-8">
<select name="fileType" class="form-control m-b" th:with="type=${@dict.getType('project_data_file_type')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
@@ -37,15 +37,21 @@
</form>
</div>
<th:block th:include="include :: footer" />
- <script type="text/javascript">
+ <script th:inline="javascript">
var prefix = ctx + "geo/projectData"
+ var projectId = [[${projectId}]];
+ var dataType = [[${dataType}]];
+
$("#form-projectData-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
- $.operate.save(prefix + "/add", $('#form-projectData-add').serialize());
+ let formData = $('#form-projectData-add').serialize();
+ let data = formData + "&projectId=" + projectId + "&dataType=" + dataType;
+ console.log("222",data);
+ $.operate.save(prefix + "/add", data);
}
}
</script>
--
Gitblit v1.9.1