| | |
| | | this.liClick('默认:天地图影像','默认:天地图影像'); |
| | | |
| | | }, |
| | | liClick: function (itemid,name) { |
| | | liClick: function (itemid, name) {//点击事件 |
| | | var liList = $(`[itemid='${itemid}s']`); |
| | | // console.log(liList); |
| | | liList.click(() => { |
| | |
| | | // 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 |
| | | } |
| | | } |
| | |
| | | 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(); |
| | | } |
| | | } |
| | |
| | | |
| | | 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 |
| | | } |
| | |
| | | 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(); |
| | | } |
| | | } |