From 576e64f01f88f2b3d4cd6bd35f875280f311aa73 Mon Sep 17 00:00:00 2001
From: suerwei <18810552194@163.com>
Date: 星期五, 17 五月 2024 16:43:39 +0800
Subject: [PATCH] 人员管理调整字段,附件上传,附件查看功能
---
javaweb-plus/javaweb-cms/src/main/resources/templates/geo/hole/add.html | 146 +++++-------------------------------------------
1 files changed, 15 insertions(+), 131 deletions(-)
diff --git a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/hole/add.html b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/hole/add.html
index 3a99683..1bbcaeb 100644
--- a/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/hole/add.html
+++ b/javaweb-plus/javaweb-cms/src/main/resources/templates/geo/hole/add.html
@@ -7,34 +7,13 @@
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-hole-add">
- <div class="form-group">
- <label class="col-sm-3 control-label">椤圭洰搴忓垪鍙凤細</label>
- <div class="col-sm-8">
- <input name="projectId" class="form-control" type="text">
- </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">
<input name="code" 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="description" 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="type" class="form-control m-b">
- <option value="">鎵�鏈�</option>
- </select>
- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 浠g爜鐢熸垚璇烽�夋嫨瀛楀吀灞炴��</span>
- </div>
- </div>
- <div class="form-group">
+ <div class="form-group">
<label class="col-sm-3 control-label">瀛斿彛楂樼▼锛�</label>
<div class="col-sm-8">
<input name="elevation" class="form-control" type="text">
@@ -47,136 +26,41 @@
</div>
</div>
<div class="form-group">
- <label class="col-sm-3 control-label">鍕樻帰鐐圭粡搴︼細</label>
+ <label class="col-sm-3 control-label">閽诲瓟缁忓害锛�</label>
<div class="col-sm-8">
<input name="longitude" class="form-control" type="text">
</div>
</div>
<div class="form-group">
- <label class="col-sm-3 control-label">鍕樻帰鐐圭含搴︼細</label>
+ <label class="col-sm-3 control-label">閽诲瓟绾害锛�</label>
<div class="col-sm-8">
<input name="latitude" class="form-control" type="text">
</div>
</div>
- <div class="form-group">
- <label class="col-sm-3 control-label">鐩稿鍧愭爣X锛�</label>
+ <div class="form-group">
+ <label class="col-sm-3 control-label">杩涘害锛�</label>
<div class="col-sm-8">
- <input name="surveyX" class="form-control" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">鐩稿鍧愭爣Y锛�</label>
- <div class="col-sm-8">
- <input name="surveyY" class="form-control" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">鐩稿鍧愭爣Z锛�</label>
- <div class="col-sm-8">
- <input name="surveyZ" 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="surveyLatitude" 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="surveyLongitude" 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="mapLatitude" 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="mapLongitude" class="form-control" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">閽诲瓟瀹氫綅鏃堕棿锛�</label>
- <div class="col-sm-8">
- <div class="input-group date">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input name="mapTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">鏃犳硶瀹氫綅鐨勫湴鐐癸細</label>
- <div class="col-sm-8">
- <input name="position" class="form-control" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">鏃犳硶瀹氫綅鐨勬椂闂达細</label>
- <div class="col-sm-8">
- <div class="input-group date">
- <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
- <input name="locateTime" class="form-control" placeholder="yyyy-MM-dd" type="text">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">鏃犳硶瀹氫綅鐨勫師鍥狅細</label>
- <div class="col-sm-8">
- <input name="reason" class="form-control" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">鐜板満鎷嶇収1锛�</label>
- <div class="col-sm-8">
- <input name="pic1" class="form-control" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">鐜板満鎷嶇収2锛�</label>
- <div class="col-sm-8">
- <input name="pic2" class="form-control" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">鐜板満鎷嶇収3锛�</label>
- <div class="col-sm-8">
- <input name="pic3" class="form-control" type="text">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">閽诲瓟鐘舵�侊細</label>
- <div class="col-sm-8">
- <div class="radio-box">
- <input type="radio" name="status" value="">
- <label th:for="status" th:text="鏈煡"></label>
- </div>
- <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 浠g爜鐢熸垚璇烽�夋嫨瀛楀吀灞炴��</span>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-3 control-label">鏄惁鍒犻櫎锛�</label>
- <div class="col-sm-8">
- <input name="isDeleted" class="form-control" type="text">
+ <input name="pic1" class="form-control" type="text" placeholder="璇疯緭鍏ヨ繘搴︽暟瀛楋紙渚嬶細10浠h〃10%锛�">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
- <script type="text/javascript">
+
+ <script th:inline="javascript">
var prefix = ctx + "geo/hole"
+ var projectId = [[${projectId}]];
+
$("#form-hole-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
- $.operate.save(prefix + "/add", $('#form-hole-add').serialize());
+ let formData = $('#form-hole-add').serialize();
+ let data = formData + "&projectId=" + projectId;
+ $.operate.save(prefix + "/add", data);
}
}
--
Gitblit v1.9.1