Browse Source

feat:更新提示文案

jinx 4 years ago
parent
commit
c7bf260f27
2 changed files with 24 additions and 8 deletions
  1. 3 1
      locat/addDataSet.html
  2. 21 7
      template_menu/PickCoordSys.html

+ 3 - 1
locat/addDataSet.html

@@ -36,7 +36,8 @@
                     <!-- <div class="title">定位</div> -->
                     <p class="desc">通过两个控制点坐标确定点云在地图上的位置</p>
                     <div class="editBtn" @click="openEdit">修改控制点</div>
-
+                    <p v-if="status!=1" style="color: #999;margin: 10px 0 ; ">提示: 当前场景地理位置为默认坐标,请点击左侧【控制点 - 修改控制点】输入真实的控制点坐标
+                    </p>
                     <div class="main_item">
                         <p class="main_item_title">控制点1</p>
                         <div class="dataBox">
@@ -557,6 +558,7 @@
 
                     const sceneCode = isDev ? 't-kJ2PEjZ' : sceneName
                     axios.get(`/indoor/${sceneCode}/api/controlPoint/detail`).then(res => {
+                        this.status = res.data.data.status
                         this.initContorlPoint(res.data.data)
                         this.set_location(1)
                         this.set_location(2)

+ 21 - 7
template_menu/PickCoordSys.html

@@ -1,27 +1,41 @@
 <div>
     <div><img src onerror="IV.custom.init_coord()"></div>
-    <div  id="editor_coord_froms" align="center" style="height:30px;margin-top: 10px;margin-left: 30px;margin-RIGHT:20px;">
-        <span >选择坐标系</span>
+    <div id="editor_coord_froms" align="center" style="height:30px;margin-top: 10px;margin-left: 30px;margin-RIGHT:20px;">
+        <span>选择坐标系</span>
         <select id="select_coordinate" style="width:200px;" onchange="IV.custom.pick_coord(this)">无</select>
         <br/>
 
         <div id="coord_editor">
             <hr style="background-color:grey" />
             <span>新增坐标系</span>
-            <div  style="margin-top:10px; width: 95%;height: 100px;padding: 10px; border: 1px solid grey;  border-radius: 4px;">
+            <div style="margin-top:10px; width: 95%;height: 100px;padding: 10px; border: 1px solid grey;  border-radius: 4px;">
                 <span>名称:</span>
-                <input id="coord_name" type="text"  style="margin-left:10px;">
+                <input id="coord_name" type="text" style="margin-left:10px;">
                 <br/> <br/>
                 <span>proj4:</span>
-                <input id="coord_proj4" type="text"  style="margin-left:10px;">
+                <input id="coord_proj4" type="text" style="margin-left:10px;">
             </div>
             <br/>
             <div align="center">
                 <input type="button" id="save_coord" value="保存" style="width:100px;margin-top: 5px" onclick="IV.custom.save_coord_action()">
                 <input type="button" id="del_coord" value="删除" style="width:100px;margin-top: 5px" onclick="IV.custom.del_coord_action()">
             </div>
+        </div>
     </div>
+    <div id="text_tip" style="color: #999;padding: 10px 89px 10px 59px;box-sizing: border-box;">
+        提示:当前控制点坐标为系统提供的默认值,请点击按钮输入真实的控制点坐标。
     </div>
 </div>
-
-
+<script>
+    const sceneName = window.location.pathname.split('/')[2]
+    const isDev = !sceneName
+    const sceneCode = isDev ? 't-kJ2PEjZ' : sceneName
+    $.ajax({
+        url: `/indoor/${sceneCode}/api/controlPoint/detail`,
+        success: function(res) {
+            if (res.data.status == 1) {
+                $('#text_tip').hide()
+            }
+        }
+    });
+</script>