liuyg
2021-06-23 76dbd23a79bac59210fb99cfdc46a905ada89ba9
细节
2 files modified
12 ■■■■ changed files
widgets/spatialAnalysis/Widget.js 10 ●●●● patch | view | raw | blame | history
widgets/spatialAnalysis/css/style.css 2 ●●● patch | view | raw | blame | history
widgets/spatialAnalysis/Widget.js
@@ -265,7 +265,7 @@
                this.liClick('默认:天地图影像','默认:天地图影像');
            },
            liClick: function (itemid,name) {
            liClick: function (itemid, name) {//点击事件
                var liList = $(`[itemid='${itemid}s']`);
                // console.log(liList);
                liList.click(() => {
@@ -290,7 +290,7 @@
                    // console.log(liList)
                    // console.log($('#SelectLayerToolItemTitle'))
                    for (var i = 0; i < liList.length; i++) {
                        if ($(liList[i]).attr('itemid') && $(liList[i]).attr('itemid') == obj.id) {
                        if ($(liList[i]).attr('itemid') && $(liList[i]).attr('itemid') == obj.id + 's') {
                            flag = false
                        }
                    }
@@ -314,7 +314,7 @@
                if (item == this.fakeName) {
                    var liList = $("#SelectLayerToolItemTitle li");
                    for (var i = 0; i < liList.length; i++) {
                        if ($(liList[i]).attr('itemid') && $(liList[i]).attr('itemid') == obj.id) {
                        if ($(liList[i]).attr('itemid') && $(liList[i]).attr('itemid') == obj.id + 's') {
                            $(liList[i]).remove();
                        }
                    }
@@ -341,7 +341,7 @@
                    for (var i = 0; i < liList.length; i++) {
                        if ($(liList[i]).attr('itemid') && $(liList[i]).attr('itemid') == obj.id) {
                        if ($(liList[i]).attr('itemid') && $(liList[i]).attr('itemid') == obj.id + 's') {
                            flag = false
                        }
@@ -363,7 +363,7 @@
                if (item == this.fakeName) {
                    var liList = $("#SelectLayerToolItemTitle li");
                    for (var i = 0; i < liList.length; i++) {
                        if ($(liList[i]).attr('itemid') && $(liList[i]).attr('itemid') == obj.id) {
                        if ($(liList[i]).attr('itemid') && $(liList[i]).attr('itemid') == obj.id + 's') {
                            $(liList[i]).remove();
                        }
                    }
widgets/spatialAnalysis/css/style.css
@@ -110,7 +110,7 @@
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 3px !important;
  padding: 0 8px !important;
}
.jimu-widget-spatialAnalysis #SelectLayerTool #SelectLayerToolItem {