| | |
| | | <template> |
| | | <el-container> |
| | | <el-aside> |
| | | <basic-container> |
| | | <basic-container > |
| | | <div ref="TreeBox" style="height: calc(100vh - 154px);!important;"> |
| | | <!-- 左侧树 --> |
| | | <div style="height: calc(100vh - 190px);"> |
| | | <avue-tree :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <avue-tree v-loading="loading" :data="treeData" :option="treeOption" @node-click="nodeClick"> |
| | | <span slot-scope="{ node, data }" class="el-tree-node__label"> |
| | | <span style="font-size: 15px"> |
| | | <i class="el-icon-s-promotion"></i> |
| | |
| | | components: {plShow, uiAuthor}, |
| | | data() { |
| | | return { |
| | | loading:false, |
| | | dialog: { |
| | | showDialog: false, |
| | | title: "上下文详情", |
| | |
| | | methods: { |
| | | //树表查询 |
| | | getTreeList() { |
| | | const loading = this.$loading({}); |
| | | this.loading = true; |
| | | getBizTree().then(res => { |
| | | this.treeData = [res.data.obj]; |
| | | const dicData = res.data.obj.children.map(item => { |
| | |
| | | disabled: true, |
| | | children: dicData |
| | | }]; |
| | | loading.close(); |
| | | this.loading = false; |
| | | }).catch(error => { |
| | | loading.close(); |
| | | this.loading = false; |
| | | }) |
| | | }, |
| | | // 树点击 |