From 7f1640ad12c63b692a8a4a7deaef46768adde198 Mon Sep 17 00:00:00 2001
From: master <master@163.com>
Date: 星期三, 20 四月 2022 16:52:06 +0800
Subject: [PATCH] 新增告警、模型文件上传等页面
---
public/hn3d/example/00_hn_new.html | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/public/hn3d/example/00_hn_new.html b/public/hn3d/example/00_hn_new.html
index 22b5707..79478b6 100644
--- a/public/hn3d/example/00_hn_new.html
+++ b/public/hn3d/example/00_hn_new.html
@@ -36,6 +36,10 @@
width: 120px;
text-align: center
}
+
+ .disable {
+ pointer-events: none;
+ }
</style>
</head>
@@ -60,9 +64,7 @@
<button type="button" id="meipeng_pati_madao" class="btn btn-primary" style="width: 100%;">鐖椹亾</button>
<button type="button" id="meipeng_tiejia" class="btn btn-primary" style="width: 100%;">閽㈢粨鏋勬灦</button>
<button type="button" id="meipeng_dimian" class="btn btn-primary" style="width: 100%;">鐓ゆ鍦伴潰</button>
- <!-- <button type="button" id="dou_move" class="btn btn-primary" style="width: 100%;">绉诲姩</button>
- <button type="button" id="dou_rote" class="btn btn-primary" style="width: 100%;">鏃嬭浆</button>
- <button type="button" id="dou_work" class="btn btn-primary" style="width: 100%;">鎸栫叅</button> -->
+
<button type="button" id="test_btn" class="btn btn-primary" style="width: 100%;">娴嬭瘯</button>
<button type="button" id="point_btn" class="btn btn-primary" style="width: 100%;">鐓ゅ爢</button>
</div>
@@ -362,6 +364,7 @@
// 璇锋眰鏁版嵁搴撴暟鎹紝瀵规枟杞満妯″瀷杩涜鎿嶄綔
$("#test_btn").click(function () {
+ $("#test_btn").addClass("disable");
console.log(dou_params)
if (model_no < dou_params.length - 1) {
model_no++
@@ -371,6 +374,9 @@
let item = dou_params[model_no]
console.log(item)
dou_move(item.longitude, item.latitude, item.elevation, item.heading_angle)
+ setTimeout(function () {
+ $("#test_btn").removeClass("disable");
+ }, 5000);
})
@@ -506,7 +512,7 @@
$("#point_btn").click(function () {
- var data_path = 'http://112.74.77.127:9100/hn/pointcloud/hn4.txt'
+ var data_path = 'http://112.74.77.127:9100/hn/pointcloud/hn.txt'
console.log("鎴戠偣鍑讳簡")
$.ajax({
url: data_path,
--
Gitblit v1.9.1