| | |
| | | layerAttributeIsshow.value = true; |
| | | store.state.tab = e; |
| | | } else { |
| | | if (!e.checked) { |
| | | var val = estreeRef.value!.getCheckedKeys(false); |
| | | if (val.indexOf(e.id) > -1) { |
| | | layerDetailIsshow.value = true; |
| | | } else { |
| | | return ElMessage.error("请先勾选图层"); |
| | | } |
| | | layerDetailIsshow.value = true; |
| | | } |
| | | }; |
| | | const setSpatialClose = (res) => { |
| | |
| | | const dt = await perms_selectLayers(); |
| | | if (dt.code == 200) { |
| | | treeData.value = setTreeData(dt.result).sort(function (a, b) { |
| | | return a.sort - b.sort; |
| | | return a.orderNum - b.orderNum; |
| | | }); |
| | | var std = []; |
| | | var terrainId = null; |
| | | dt.result.filter((res) => { |
| | | if (res.isLayer == 1 && res.status == 1) { |
| | | if (res.isLayer == 1 && res.isShow == 1) { |
| | | if (res.type == 1 && res.data == 2) { |
| | | if (!terrainId) { |
| | | terrainId = res.id; |
| | |
| | | let branchArr = cloneData.filter((child) => father.id == child.pid); |
| | | if (branchArr.length > 0) { |
| | | branchArr.sort(function (a, b) { |
| | | return a.sort - b.sort; |
| | | return a.orderNum - b.orderNum; |
| | | }); |
| | | } |
| | | |