|
@@ -34,14 +34,14 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<el-table :data="userList" row-key="id" style="margin-top: 10px">
|
|
<el-table :data="userList" row-key="id" style="margin-top: 10px">
|
|
|
- <el-table-column label="工号" prop="staffNo">
|
|
|
|
|
|
|
+ <el-table-column label="工号" prop="staffNo" width="200">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<div>
|
|
<div>
|
|
|
<span>{{ scope.row.staffNo }}</span>
|
|
<span>{{ scope.row.staffNo }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="登录账号" prop="username" width="150">
|
|
|
|
|
|
|
+ <el-table-column label="登录账号" prop="username" width="240">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<div class="account">
|
|
<div class="account">
|
|
|
{{ scope.row.username }}
|
|
{{ scope.row.username }}
|
|
@@ -59,9 +59,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="姓名" prop="realname" />
|
|
|
|
|
- <el-table-column label="手机" prop="mobile" />
|
|
|
|
|
- <el-table-column label="状态" prop="isDisabled">
|
|
|
|
|
|
|
+ <el-table-column label="姓名" prop="realname" width="200" />
|
|
|
|
|
+ <el-table-column label="手机" prop="mobile" width="200" />
|
|
|
|
|
+ <el-table-column label="状态" prop="isDisabled" width="200">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<div>
|
|
<div>
|
|
|
<el-tag :type="!scope.row.isDisabled ? 'success' : 'danger'">
|
|
<el-tag :type="!scope.row.isDisabled ? 'success' : 'danger'">
|
|
@@ -70,23 +70,23 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="角色" prop="roleList">
|
|
|
|
|
|
|
+ <el-table-column label="角色" prop="roleList" width="240">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<div>
|
|
<div>
|
|
|
{{ tranformRoleList(scope.row.roleList) }}
|
|
{{ tranformRoleList(scope.row.roleList) }}
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="组织" prop="deptList">
|
|
|
|
|
|
|
+ <el-table-column label="组织" prop="deptList" width="200">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<div>
|
|
<div>
|
|
|
{{ tranformDeptList(scope.row.deptList) }}
|
|
{{ tranformDeptList(scope.row.deptList) }}
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column label="认证方式" prop="certify" />
|
|
|
|
|
- <el-table-column label="创建时间" prop="createdAt" />
|
|
|
|
|
- <el-table-column label="操作" width="200">
|
|
|
|
|
|
|
+ <el-table-column label="认证方式" prop="certify" width="200" />
|
|
|
|
|
+ <el-table-column label="创建时间" prop="createdAt" width="240" />
|
|
|
|
|
+ <el-table-column label="操作" width="200" fixed="right">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-space v-if="scope.row.roleType !== RoleTypeEnum.SUPER_ADMIN">
|
|
<el-space v-if="scope.row.roleType !== RoleTypeEnum.SUPER_ADMIN">
|
|
|
<div class="el-space el-space--horizontal">
|
|
<div class="el-space el-space--horizontal">
|
|
@@ -122,7 +122,7 @@
|
|
|
<section class="paginationPosition">
|
|
<section class="paginationPosition">
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
background
|
|
background
|
|
|
- layout="total, sizes, prev, pager, next"
|
|
|
|
|
|
|
+ :layout="DEFAULT_LAYOUT"
|
|
|
:page-sizes="[10, 30, 50]"
|
|
:page-sizes="[10, 30, 50]"
|
|
|
:total="total"
|
|
:total="total"
|
|
|
v-model:page-size="params.pageSize"
|
|
v-model:page-size="params.pageSize"
|
|
@@ -157,6 +157,7 @@
|
|
|
import { reactive, ref, onMounted } from 'vue';
|
|
import { reactive, ref, onMounted } from 'vue';
|
|
|
import { storeToRefs } from 'pinia';
|
|
import { storeToRefs } from 'pinia';
|
|
|
import { ElMessage } from 'element-plus';
|
|
import { ElMessage } from 'element-plus';
|
|
|
|
|
+ import { DEFAULT_LAYOUT } from '@/constant/pagination';
|
|
|
import { Plus, DocumentAdd, Stamp } from '@element-plus/icons-vue';
|
|
import { Plus, DocumentAdd, Stamp } from '@element-plus/icons-vue';
|
|
|
import { OptionsProps, SearchParamsProps } from './types';
|
|
import { OptionsProps, SearchParamsProps } from './types';
|
|
|
import { RoleTypeEnum } from '@/types/role/constants';
|
|
import { RoleTypeEnum } from '@/types/role/constants';
|