From 906e8d68ff4c6ce852fc9c64e1041fdd3990b826 Mon Sep 17 00:00:00 2001
From: 13404089107 <puwei@sinata.cn>
Date: 星期四, 26 六月 2025 17:36:49 +0800
Subject: [PATCH] fix

---
 culture/src/components/SelectMember/index.vue |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/culture/src/components/SelectMember/index.vue b/culture/src/components/SelectMember/index.vue
index d59fefe..d5aa166 100644
--- a/culture/src/components/SelectMember/index.vue
+++ b/culture/src/components/SelectMember/index.vue
@@ -45,7 +45,12 @@
                             @selection-change="handleSelectionChange" :row-class-name="tableRowClassName"
                             @row-click="handleRowClick">
                             <el-table-column type="selection" width="55" v-if="!singleSelect" />
-                            <el-table-column label="角色" prop="roleName" />
+                            <el-table-column label="角色" prop="roleName" v-if="title != '选择菌种实验员'" />
+                            <el-table-column label="角色" prop="roleType" v-else>
+                                <template #default="scope">
+                                  <span>{{['菌种超级管理员','菌种审批人','菌种工程师','菌种实验员'][scope.row.roleType-1]}}</span>
+                                </template>
+                            </el-table-column>
                             <el-table-column label="姓名" prop="nickName" />
                             <el-table-column label="创建时间" prop="createTime" />
                         </Table>
@@ -61,7 +66,7 @@
 </template>
 
 <script>
-import { getRoleList, getUserList,getUsersList } from './service'
+import { getRoleList, getUserList, getUsersList } from './service'
 export default {
     props: {
         projectId: {
@@ -150,12 +155,12 @@
                 params.projectId = this.projectId;
             }
             let res = ''
-            if(this.title == '选择菌种实验员'){
+            if (this.title == '选择菌种实验员') {
                 params.roleType = 2
                 params.projectId = this.projectId;
                 res = await getUsersList(params);
                 this.tableData = res.data.records;
-            }else{
+            } else {
                 res = await getUserList(params);
                 this.tableData = res.records;
             }

--
Gitblit v1.7.1