管道基础大数据平台系统开发-【前端】-新系統界面
1
Surpriseplus
2023-01-18 dd1f65280f3348506bc54a1022fd8572b6ba4eff
public/LfSKyline/js/index.js
@@ -4,11 +4,26 @@
    treePlay: 'PS\\全国管网专题图展示',
    objTypes: [19, 23, 26, 29, 34, 36, 38, 39, 40],
    init: function () {
        var flag = Detect.detectIE();
        if (!flag) {
            this.showDownload();
            return;
        }
        this.initSG();
    },
    // 显示下载
    showDownload: function () {
        $("#mapView").hide();
        $("#download").show();
        let a = document.getElementById('aDownload');
        a.href = LFData + "/soft/TEv7.4.zip";
    },
    initSG: function () {
        SG = TEWinEx.CreateInstance("TerraExplorerX.SGWorld74"); // SGWorld74,SGWorld71,SGWorld66
        SG.AttachEvent("OnLoadFinished", this.loadFinished);
        SG.Open(app.fly);
    },
    loadFinished: function () {
@@ -17,9 +32,9 @@
        Index.getLayers("", layers);
        Index.ininTrees("layers", layers);
        // Index.flyToStart();
    },
    getLayers: function (pid, layers) {
        var next = SG.ProjectTree.GetNextItem(pid, 11);
        while (next) {
@@ -79,7 +94,7 @@
                SG.Command.Execute(1028, null)
                break;
            case 2:
                SG.Command.Execute(2314,0);
                SG.Command.Execute(2314, 0);
                break;
            case 3:
                var model_ID = SG.ProjectTree.FindItem(this.treePlay);