【人员管理】pm需要禁止操作自己的账号
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-08-29 16:05:17 +08:00
parent 6654981721
commit afce1e2bab
1 changed files with 3 additions and 3 deletions

View File

@ -184,7 +184,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-hasPermi="['trials:trials-panel:setting:personnel-manage:status']" circle <el-button v-hasPermi="['trials:trials-panel:setting:personnel-manage:status']" circle
:title="$t('trials:staff:action:status')" icon="el-icon-edit-outline" :disabled="!!scope.row.TrialUserRoleList.find( :title="$t('trials:staff:action:status')" icon="el-icon-edit-outline" :disabled="!!scope.row.TrialUserRoleList.find(
(item) => item.UserTypeEnum === 1 (item) => item.UserTypeEnum === 4
) )
" @click="handleStatus(scope.row)" /> " @click="handleStatus(scope.row)" />
<!---v-if="!scope.row.UserName"--> <!---v-if="!scope.row.UserName"-->
@ -293,11 +293,11 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('common:action:action')" min-width="120px"> <el-table-column :label="$t('common:action:action')" min-width="120px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" :disabled="scope.row.IsDeleted || scope.row.UserTypeEnum === 1" <el-button size="mini" type="text" :disabled="scope.row.IsDeleted || scope.row.UserTypeEnum === 4"
@click.stop="changeRoleStatus(scope.row, true)"> @click.stop="changeRoleStatus(scope.row, true)">
{{ $fd('IsEnable', false) }} {{ $fd('IsEnable', false) }}
</el-button> </el-button>
<el-button size="mini" type="text" :disabled="!scope.row.IsDeleted || scope.row.UserTypeEnum === 1" <el-button size="mini" type="text" :disabled="!scope.row.IsDeleted || scope.row.UserTypeEnum === 4"
@click.stop="changeRoleStatus(scope.row, false)"> @click.stop="changeRoleStatus(scope.row, false)">
{{ $fd('IsEnable', true) }} {{ $fd('IsEnable', true) }}
</el-button> </el-button>