From 219f95ef447355d55c8cc37847a4ee7e1cd9f3ea Mon Sep 17 00:00:00 2001 From: 唐耀东 <18861537@qq.com> Date: 星期二, 31 五月 2022 21:09:25 +0800 Subject: [PATCH] 提交代码 --- src/views/components/building/buildList.vue | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/views/components/building/buildList.vue b/src/views/components/building/buildList.vue index dfaeccf..4fc4a4d 100644 --- a/src/views/components/building/buildList.vue +++ b/src/views/components/building/buildList.vue @@ -20,13 +20,14 @@ ref="singleTable" v-loading="loading" :data="buildingList" + height="50vh" row-key="id" default-expand-all :tree-props="{children: 'children', hasChildren: 'hasChildren'}" highlight-current-row @current-change="handleCurrentChange" > - <el-table-column label="鍗曞厓鍚嶇О" align="center" prop="name"/> + <el-table-column label="鍗曞厓鍚嶇О" align="left" prop="name"/> <el-table-column label="鍗曞厓缂栧彿" prop="code"/> <el-table-column label="鏄剧ず椤哄簭" align="center" prop="orderNum"/> </el-table> @@ -73,10 +74,8 @@ currentRow: undefined }; }, - watch: { - 'schoolId': function (v) { - this.getList() - } + mounted() { + this.getList() }, methods: { /** 鏌ヨ寤虹瓚鍗曞厓鍒楄〃 */ -- Gitblit v1.9.1