From 533b5fddca83120f95a1561160f675132e960b74 Mon Sep 17 00:00:00 2001 From: wente <329538422@qq.com> Date: 星期五, 29 三月 2024 16:12:25 +0800 Subject: [PATCH] 新增加载中等待样式 --- web/src/views/modules/basicInfo/ProductModelTree.vue | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/web/src/views/modules/basicInfo/ProductModelTree.vue b/web/src/views/modules/basicInfo/ProductModelTree.vue index a2ec468..79e571f 100644 --- a/web/src/views/modules/basicInfo/ProductModelTree.vue +++ b/web/src/views/modules/basicInfo/ProductModelTree.vue @@ -1,13 +1,13 @@ <template> - <div class="product-tree-container " :style="'height:' + tree_Hei +'px'"> + <div class="product-tree-container"> <el-input placeholder="杈撳叆鍚嶇О杩涜杩囨护" - style="width: 80%" + style="width: 60%" v-model="filterText" size="small" clearable ></el-input> - <el-button type="primary" @click="add()" style="margin-top: 10px">鏂板</el-button> + <el-button type="primary" @click="add()" style="margin: 10px 0 0 10px;padding: 9px 18px !important;">鏂板</el-button> <el-divider></el-divider> <el-tree style="height: 90%;overflow: auto" @@ -36,7 +36,6 @@ return { filterText: '', productList: [], - tree_Hei: document.documentElement.clientHeight - 200, defaultProps: { children: 'children', label: 'name' @@ -59,6 +58,7 @@ async getProductList() { let res = await this.$http.get('/basicInfo/XhProductModel/tree') this.productList = res.data + console.log(res.data,'async getProductList()') }, add() { this.$refs.AddOrUpdate.$refs.dialog.init(null,{id: null, type: 'tree'}) @@ -73,3 +73,8 @@ } } </script> +<style> +.product-tree-container{ + height: 100%; +} +</style> -- Gitblit v1.9.1