liuyg
2021-06-22 8eb00c8e0f9aad97f0aaf61d06388bc9006b3be5
widgets/spatialAnalysis/Widget.js
@@ -57,11 +57,19 @@
               //    classs: 'SQLQuery-tool',
               //    img: './images/addL/pdpx.png'
               // }
               , {//地形开挖,//做好
                  name: '地形开挖',
                  classs: 'digTheEarth-tool',
                  img: './images/addL/pdpx.png'
               }
            ];
            that.beginSpatialAnalysis(domHtmls);
            $('.ccsliuNo').click(() => {//测试开关 点击图例其他的图片
               var domHtmls = [
            that.beginSpatialAnalysis(domHtmls);
            var isit = false;
            $('.ccsliu').dblclick(() => {//测试开关 点击图例其他的图片
               if (isit) {
                  var domHtmls2 = [
                  {
                     name: '可视分析',
                     classs: 'visibleArea-tool',
@@ -86,7 +94,13 @@
                     name: 'SQL查询',
                     classs: 'SQLQuery-tool',
                     img: './images/addL/pdpx.png'
                  },
                     }
                     , {//地形开挖,//做好
                        name: '地形开挖',
                        classs: 'digTheEarth-tool',
                        img: './images/addL/pdpx.png'
                     }
                     ,
                  {//建造模型
                     name: '建造模型',
                     classs: 'modesssssllll',
@@ -99,7 +113,7 @@
                     img: './images/addL/pdpx.png'
                  }
               ];
               that.beginSpatialAnalysis(domHtmls);
                  that.beginSpatialAnalysis(domHtmls2);
               var promise = false;
               $('.modesssssllll').click(() => {
                  var URL_CONFIG = {
@@ -116,6 +130,10 @@
                     })
                  }
               })
               } else {
                  that.beginSpatialAnalysis(domHtmls);
               }
               isit = !isit;
            })
         },
@@ -160,7 +178,7 @@
               that.closeOnceUse();
               $(".jimu-widget-slope").show();
               topic.publish('getbeginSlope', this.beginSlope);
               topic.publish('getbeginSlope', 'this.beginSlope');
            })
            //模型
            $('.modelDiagram-tool').click(function () {
@@ -171,7 +189,14 @@
            $('.SQLQuery-tool').click(function () {
               that.closeOnceUse();
               $(".jimu-widget-SQLQuery").show();
               topic.publish('beginSQL', this.beginSQL);
               topic.publish('beginSQL', 'this.beginSQL');
            })
            //地形开挖
            $('.digTheEarth-tool').click(function () {
               that.closeOnceUse('frist');
               $(".jimu-widget-digTheEarth").show();
               topic.publish('beginDigTheEarth', 'beginDigTheEarth');
            })
@@ -181,7 +206,7 @@
               $('.tool-y-box').hide();
            }
         },
         closeOnceUse: function () {
         closeOnceUse: function (who) {
            var that = this;
            that.map.scene.globe.depthTestAgainstTerrain = true;
            // 关闭量算
@@ -214,6 +239,9 @@
            //清除SQL查询
            $(".jimu-widget-SQLQuery").hide();
            topic.publish('closesSQL', 'closesSQL');
            //关闭地形开挖
            $(".jimu-widget-digTheEarth").hide();
            topic.publish('closesDigTheEarth', who);
         },
         onOpen: function () {