This commit is contained in:
weiwei committed 2025-03-13 20:49:14 +08:00
1 parent 7fca37e2a6
commit 72e734d02f
3 files changed
+16 -6

No files matched your search

+5 -3
View File
@@ -75,7 +75,7 @@
>
<el-table-column :selectable="handleSelectable" type="selection" width="40" />
<el-table-column label="#" type="index" width="60" fixed="left" />
<el-table-column label="用户名" prop="username" fixed="left" show-overflow-tooltip min-width="150" />
<el-table-column label="用户名" prop="username" fixed="left" show-overflow-tooltip />
<el-table-column label="姓名" prop="name" show-overflow-tooltip min-width="150" />
<el-table-column label="手机号" prop="phone" show-overflow-tooltip min-width="150" />
<el-table-column label="部门" prop="deptName" show-overflow-tooltip min-width="150" />
@@ -87,6 +87,7 @@
<el-table-column label="启用" show-overflow-tooltip min-width="150">
<template #default="scope">
<el-switch
v-if="scope.processStatus == '2'"
:disabled="!auth('sys_user_edit')"
v-model="scope.row.lockFlag"
@change="changeSwitch(scope.row)"
@@ -117,18 +118,18 @@
label="操作"
width="380"
fixed="right"
show-overflow-tooltip
>
<template #default="scope">
<div style="display: flex; justify-content: center">
<!-- 重置密码 -->
<popover-input v-model="inputPassword" @confirm="changePassword(scope.row)">
<popover-input v-if="scope.processStatus == '2'" v-model="inputPassword" @confirm="changePassword(scope.row)">
<template #default>
<el-button v-auth="'sys_user_edit'" icon="RefreshLeft" text type="primary" class="mr-4">密码</el-button>
</template>
</popover-input>
<!-- 修改信息 -->
<el-button
v-if="scope.processStatus == '2'"
v-auth="'sys_user_edit'"
icon="edit-pen"
text
@@ -139,6 +140,7 @@
</el-button>
<!-- 人脸管理 -->
<el-button
v-if="scope.processStatus == '2'"
v-auth="'userFace_sysUserFace_view'"
icon="User"
text