月球大数据地理空间分析展示平台-【前端】-月球2期前端
1
WX
2023-07-12 1adfbb6d0382a02a31d2ac1fc94ddbaebe6196ca
src/views/layer/layerManage.vue
@@ -53,6 +53,7 @@
    </div>
  </div>
  <layer-set v-show="layerSetIsshow" @SETstate="SETstate"></layer-set>
  <attribute-list></attribute-list>
</template>
<script lang="ts" setup>
@@ -65,6 +66,7 @@
  defineEmits,
} from "vue";
import layerSet from "./layerSet";
import attributeList from "./attributeList";
const stretchValue = ref("");
const stretchOptions = [
@@ -160,24 +162,6 @@
};
const clickdropdown = (res) => {
  console.log(res);
};
const remove = (node: Node, data: Tree) => {
  const parent = node.parent;
  const children: Tree[] = parent.data.children || parent.data;
  const index = children.findIndex((d) => d.id === data.id);
  children.splice(index, 1);
  // menuOption.value = [...menuOption.value];
};
let id = 1000;
const append = (data: Tree) => {
  const newChild = { id: id++, name: "testtest", children: [] };
  if (!data.children) {
    data.children = [];
  }
  data.children.push(newChild);
  // console.log(data);
  // menuOption = [...menuOption];
  // console.log(menuOption);
};
</script>