Browse Source

1、用户管理限制只有MASTER类型用户可以显示解冻按钮

2、更换密码难度时下方给出密码规则描述
2、修改密码时旧密码校验失败文案修改
hella_online_20240919
bjang03 3 months ago
parent
commit
fbabc8118f
  1. 3
      src/views/system/user/index.vue

3
src/views/system/user/index.vue

@ -80,7 +80,7 @@
v-hasPermi="['system:permission:assign-user-role']">
<Icon icon="ep:circle-check" />分配角色
</el-button>
<el-button type="primary" link @click="handleFree(scope.row.id)" v-hasPermi="['system:user:update-password']" v-if="userStore.getUser.userType=='MASTER'">
<el-button type="primary" link @click="handleFree(scope.row.id)" v-hasPermi="['system:user:update-password']" v-if="useUserStore().userSelfInfo.userType=='MASTER'">
<Icon icon="ep:edit" />解冻
</el-button>
<el-button type="danger" link @click="handleDelete(scope.row.id)" v-hasPermi="['system:user:delete']">
@ -118,7 +118,6 @@ import UserAssignRoleForm from './UserAssignRoleForm.vue'
import DeptTree from './DeptTree.vue'
import { useUserStore } from '@/store/modules/user'
const userStore = useUserStore()
import { usePageLoading } from '@/hooks/web/usePageLoading'
const { loadStart, loadDone } = usePageLoading()
defineOptions({ name: 'SystemUser' })

Loading…
Cancel
Save