田源
2024-04-15 52e123212f37e214ee4599649adbd743e0d86c2b
Source/ProjectWeb/src/components/dynamic-components/dynamic-tree.vue
@@ -1,6 +1,8 @@
<template>
  <div class="UI-dynamic" :id="'UI-dynamic-'+areasName+componentVO.oid">
    <dynamic-button v-if="componentVO.buttons && componentVO.buttons.length>0" :butttonList="componentVO.buttons" :selectList="checkDatas" type="tree" style="margin-bottom: 10px;"></dynamic-button>
    <dynamic-button v-if="componentVO.buttons && componentVO.buttons.length>0" :componentVO="componentVO"
                    :butttonList="componentVO.buttons" :dataStore="checkDatas"
                    :sourceData="sourceData" type="tree" style="margin-bottom: 10px;"></dynamic-button>
    <el-input
      placeholder="输入关键字进行过滤"
      v-model="filterText">
@@ -115,6 +117,7 @@
      return data[this.defaultProps.label].indexOf(value) !== -1;
    },
    initData() {
      //异步获取数据
      this.data = [
        {
          "attributes": {
@@ -2018,6 +2021,9 @@
        this.checkDatas=[data];
      }
    },
    handleRefresh(){
      this.initData();
    }
  },
}
</script>