From bad2bc143be3f8ddb93a1c9f984127b3ccf43e8f Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期一, 31 三月 2025 17:47:14 +0800 Subject: [PATCH] 11 --- src/views/sampling/sampling/index.vue | 21 ++++++--------------- 1 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue index 6e2f651..2c7a66a 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-if="tableList.length > 0" 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" /> --> @@ -211,12 +211,7 @@ <script> import { - listSampling, - getSampling, getList, - delSampling, - addSampling, - updateSampling, confirmSampling, getCusCyList, mergeCaiYang, @@ -227,10 +222,8 @@ import { getNewDateList } from "@/api/hosp/order"; import moment from "moment"; import { - SubmitCompany, getCompany, queryCompany, - addbatch, } from "@/api/team/tuanti"; export default { dicts: [ @@ -244,7 +237,6 @@ data() { return { CheckBox: {}, - CompanyList: [], piliangList: [], msg: "", @@ -264,7 +256,6 @@ tjStatus: "1", dayinData: [], jsonObj: {}, - // 闈炲崟涓鐢� single: true, // 闈炲涓鐢� @@ -333,20 +324,17 @@ form: {}, // 琛ㄥ崟鏍¢獙 rules: {}, - // rightTabShow: false allSelected: false, disableSelections: false, // 鎺у埗閫夋嫨绂佺敤鐘舵�� }; }, created() { - // this.getNowTime(); getTxmmccd().then((res) => { this.msg = Number(res.msg); console.log(res, 444); }); getCompany(this.queryParams).then((response) => { this.CompanyList = response.data; - this.loading = false; }); this.getdate(); @@ -693,6 +681,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