Merge remote-tracking branch 'origin/master'
| | |
| | | {{ item.name }} |
| | | </el-button> |
| | | </div> |
| | | <div v-else-if="type === 'tree'"> |
| | | <div v-else-if="type === 'tree'" class="tree-buttons"> |
| | | <el-button v-for="item in basicButtonList" |
| | | :key="item.oid" |
| | | :icon="item.paramVOS.webUiButtonIcon" |
| | |
| | | basicButtonList() { |
| | | const basicColumn = this.butttonList; |
| | | |
| | | if (this.type === 'form') { |
| | | if (this.type === 'form' || this.type=='tree') { |
| | | return basicColumn; |
| | | } else if (this.type === 'table' || this.type === 'TreeTable') { |
| | | const top = basicColumn.filter(item => item.paramVOS.webUiButtonLocation === 'top' || func.isEmpty(item.paramVOS.webUiButtonLocation)); // è¿æ»¤åºæ¥è¡¨æ ¼ä¸é¢åºåå±ç¤ºçæé® |
| | |
| | | <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"> |
| | |
| | | sourceData:{ |
| | | handler(newval) { |
| | | //æºæ°æ®æååæ¶åæ´å½ååºåæ°æ® |
| | | console.log(this.areasName); |
| | | console.log(newval); |
| | | this.initData(); |
| | | } |
| | | } |
| | | }, |
| | |
| | | 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) { |