田源
2024-04-09 3c6b732f577a4411fc1d75575b8f52afbbc5d946
Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue
@@ -1,6 +1,6 @@
<template>
  <div class="UI-dynamic" :id="'UI-dynamic-'+areasName+componentVO.oid">
    <dynamic-button :butttonList="componentVO.buttons" :selectList="checkDatas" type="tree"></dynamic-button>
    <dynamic-button v-if="componentVO.buttons && componentVO.buttons.length>0" :butttonList="componentVO.buttons" :selectList="checkDatas" type="tree" style="margin-bottom: 10px;"></dynamic-button>
    <el-input
      placeholder="输入关键字进行过滤"
      v-model="filterText">
@@ -83,8 +83,7 @@
    sourceData:{
      handler(newval) {
        //源数据有变化时变更当前区域数据
        console.log(this.areasName);
        console.log(newval);
        this.initData();
      }
    }
  },
@@ -105,6 +104,9 @@
    this.initData();
  },
  mounted() {
    if(this.componentVO.buttons && this.componentVO.buttons.length>0){
      this.$children[2].$el.style.height = 'calc(100% - 50px - '+this.$children[0].$el.clientHeight+'px - 10px)';
    }
  },
  methods: {
    filterNode(value, data) {