xj
liuyg
2021-06-24 d8d0f5fb17025c8ea92ef9f03ad5cc57d18b3b16
widgets/spatialAnalysis/Widget.js
@@ -279,11 +279,10 @@
               $('#SelectLayerToolItem').hide();
            })
         },
         fakeName: 'Layermanagement',
         appendItemS: function (item, obj, layer) {
            // console.log('a1')
            var that = this;
            if (item == this.fakeName) {
            if (item == this.name) {
               // $("#SelectLayerToolItemTitle .no-data").stop().hide();
               var flag = true;
@@ -312,7 +311,7 @@
         },
         removeItemS: function (item, obj) {
            // console.log('r1')
            if (item == this.fakeName) {
            if (item == this.name) {
               var liList = $("#SelectLayerToolItemTitle li");
               for (var i = 0; i < liList.length; i++) {
                  if ($(liList[i]).attr('itemid') && $(liList[i]).attr('itemid') == obj.id + 's') {
@@ -332,7 +331,7 @@
         appendTiltS: function (item, obj, layer) {
            // console.log('a2')
            var that = this;
            if (item == this.fakeName) {
            if (item == this.name) {
               // $("#SelectLayerToolItemTitle .no-data").stop().hide();
@@ -361,7 +360,7 @@
         },
         removeTiltS: function (item, obj) {
            // console.log('r2')
            if (item == this.fakeName) {
            if (item == this.name) {
               var liList = $("#SelectLayerToolItemTitle li");
               for (var i = 0; i < liList.length; i++) {
                  if ($(liList[i]).attr('itemid') && $(liList[i]).attr('itemid') == obj.id + 's') {