|
@@ -1,49 +1,27 @@
|
|
|
<!DOCTYPE html>
|
|
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
|
<head>
|
|
|
- <th:block th:include="include :: header('新增【请填写功能名称】')" />
|
|
|
+ <th:block th:include="include :: header('新增【森林管理】')" />
|
|
|
</head>
|
|
|
<body class="white-bg">
|
|
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
|
|
<form class="form-horizontal m" id="form-stationforest-add">
|
|
|
- <div class="form-group">
|
|
|
- <label class="col-sm-3 control-label is-required">电话:</label>
|
|
|
- <div class="col-sm-8">
|
|
|
- <input name="id" class="form-control" type="text" required>
|
|
|
- </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> 代码生成请选择字典属性</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="form-group">
|
|
|
- <label class="col-sm-3 control-label">电话:</label>
|
|
|
- <div class="col-sm-8">
|
|
|
- <input name="delFlag" class="form-control" type="text">
|
|
|
- </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="name" 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" style="cursor: pointer" onclick="choseLatLng()">经度:</label>
|
|
|
<div class="col-sm-8">
|
|
|
- <input name="longitude" class="form-control" type="text">
|
|
|
+ <input maxlength="100" name="longitude" id="longitude" class="form-control" type="text" required>
|
|
|
</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" style="cursor: pointer" onclick="choseLatLng()">纬度:</label>
|
|
|
<div class="col-sm-8">
|
|
|
- <input name="latitude" class="form-control" type="text">
|
|
|
+ <input maxlength="100" name="latitude" id="latitude" class="form-control" type="text" required>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
@@ -82,7 +60,12 @@
|
|
|
<script th:inline="javascript">
|
|
|
var prefix = ctx + "business/manager/stationforestmanager"
|
|
|
$("#form-stationforest-add").validate({
|
|
|
- focusCleanup: true
|
|
|
+ focusCleanup: true,
|
|
|
+ rules:{
|
|
|
+ contactPhone:{
|
|
|
+ isPhone:true
|
|
|
+ }
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
function submitHandler() {
|
|
@@ -90,6 +73,30 @@
|
|
|
$.operate.save(prefix + "/add", $('#form-stationforest-add').serialize());
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ function choseLatLng() {
|
|
|
+ var options = {
|
|
|
+ url: ctx + "business/manager/superMap/choseLatLng",
|
|
|
+ callBack: doLatLngSubmit
|
|
|
+ };
|
|
|
+ $.modal.openOptions(options);
|
|
|
+ }
|
|
|
+ function doLatLngSubmit(index, layero){
|
|
|
+
|
|
|
+ var body = layer.getChildFrame('body', index);
|
|
|
+ var longitude = body.find('#longitude').val();
|
|
|
+ var latitude = body.find('#latitude').val();
|
|
|
+
|
|
|
+ if (longitude.length === 0 || latitude.length === 0) {
|
|
|
+ $.modal.alertWarning("请选择坐标点");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ $("#longitude").val(longitude);
|
|
|
+ $("#latitude").val(latitude);
|
|
|
+
|
|
|
+ layer.close(index);
|
|
|
+ }
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|