| | |
| | | <div> |
| | | <el-dialog |
| | | v-dialogDrag |
| | | :height="options.height || '70vh'" |
| | | :title="title" |
| | | :visible.sync="visible" |
| | | :width="onlyTable?'60%': '80%'" |
| | |
| | | class="avue-dialog avue-dialog--top" |
| | | @close="dialogClose" |
| | | > |
| | | <el-container> |
| | | <el-container :style="{ 'height': height || '60vh' }"> |
| | | <el-aside width="300px" v-if="!onlyTable && classifys.length>0"> |
| | | <el-tabs type="border-card" style="height: 100%" @tab-click="tabClick" |
| | | v-model="tabName"> |
| | |
| | | referType: { |
| | | type: String, |
| | | default: "", |
| | | }, width: { |
| | | }, |
| | | width: { |
| | | type: String, |
| | | default:'70%' |
| | | }, height: { |
| | | default:'80%' |
| | | }, |
| | | height: { |
| | | type: String, |
| | | default:'60%' |
| | | default:'500px' |
| | | }, |
| | | reloadFormKey: { |
| | | type: String, |
| | |
| | | }, |
| | | initTreeData: function (nodes) { |
| | | let treeData = []; |
| | | if(nodes && Array.isArray(nodes)){ |
| | | nodes.forEach((item) => { |
| | | let children = item.children; |
| | | if (children) { |
| | | children = this.initTreeData(children); |
| | | } |
| | | treeData.push({ |
| | | label: item[this.props.label], |
| | | value: item[this.props.value], |
| | | leaf: !item.children, |
| | | children: children, |
| | | attributes: item, |
| | | }); |
| | | nodes.forEach((item) => { |
| | | let children = item.children; |
| | | if (children) { |
| | | children = this.initTreeData(children); |
| | | } |
| | | treeData.push({ |
| | | label: item[this.props.label], |
| | | value: item[this.props.value], |
| | | leaf: !item.children, |
| | | children: children, |
| | | attributes: item, |
| | | }); |
| | | } |
| | | }); |
| | | return treeData; |
| | | }, |
| | | filterNode(value, data) { |