| | |
| | | <template> |
| | | <div class="UI-dynamic" :id="'UI-dynamic-'+areasName+componentVO.oid"> |
| | | <dynamic-button :butttonList="componentVO.buttons" :selectList="checkDatas" type="tree"></dynamic-button> |
| | | <el-input |
| | | placeholder="输入关键字进行过滤" |
| | | v-model="filterText"> |
| | |
| | | label: 'text' |
| | | }, |
| | | lazy:this.componentVO.treeDefineVO.loadType == 'node', |
| | | isMuti:true, |
| | | isMuti:false, |
| | | data:[], |
| | | checkDatas:[] |
| | | } |
| | |
| | | this.initData(); |
| | | }, |
| | | mounted() { |
| | | console.log(this.$el.clientHeight) |
| | | }, |
| | | methods: { |
| | | filterNode(value, data) { |
| | |
| | | //逐级加载 |
| | | const parentOid = (node.level === 0) ? 0 : node.data.oid; |
| | | setTimeout(() => { |
| | | const data = [{ |
| | | name: 'leaf', |
| | | leaf: true |
| | | }, { |
| | | name: 'zone' |
| | | }]; |
| | | const data = this.data; |
| | | |
| | | resolve(data); |
| | | }, 500); |