|
|
@ -1,13 +1,4 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<el-row :gutter="20"> |
|
|
|
|
|
|
|
<!-- 左侧部门树 --> |
|
|
|
|
|
|
|
<el-col :span="4" :xs="24"> |
|
|
|
|
|
|
|
<ContentWrap class="h-1/1"> |
|
|
|
|
|
|
|
<DeptTree @node-click="handleDeptNodeClick" /> |
|
|
|
|
|
|
|
</ContentWrap> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="20" :xs="24"> |
|
|
|
|
|
|
|
<!-- 搜索 --> |
|
|
|
|
|
|
|
<ContentWrap> |
|
|
|
<ContentWrap> |
|
|
|
<section class="flex flex-col gap-20px"> |
|
|
|
<section class="flex flex-col gap-20px"> |
|
|
|
<el-form |
|
|
|
<el-form |
|
|
@ -96,35 +87,24 @@ |
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list"> |
|
|
|
<el-table v-loading="loading" :data="list"> |
|
|
|
<el-table-column |
|
|
|
<el-table-column |
|
|
|
label="头像" |
|
|
|
label="真实姓名" |
|
|
|
align="center" |
|
|
|
align="center" |
|
|
|
prop="realName" |
|
|
|
prop="realName" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
> |
|
|
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
|
|
<el-image |
|
|
|
|
|
|
|
style="width: 60px; height: 60px;border-radius: 50%;" |
|
|
|
|
|
|
|
:src="scope.row.avatar" |
|
|
|
|
|
|
|
:preview-src-list="[scope.row.avatar]" |
|
|
|
|
|
|
|
:preview-teleported="true" |
|
|
|
|
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
<el-table-column label="用户性别" align="center" prop="sex" width="120" > |
|
|
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
|
|
{{getDictLabel(DICT_TYPE.SYSTEM_USER_SEX, scope.row.sex)}} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="用户编号" align="center" key="id" prop="id" /> |
|
|
|
<el-table-column label="手机号码" align="center" prop="mobile" width="120" /> |
|
|
|
<el-table-column |
|
|
|
|
|
|
|
label="用户名称" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
prop="realName" |
|
|
|
|
|
|
|
:show-overflow-tooltip="true" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
<el-table-column |
|
|
|
label="部门" |
|
|
|
label="所属部门" |
|
|
|
align="center" |
|
|
|
align="center" |
|
|
|
key="deptName" |
|
|
|
key="deptName" |
|
|
|
prop="deptName" |
|
|
|
prop="deptName" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<el-table-column label="手机号码" align="center" prop="mobile" width="120" /> |
|
|
|
|
|
|
|
<el-table-column label="状态" key="status" v-if="!isInset"> |
|
|
|
<el-table-column label="状态" key="status" v-if="!isInset"> |
|
|
|
<template #default="scope"> |
|
|
|
<template #default="scope"> |
|
|
|
<el-switch |
|
|
|
<el-switch |
|
|
@ -214,9 +194,7 @@ |
|
|
|
class="ml-auto" |
|
|
|
class="ml-auto" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</section> |
|
|
|
</section> |
|
|
|
</ContentWrap> |
|
|
|
</ContentWrap> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改用户对话框 --> |
|
|
|
<!-- 添加或修改用户对话框 --> |
|
|
|
<UserForm ref="formRef" @success="getList" /> |
|
|
|
<UserForm ref="formRef" @success="getList" /> |
|
|
@ -226,7 +204,7 @@ |
|
|
|
<UserAssignRoleForm ref="assignRoleFormRef" @success="getList" /> |
|
|
|
<UserAssignRoleForm ref="assignRoleFormRef" @success="getList" /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script lang="ts" setup> |
|
|
|
<script lang="ts" setup> |
|
|
|
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' |
|
|
|
import { DICT_TYPE, getIntDictOptions, getDictLabel } from '@/utils/dict' |
|
|
|
import { checkPermi } from '@/utils/permission' |
|
|
|
import { checkPermi } from '@/utils/permission' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import download from '@/utils/download' |
|
|
|
import download from '@/utils/download' |
|
|
@ -235,7 +213,6 @@ import * as UserApi from '@/api/system/user' |
|
|
|
import UserForm from './UserForm.vue' |
|
|
|
import UserForm from './UserForm.vue' |
|
|
|
import UserImportForm from './UserImportForm.vue' |
|
|
|
import UserImportForm from './UserImportForm.vue' |
|
|
|
import UserAssignRoleForm from './UserAssignRoleForm.vue' |
|
|
|
import UserAssignRoleForm from './UserAssignRoleForm.vue' |
|
|
|
import DeptTree from './DeptTree.vue' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
defineOptions({ name: 'SystemUser' }) |
|
|
|
defineOptions({ name: 'SystemUser' }) |
|
|
|
|
|
|
|
|
|
|
|