管道基础大数据平台系统开发-【前端】-新系統界面
1
13693261870
2023-02-28 d9a44b11e08ce78a9935345f54341c2f7183edf2
1
已修改3个文件
50 ■■■■ 文件已修改
public/LfSKyline/css/index.css 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/LfSKyline/index.html 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/LfSKyline/js/index.js 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/LfSKyline/css/index.css
@@ -30,7 +30,6 @@
    display: flex;
}
.textp1 {
    font-size: 30px;
    font-family: Microsoft YaHei;
@@ -79,7 +78,6 @@
.content {
    height: calc(100% - 60px);
    width: 100%;
    display: flex;
}
.left_content {
@@ -93,21 +91,34 @@
.right_content {
    width: calc(100% - 325px);
    height: 100%;
    flex: 1;
    box-sizing: border-box;
    float: left;
}
.rb {
    border-right: 1px solid #A0A0A0;
    border-bottom: 1px solid #A0A0A0;
}
#TEInfoEx {
    width: calc(100% - 8px);
    height: calc(100% - 35px);
    box-sizing: border-box;
}
#TEWinEx {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
.fieldset {
    padding: 10px 5px;
    height: calc(100% - 20px);
    padding: 10px 0 10px 8px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}
#layers {
public/LfSKyline/index.html
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
@@ -17,15 +17,13 @@
  <script>
    window.app = {
      fly: window.sceneConfig.fly,
      //fly: "http://103.85.165.99:8050/LFData/fly/lfgd.fly",
      mainUrl: location.href.substring(0, location.href.lastIndexOf("/") + 1)
    }
    document.writeln("<link href='./layui-v2.6.8/css/layui.css?" + new Date().getTime() + "' rel='stylesheet' \/>");
    document.writeln("<link href='./css/index.css?" + new Date().getTime() + "' rel='stylesheet' \/>");
    document.writeln("<script src='./js/detect.js?" + new Date().getTime() + "'><\/script>");
    document.writeln("<script src='./js/index.js?" + new Date().getTime() + "'><\/script>");
    // $("#aDownload").attr("href", LFData + "/soft/TEv7.4.zip");
  </script>
  <style>
    a:hover {
@@ -96,12 +94,7 @@
        <fieldset class="fieldset">
          <legend>数据目录</legend>
          <!-- <div id="layers"></div> -->
          <div>
            <object id="TerraExplorerInformationWindowEx" classid="CLSID:3A4F919B-65A8-11D5-85C1-0001023952C1"></object>
          </div>
          <object id="TEInfoEx" classid="CLSID:3A4F919B-65A8-11D5-85C1-0001023952C1"></object>
        </fieldset>
      </div>
      <div class="right_content">
public/LfSKyline/js/index.js
@@ -15,25 +15,26 @@
    showDownload: function () {
        $("#mapView").hide();
        $("#download").show();
        let a = document.getElementById('aDownload');
        var a = document.getElementById('aDownload');
        a.href = LFData + "/soft/TEv7.4.zip";
    },
    initSG: function () {
        TerraExplorerInformationWindowEx.AttachTo3dWindow(TEWinEx);
        TEInfoEx.AttachTo3dWindow(TEWinEx);
        SG = TEWinEx.CreateInstance("TerraExplorerX.SGWorld74"); // SGWorld74,SGWorld71,SGWorld66
        SG.AttachEvent("OnLoadFinished", this.loadFinished);
        SG.Open(app.fly);
    },
    loadFinished: function () {
        $("#TEInfoEx").addClass("rb");
        SG.ProjectTree.ShowSearchTool = false;
        SG.DetachEvent("OnLoadFinished", Index.loadFinished);
        // var layers = [];
        // Index.getLayers("", layers);
        // Index.ininTrees("layers", layers);
        // Index.flyToStart();
    },
    //
    getLayers: function (pid, layers) {
        var next = SG.ProjectTree.GetNextItem(pid, 11);
        while (next) {
@@ -108,8 +109,7 @@
        // this.menuFlag = !this.menuFlag;
    }
}
$(function () {
    Index.init();
});