From 92606a1a818d2016d9f8ddab45cc084de580d0b2 Mon Sep 17 00:00:00 2001 From: 13404089107 <puwei@sinata.cn> Date: 星期一, 23 六月 2025 20:10:50 +0800 Subject: [PATCH] 修改bug --- culture/src/views/strain-library/validation/primitive-cell/index.vue | 33 +++++++++++++++++++++++++-------- 1 files changed, 25 insertions(+), 8 deletions(-) diff --git a/culture/src/views/strain-library/validation/primitive-cell/index.vue b/culture/src/views/strain-library/validation/primitive-cell/index.vue index 755909d..2e2d5ae 100644 --- a/culture/src/views/strain-library/validation/primitive-cell/index.vue +++ b/culture/src/views/strain-library/validation/primitive-cell/index.vue @@ -1,8 +1,8 @@ <template> <div class="list"> <!-- Table --> - <TableCustom :queryForm="queryForm" :height="null" :tableData="tableData" :total="total" @handleCurrentChange="handleCurrentChange" - @handleSizeChange="handleSizeChange"> + <TableCustom :queryForm="queryForm" :height="null" :tableData="tableData" :total="total" + @handleCurrentChange="handleCurrentChange" @handleSizeChange="handleSizeChange"> <template #search> <el-form :model="form" label-width="auto" inline> <el-form-item label="鉴别菌株编号:"> @@ -28,11 +28,12 @@ <div class="title" :class="{ active: currentType === 'list' }" @click="handleTypeChange('list')"> 原始细胞库验证资料 </div> - <div class="drafts" v-if="roleType==4" :class="{ active: currentType === 'draft' }" @click="handleTypeChange('draft')"> + <div class="drafts" v-if="roleType == 4 || roleType == 3" :class="{ active: currentType === 'draft' }" + @click="handleTypeChange('draft')"> 草稿箱 </div> </div> - <div class="flex a-center" v-if="roleType == 4"> + <div class="flex a-center" v-if="roleType == 4 || roleType == 3"> <el-button @click="handleNewStrain" class="el-icon-plus" type="primary" style="margin-right: 12px">新增原始细胞库资料</el-button> </div> @@ -42,7 +43,13 @@ <template #table> <el-table-column prop="strainSource" label="菌种来源" /> <el-table-column prop="identifyingStrainCode" label="鉴别菌株编号" /> - <el-table-column prop="identifyingStrainName" label="鉴别菌株名称" /> + <el-table-column prop="identifyingStrainName" label="鉴别菌株名称" > + <template #default="{ row }"> + <el-tooltip :content="row.identifyingStrainName" placement="top" effect="dark"> + <div class="ellipsis-text">{{ row.identifyingStrainName }}</div> + </el-tooltip> + </template> + </el-table-column> <el-table-column prop="validationExperimentCode" label="验证实验编号" /> <el-table-column prop="createBy" label="创建人" /> <el-table-column prop="createTime" label="创建时间" /> @@ -58,8 +65,10 @@ @click="$router.push('/strain/validation/confirm-detail?id=' + row.id)">确认</el-button> <el-button type="text" v-if="roleType == 4" @click="handleDetail(row)">详情</el-button> <el-button type="text" v-if="roleType != 4" @click="handleDetail2(row)">详情</el-button> - <el-button type="text" v-if="(roleType == 1)||(roleType == 4 && currentType == 'draft')" @click="handleEdit(row)">编辑</el-button> - <el-button type="text" v-if="(roleType == 1)||(roleType == 4 && currentType == 'draft')" @click="handleDelete(row)">删除</el-button> + <el-button type="text" v-if="(roleType == 1) || (roleType == 4 && currentType == 'draft')" + @click="handleEdit(row)">编辑</el-button> + <el-button type="text" v-if="(roleType == 1) || (roleType == 4 && currentType == 'draft')" + @click="handleDelete(row)">删除</el-button> </template> </el-table-column> </template> @@ -95,7 +104,7 @@ showDelConfirm: false, editDialogValue: {}, currentDetail: {}, - roleType:Number(JSON.parse(sessionStorage.getItem("userInfo")).roleType), + roleType: Number(JSON.parse(sessionStorage.getItem("userInfo")).roleType), form: { identifyingStrainCode: "", identifyingStrainName: "", @@ -388,4 +397,12 @@ } } } +.ellipsis-text { + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; + overflow: hidden; + text-overflow: ellipsis; + word-break: break-all; +} </style> -- Gitblit v1.7.1