From b094d87d5a47dd03fd8a5136e19e18c1a9dae629 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期四, 27 三月 2025 09:16:19 +0800 Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb --- src/views/sampling/sampling/index.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue index 925f7e6..8599b0e 100644 --- a/src/views/sampling/sampling/index.vue +++ b/src/views/sampling/sampling/index.vue @@ -104,9 +104,9 @@ </el-table> </div> <div style="width: 50%"> - <!-- v-if="this.rightTabShow" --> - <el-table v-loading="loading" :data="tableList" @selection-change="handleChange" :span-method="objectSpanMethod" - ref="tab1" :row-class-name="tableRowClassName" border height="520px"> + <!-- v-if="this.rightTabShow" v-if="tableList.length > 0"--> + <el-table v-loading="loading" :data="tableList" @selection-change="handleChange" :span-method="objectSpanMethod" + ref="elTable" :row-class-name="tableRowClassName" border height="520px"> <el-table-column type="selection" width="40" align="center" /> <!-- :selectable="selectEnable" --> <!-- <el-table-column label="鏄惁绛炬敹" align="center" prop="isSignFor" /> --> @@ -693,6 +693,9 @@ .then((response) => { if (response.data) { this.tableList = response.data; + this.$nextTick(() => { + this.$refs.elTable.doLayout(); // 閫氳繃 ref 璋冪敤琛ㄦ牸鏂规硶 + }); resolve(this.tableList); } else { this.tableList = []; -- Gitblit v1.8.0