From 9c67a9d48ec6a71e2d4edf11fae3f5e802a97bff Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期二, 19 十一月 2024 16:35:30 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/index.vue | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/index.vue index 3f3e282..2938f67 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/index.vue @@ -1,11 +1,11 @@ <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> @@ -170,6 +170,7 @@ components: {plShow, uiAuthor}, data() { return { + loading:false, dialog: { showDialog: false, title: "涓婁笅鏂囪鎯�", @@ -363,7 +364,7 @@ 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 => { @@ -377,9 +378,9 @@ disabled: true, children: dicData }]; - loading.close(); + this.loading = false; }).catch(error => { - loading.close(); + this.loading = false; }) }, // 鏍戠偣鍑� -- Gitblit v1.9.3