From 495bf3ca62536c52cf78895501205965cae05828 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期四, 03 七月 2025 17:39:22 +0800 Subject: [PATCH] qx --- src/views/hosp/biaoben/index.vue | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/views/hosp/biaoben/index.vue b/src/views/hosp/biaoben/index.vue index 4b0f0f1..fc66d70 100644 --- a/src/views/hosp/biaoben/index.vue +++ b/src/views/hosp/biaoben/index.vue @@ -11,17 +11,21 @@ </el-form-item> <el-form-item> <el-button type="primary" size="mini" @click="handleManual">鏌ヨ</el-button> - <el-button type="primary" size="mini" @click="handleAdd">鏂板</el-button> + <el-button type="primary" size="mini" @click="handleAdd">鏂板</el-button> </el-form-item> </el-form> <!-- 鏍囨湰鍗曢�夎〃鏍硷紙甯﹀閫夋鏍峰紡锛� --> - <el-table border v-loading="loading" :data="filteredSpecimenData" height="478" style="width: 100%" + <el-table border v-loading="loading" :data="filteredSpecimenData" height="478" style="width: 100%" ref="specimenTable" :row-key="row => row.value" @select="handleSpecimenSelect"> <el-table-column type="selection" width="40px" align="center" /> <el-table-column label="搴忓彿" align="center" type="index" width="50px" /> - <el-table-column label="鏍囨湰鍚嶇О" align="center" prop="label" show-overflow-tooltip /> - </el-table> + <el-table-column label="鏍囨湰鍚嶇О" align="center" show-overflow-tooltip> + <template slot-scope="scope"> + {{ scope.row.label ? scope.row.label : scope.row.dictLabel }} + </template> + </el-table-column> + </el-table> </el-col> <!-- 绗簩鍒楋細涓棿閫変腑椤圭洰鍒楄〃 --> @@ -412,10 +416,10 @@ this.$modal.msgSuccess("鏂板鎴愬姛"); this.open = false; let dictType = "sys_dict_specimen" - getDicts(dictType).then(response => { - this.originalSpecimenData= response.rows ||[] - this.filteredSpecimenData =[...this.originalSpecimenData]; - }); + getDicts(dictType).then(response => { + this.originalSpecimenData = response.data || [] + this.filteredSpecimenData = [...this.originalSpecimenData]; + }); }); } } -- Gitblit v1.8.0