PickCoordSys.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <div>
  2. <div><img src onerror="IV.custom.init_coord()"></div>
  3. <div id="editor_coord_froms" align="center"
  4. style="height:30px;margin-top: 10px;margin-left: 30px;margin-RIGHT:20px;">
  5. <span>选择坐标系</span>
  6. <select id="select_coordinate" style="width:200px;" onchange="IV.custom.pick_coord(this)">无</select>
  7. <br />
  8. <div id="coord_editor">
  9. <hr style="background-color:grey" />
  10. <span>新增坐标系</span>
  11. <div
  12. style="margin-top:10px; width: 95%;height: 100px;padding: 10px; border: 1px solid grey; border-radius: 4px;">
  13. <span>名称:</span>
  14. <input id="coord_name" type="text" style="margin-left:10px;">
  15. <br /> <br />
  16. <span>proj4:</span>
  17. <input id="coord_proj4" type="text" style="margin-left:10px;">
  18. </div>
  19. <br />
  20. <div align="center">
  21. <input type="button" id="save_coord" value="保存" style="width:100px;margin-top: 5px"
  22. onclick="IV.custom.save_coord_action()">
  23. <input type="button" id="del_coord" value="删除" style="width:100px;margin-top: 5px"
  24. onclick="IV.custom.del_coord_action()">
  25. </div>
  26. </div>
  27. </div>
  28. <div id="text_tip" style="color: #999;padding: 10px 89px 10px 59px;box-sizing: border-box;">
  29. 提示: 当前场景地理位置为默认坐标,请点击左侧【控制点 - 修改控制点】输入真实的控制点坐标
  30. </div>
  31. </div>
  32. <script>
  33. // const sceneName = window.location.pathname.split('/')[2]
  34. // const isDev = !sceneName
  35. // const sceneCode = isDev ? 't-kJ2PEjZ' : sceneName
  36. const loginStatus = IV.getMainView().UserService.userInfo.id
  37. if (loginStatus !=undefined) {
  38. $.ajax({
  39. url: `/indoor/${sceneNum}/api/controlPoint/detail`,
  40. success: function (res) {
  41. if (res.data.status == 1) {
  42. $('#text_tip').hide()
  43. }
  44. }
  45. });
  46. } else {
  47. $('#text_tip').hide()
  48. }
  49. </script>