|
@@ -0,0 +1,91 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
|
|
+<head>
|
|
|
+ <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-stationfire-edit" th:object="${tResStationfire}">
|
|
|
+ <input name="id" th:field="*{id}" type="hidden">
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-3 control-label">名称:</label>
|
|
|
+ <div class="col-sm-8">
|
|
|
+ <input name="name" th:field="*{name}" class="form-control" type="text">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-3 control-label" style="cursor: pointer" onclick="choseLatLng()">经度:</label>
|
|
|
+ <div class="col-sm-8">
|
|
|
+ <input maxlength="100" name="longitude" id="longitude" th:field="*{longitude}" class="form-control" type="text" required>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <label class="col-sm-3 control-label" style="cursor: pointer" onclick="choseLatLng()">纬度:</label>
|
|
|
+ <div class="col-sm-8">
|
|
|
+ <input maxlength="100" name="latitude" id="latitude" th:field="*{latitude}" 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">
|
|
|
+ <input name="address" th:field="*{address}" 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="contactUser" th:field="*{contactUser}" 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="contactPhone" th:field="*{contactPhone}" class="form-control" type="text">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+</div>
|
|
|
+<th:block th:include="include :: footer" />
|
|
|
+<script th:inline="javascript">
|
|
|
+ var prefix = ctx + "business/manager/stationfiremanager";
|
|
|
+ $("#form-stationfire-edit").validate({
|
|
|
+ focusCleanup: true,
|
|
|
+ rules:{
|
|
|
+ contactPhone:{
|
|
|
+ isPhone:true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ function submitHandler() {
|
|
|
+ if ($.validate.form()) {
|
|
|
+ $.operate.save(prefix + "/edit", $('#form-stationfire-edit').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>
|