From 8867a4415e7e7ad06f30fa2a7f7112c26ce45105 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期四, 26 十二月 2024 14:33:10 +0800 Subject: [PATCH] 样品接受bug修改 --- src/components/view/a7-sample-registration.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/view/a7-sample-registration.vue b/src/components/view/a7-sample-registration.vue index ed9380b..3c308b3 100644 --- a/src/components/view/a7-sample-registration.vue +++ b/src/components/view/a7-sample-registration.vue @@ -6,7 +6,7 @@ <el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="componentData0.entity.totalSampleId=''"> <el-tab-pane label="濉啓" name="濉啓" style="height: 100%;" :key="1"> <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower">鏂板</el-button> - <div class="table" style="height: calc(100% - 200px)" v-if="activeName=='濉啓'"> + <div class="table" style="height: calc(100% - 200px)" F> <ValueTable ref="ValueTable0" :url="$api.processSample.pageProcessSample" :componentData="componentData0" :key="upIndex0" :delUrl="$api.processSample.delProcessSample" /> </div> @@ -30,7 +30,7 @@ </div> </div> <div class="table"> - <ValueTable ref="ValueTable" :url="$api.processSample.pageProcessTotalSample" + <ValueTable ref="ValueTable" v-if="activeName=='鍘嗗彶璁板綍'" :url="$api.processSample.pageProcessTotalSample" :componentData="componentData" :key="upIndex"/> </div> </el-tab-pane> @@ -416,7 +416,7 @@ }).catch(err=>{}); }, refreshTable() { - this.$refs['ValueTable'].selectList() + this.$refs['ValueTable']&&this.$refs['ValueTable'].selectList() }, refresh() { this.componentData.entity = this.HaveJson(this.entityCopy) @@ -505,7 +505,9 @@ // this.commonFun(row) this.activeName = '濉啓' this.componentData0.entity.totalSampleId = row.id - this.$refs['ValueTable0'].selectList() + this.$nextTick(()=>{ + this.$refs['ValueTable0'].selectList() + }) }, commonFun(row,callbanck){ this.currentInfo = row -- Gitblit v1.9.3