From 6f81691ab09d586470426ee0bfa99cec83797f7b Mon Sep 17 00:00:00 2001 From: 董国庆 <364620639@qq.com> Date: 星期一, 23 六月 2025 15:52:24 +0800 Subject: [PATCH] 实验运行模块 图片换真实上传 --- laboratory/src/views/dataManagement/schemeManagement/list.vue | 31 ++++++++++++++++++------------- 1 files changed, 18 insertions(+), 13 deletions(-) diff --git a/laboratory/src/views/dataManagement/schemeManagement/list.vue b/laboratory/src/views/dataManagement/schemeManagement/list.vue index 7ae84d9..1deecec 100644 --- a/laboratory/src/views/dataManagement/schemeManagement/list.vue +++ b/laboratory/src/views/dataManagement/schemeManagement/list.vue @@ -59,21 +59,26 @@ </el-table-column> <el-table-column label="操作" width="250"> <template slot-scope="scope"> - <!-- 超级管理员(1)和审批人(2) --> - <template v-if="userRole == '1' || userRole == '2'"> + <!-- 草稿箱模式下,只显示编辑和详情 --> + <template v-if="currentType === 'draft'"> + <el-button type="text" @click="handleEdit(scope.row)">编辑</el-button> <el-button type="text" @click="handleDetail(scope.row)">详情</el-button> </template> - - <!-- 工艺工程师(3) --> - <template v-if="userRole == '3'"> - <!-- <el-button type="text" @click="handleEdit(scope.row)" >编辑</el-button> --> - <el-button type="text" @click="handleDetail(scope.row)">详情</el-button> - </template> - - <!-- 实验员(5) --> - <template v-if="userRole == '5'"> - <el-button type="text" @click="handleEdit(scope.row)" v-if="scope.row.status == 1">编辑</el-button> - <el-button type="text" @click="handleDetail(scope.row)" v-if="scope.row.status == 6">详情</el-button> + <!-- 非草稿箱,按原有角色逻辑 --> + <template v-else> + <!-- 超级管理员(1)和审批人(2) --> + <template v-if="userRole == '1' || userRole == '2'"> + <el-button type="text" @click="handleDetail(scope.row)">详情</el-button> + </template> + <!-- 工艺工程师(3) --> + <template v-if="userRole == '3'"> + <el-button type="text" @click="handleDetail(scope.row)">详情</el-button> + </template> + <!-- 实验员(5) --> + <template v-if="userRole == '5'"> + <el-button type="text" @click="handleEdit(scope.row)" v-if="scope.row.status == 1">编辑</el-button> + <el-button type="text" @click="handleDetail(scope.row)" v-if="scope.row.status == 6">详情</el-button> + </template> </template> </template> </el-table-column> -- Gitblit v1.7.1