提交 f1f44ae8 编写于 作者: 刘英杰's avatar 刘英杰

保存111

上级 427f2506
此差异已折叠。
此差异已折叠。
此差异已折叠。
<template>
<div style="width: 100%;height: 100%;">
<!-- 右侧人员列表 -->
<div class="role-content">
<Tabs style="width: 100%;" type="card" @on-click="tabsChange">
<TabPane label="申请耗材" style="width: 100%;height: 100%;">
</TabPane>
<TabPane label="借用记录" style="height: 100%;width: 100%;">
</TabPane>
</Tabs>
<component v-if="init.tabsChange== 0" :is="ApplyFor"></component>
<component v-else :is="TakeOver"></component>
</div>
</div>
</template>
<script setup>
const ApplyFor = defineAsyncComponent(()=>import('@/pages/applicationClaim/consumables/components/applyFor.vue'))
const TakeOver = defineAsyncComponent(()=>import('@/pages/applicationClaim/consumables/components/takeOver.vue'))
import {ref, onMounted, reactive, computed, defineAsyncComponent} from 'vue'
import {Message, Modal as ModalConfirm} from 'view-ui-plus'
import {
RoleInit,
PermissonList,
PermissonAdd,
PermissonDelete,
SelectTeacher,
GetDepts
} from '@/api/api'
const init = reactive({
tabsChange: 0
})
// 角色列表
const roleList = ref([
{
"role_type": 0,
"role_name": "设备审核",
"count": 14
},
{
"role_type": 1,
"role_name": "耗材审核",
"count": 4
},
])
function tabsChange(e){
console.log("🚀🚀🚀,",e)
init.tabsChange = e
}
// 部门列表
const departmentOptions = ref([])
// 当前选中的角色
const currentRole = ref({})
// 获取角色图标
const getRoleIcon = (roleType) => {
switch (roleType) {
case 0:
return 'md-settings'
case 1:
return 'md-people'
case 2:
return 'md-person'
case 3:
return 'md-briefcase'
default:
return 'md-person'
}
}
// 获取角色图标样式类
const getRoleIconClass = (roleType) => {
switch (roleType) {
case 0:
return 'role-admin'
case 1:
return 'role-party-office'
case 2:
return 'role-responsible-dept'
case 3:
return 'role-entrance-dept'
default:
return 'role-admin'
}
}
// 用户表格列定义
const userColumns = computed(() => {
const columns = [
{
title: '#',
type: 'index',
width: 60
},
{
title: '照片',
slot: 'avatar',
width: 80
},
{
title: '工号',
key: 'user_id',
width: 120
},
{
title: '姓名',
key: 'name',
minWidth: 120
},
]
// 当角色为部门负责人时(role_type === 2),添加负责部门列
if (currentRole.value.role_type === 2) {
columns.push({
title: '负责部门',
slot: 'duty_depts',
minWidth: 200
})
}
// 添加操作列
columns.push({
title: '操作',
slot: 'action',
width: 80,
align: 'center'
})
return columns
})
// 可添加用户表格列定义
const availableUserColumns = ref([
{
title: '照片',
slot: 'avatar',
width: 80
},
{
title: '工号',
key: 'user_id',
width: 120
},
{
title: '姓名',
key: 'name',
minWidth: 120
},
{
title: '部门',
key: 'dept_name',
minWidth: 150
},
{
title: '操作',
slot: 'action',
width: 80,
align: 'center'
}
])
// 分页相关变量
const total = ref(0)
const pageIndex = ref(1)
const pageSize = ref(20)
// 搜索关键词
const searchKeyword = ref('')
// 加载状态
const loading = ref(false)
// 添加用户对话框
const addUserModal = reactive({
show: false,
loading: false,
keyword: '',
userList: [],
dutyDepts: []
})
// 用户列表
const userList = ref([])
// 加载角色列表
const loadRoleList = async () => {
try {
await RoleInit().then(res => {
// roleList.value = res.response
if (res.response.length > 0 && !currentRole.value.role_type && currentRole.value.role_type !== 0) {
currentRole.value = res.response[0]
loadRoleUsers()
}
}).catch(error => {
console.error('获取角色列表失败:', error)
Message.error('获取角色列表失败')
})
} catch (error) {
console.error('获取角色列表失败:', error)
Message.error('获取角色列表失败')
}
}
// 加载角色用户
const loadRoleUsers = async () => {
if (!currentRole.value && currentRole.value.role_type === undefined) return
loading.value = true
try {
const params = {
role_type: currentRole.value.role_type,
query: searchKeyword.value
}
await PermissonList(params).then(res => {
userList.value = res.response || []
total.value = res.response ? res.response.length : 0
}).catch(error => {
console.error('获取角色用户列表失败:', error)
Message.error('获取角色用户列表失败')
}).finally(() => {
loading.value = false
})
} catch (error) {
console.error('获取角色用户列表失败:', error)
Message.error('获取角色用户列表失败')
loading.value = false
}
}
// 选择角色
const handleSelectRole = (role) => {
currentRole.value = role
searchKeyword.value = ''
pageIndex.value = 1
loadRoleUsers()
}
// 搜索用户
const handleSearch = () => {
pageIndex.value = 1
loadRoleUsers()
}
// 分页改变
const handlePageChange = (page) => {
pageIndex.value = page
}
// 页大小改变
const handlePageSizeChange = (size) => {
pageSize.value = size
pageIndex.value = 1
}
// 添加用户
const handleAddUser = () => {
addUserModal.keyword = ''
addUserModal.userList = []
addUserModal.dutyDepts = []
addUserModal.show = true
searchAvailableUsers()
}
// 搜索可添加的用户
const searchAvailableUsers = async () => {
addUserModal.loading = true
try {
const params = {
query: addUserModal.keyword
}
await SelectTeacher(params).then(res => {
addUserModal.userList = res.response || []
}).catch(error => {
console.error('搜索用户失败:', error)
Message.error('搜索用户失败')
}).finally(() => {
addUserModal.loading = false
})
} catch (error) {
console.error('搜索用户失败:', error)
Message.error('搜索用户失败')
addUserModal.loading = false
}
}
// 加载部门列表
const loadDepartments = async () => {
try {
await GetDepts().then((res) => {
departmentOptions.value = res.response.map(dept => ({
value: dept.dept_id,
label: dept.dept_name
}))
}).catch(error => {
console.error('获取部门数据失败:', error)
Message.error('获取部门数据失败')
})
} catch (error) {
console.error('获取部门数据失败:', error)
Message.error('获取部门数据失败')
}
}
onMounted(() => {
loadRoleList()
loadDepartments()
})
</script>
<style scoped>
.role-container {
display: flex;
min-height: calc(100vh - 150px);
/* border: 1px solid #e8eaec; */
border-radius: 4px;
overflow: auto;
gap: 16px;
}
.role-sidebar {
width: 300px;
border-right: 1px solid #e8eaec;
background-color: #fff;
overflow-y: auto;
height: 200px;
}
.role-title {
padding: 16px;
font-size: 16px;
font-weight: bold;
border-bottom: 1px solid #e8eaec;
}
.role-list {
padding: 10px 0;
}
.role-item {
display: flex;
align-items: center;
padding: 12px 16px;
cursor: pointer;
transition: background-color 0.3s;
}
.role-item:hover {
background-color: #f0f0f0;
}
.role-item.active {
background-color: #e8f7ff;
color: #2d8cf0;
}
.role-item-icon {
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
color: #fff;
}
.role-admin {
background-color: #2d8cf0;
}
.role-party-office {
background-color: #19be6b;
}
.role-entrance-dept {
background-color: #ff9900;
}
.role-responsible-dept {
background-color: #ed4014;
}
.role-item-info {
flex: 1;
}
.role-name {
font-size: 14px;
margin-bottom: 4px;
}
.role-count {
font-size: 12px;
color: #808695;
}
.role-content {
display: flex;
flex-direction: column;
gap: 16px;
flex: 1;
}
.role-toolbar {
height: 100%;
display: flex;
justify-content: space-between;
/* margin-bottom: 16px; */
position: sticky;
top: 0;
background-color: #fff;
z-index: 1;
}
.search-box {
width: 280px;
}
.pagination {
/* margin-top: 16px; */
text-align: center;
position: sticky;
bottom: 0;
background-color: #fff;
z-index: 1;
}
.action-btns {
display: flex;
justify-content: center;
}
.user-avatar {
display: flex;
justify-content: center;
align-items: center;
}
.user-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.add-user-search {
margin-bottom: 16px;
}
.duty-dept-select {
margin-bottom: 16px;
}
</style>
\ No newline at end of file
<template>
<div style="width: 100%;height: 100%;">
<!-- 右侧人员列表 -->
<div class="role-content">
<Tabs style="width: 100%;" type="card" @on-click="tabsChange">
<TabPane label="申请耗材" style="width: 100%;height: 100%;">
</TabPane>
<TabPane label="借用记录" style="height: 100%;width: 100%;">
</TabPane>
</Tabs>
<component v-show="init.tabsChange== 0" :is="ApplyFor"></component>
<component v-show="init.tabsChange== 1" :is="TakeOver"></component>
</div>
</div>
</template>
<script setup>
const ApplyFor = defineAsyncComponent(()=>import('@/pages/applicationClaim/consumables/components/applyFor.vue'))
const TakeOver = defineAsyncComponent(()=>import('@/pages/applicationClaim/consumables/components/takeOver.vue'))
import {ref, onMounted, reactive, computed, defineAsyncComponent} from 'vue'
import {Message, Modal as ModalConfirm} from 'view-ui-plus'
import {
RoleInit,
PermissonList,
PermissonAdd,
PermissonDelete,
SelectTeacher,
GetDepts
} from '@/api/api'
const init = reactive({
tabsChange: 0
})
// 角色列表
const roleList = ref([
{
"role_type": 0,
"role_name": "设备审核",
"count": 14
},
{
"role_type": 1,
"role_name": "耗材审核",
"count": 4
},
])
function tabsChange(e){
console.log("🚀🚀🚀,",e)
init.tabsChange = e
}
// 部门列表
const departmentOptions = ref([])
// 当前选中的角色
const currentRole = ref({})
// 获取角色图标
const getRoleIcon = (roleType) => {
switch (roleType) {
case 0:
return 'md-settings'
case 1:
return 'md-people'
case 2:
return 'md-person'
case 3:
return 'md-briefcase'
default:
return 'md-person'
}
}
// 获取角色图标样式类
const getRoleIconClass = (roleType) => {
switch (roleType) {
case 0:
return 'role-admin'
case 1:
return 'role-party-office'
case 2:
return 'role-responsible-dept'
case 3:
return 'role-entrance-dept'
default:
return 'role-admin'
}
}
// 用户表格列定义
const userColumns = computed(() => {
const columns = [
{
title: '#',
type: 'index',
width: 60
},
{
title: '照片',
slot: 'avatar',
width: 80
},
{
title: '工号',
key: 'user_id',
width: 120
},
{
title: '姓名',
key: 'name',
minWidth: 120
},
]
// 当角色为部门负责人时(role_type === 2),添加负责部门列
if (currentRole.value.role_type === 2) {
columns.push({
title: '负责部门',
slot: 'duty_depts',
minWidth: 200
})
}
// 添加操作列
columns.push({
title: '操作',
slot: 'action',
width: 80,
align: 'center'
})
return columns
})
// 可添加用户表格列定义
const availableUserColumns = ref([
{
title: '照片',
slot: 'avatar',
width: 80
},
{
title: '工号',
key: 'user_id',
width: 120
},
{
title: '姓名',
key: 'name',
minWidth: 120
},
{
title: '部门',
key: 'dept_name',
minWidth: 150
},
{
title: '操作',
slot: 'action',
width: 80,
align: 'center'
}
])
// 分页相关变量
const total = ref(0)
const pageIndex = ref(1)
const pageSize = ref(20)
// 搜索关键词
const searchKeyword = ref('')
// 加载状态
const loading = ref(false)
// 添加用户对话框
const addUserModal = reactive({
show: false,
loading: false,
keyword: '',
userList: [],
dutyDepts: []
})
// 用户列表
const userList = ref([])
// 加载角色列表
const loadRoleList = async () => {
try {
await RoleInit().then(res => {
// roleList.value = res.response
if (res.response.length > 0 && !currentRole.value.role_type && currentRole.value.role_type !== 0) {
currentRole.value = res.response[0]
loadRoleUsers()
}
}).catch(error => {
console.error('获取角色列表失败:', error)
Message.error('获取角色列表失败')
})
} catch (error) {
console.error('获取角色列表失败:', error)
Message.error('获取角色列表失败')
}
}
// 加载角色用户
const loadRoleUsers = async () => {
if (!currentRole.value && currentRole.value.role_type === undefined) return
loading.value = true
try {
const params = {
role_type: currentRole.value.role_type,
query: searchKeyword.value
}
await PermissonList(params).then(res => {
userList.value = res.response || []
total.value = res.response ? res.response.length : 0
}).catch(error => {
console.error('获取角色用户列表失败:', error)
Message.error('获取角色用户列表失败')
}).finally(() => {
loading.value = false
})
} catch (error) {
console.error('获取角色用户列表失败:', error)
Message.error('获取角色用户列表失败')
loading.value = false
}
}
// 选择角色
const handleSelectRole = (role) => {
currentRole.value = role
searchKeyword.value = ''
pageIndex.value = 1
loadRoleUsers()
}
// 搜索用户
const handleSearch = () => {
pageIndex.value = 1
loadRoleUsers()
}
// 分页改变
const handlePageChange = (page) => {
pageIndex.value = page
}
// 页大小改变
const handlePageSizeChange = (size) => {
pageSize.value = size
pageIndex.value = 1
}
// 添加用户
const handleAddUser = () => {
addUserModal.keyword = ''
addUserModal.userList = []
addUserModal.dutyDepts = []
addUserModal.show = true
searchAvailableUsers()
}
// 搜索可添加的用户
const searchAvailableUsers = async () => {
addUserModal.loading = true
try {
const params = {
query: addUserModal.keyword
}
await SelectTeacher(params).then(res => {
addUserModal.userList = res.response || []
}).catch(error => {
console.error('搜索用户失败:', error)
Message.error('搜索用户失败')
}).finally(() => {
addUserModal.loading = false
})
} catch (error) {
console.error('搜索用户失败:', error)
Message.error('搜索用户失败')
addUserModal.loading = false
}
}
// 加载部门列表
const loadDepartments = async () => {
try {
await GetDepts().then((res) => {
departmentOptions.value = res.response.map(dept => ({
value: dept.dept_id,
label: dept.dept_name
}))
}).catch(error => {
console.error('获取部门数据失败:', error)
Message.error('获取部门数据失败')
})
} catch (error) {
console.error('获取部门数据失败:', error)
Message.error('获取部门数据失败')
}
}
onMounted(() => {
loadRoleList()
loadDepartments()
})
</script>
<style scoped>
.role-container {
display: flex;
min-height: calc(100vh - 150px);
/* border: 1px solid #e8eaec; */
border-radius: 4px;
overflow: auto;
gap: 16px;
}
.role-sidebar {
width: 300px;
border-right: 1px solid #e8eaec;
background-color: #fff;
overflow-y: auto;
height: 200px;
}
.role-title {
padding: 16px;
font-size: 16px;
font-weight: bold;
border-bottom: 1px solid #e8eaec;
}
.role-list {
padding: 10px 0;
}
.role-item {
display: flex;
align-items: center;
padding: 12px 16px;
cursor: pointer;
transition: background-color 0.3s;
}
.role-item:hover {
background-color: #f0f0f0;
}
.role-item.active {
background-color: #e8f7ff;
color: #2d8cf0;
}
.role-item-icon {
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
color: #fff;
}
.role-admin {
background-color: #2d8cf0;
}
.role-party-office {
background-color: #19be6b;
}
.role-entrance-dept {
background-color: #ff9900;
}
.role-responsible-dept {
background-color: #ed4014;
}
.role-item-info {
flex: 1;
}
.role-name {
font-size: 14px;
margin-bottom: 4px;
}
.role-count {
font-size: 12px;
color: #808695;
}
.role-content {
display: flex;
flex-direction: column;
gap: 16px;
flex: 1;
}
.role-toolbar {
height: 100%;
display: flex;
justify-content: space-between;
/* margin-bottom: 16px; */
position: sticky;
top: 0;
background-color: #fff;
z-index: 1;
}
.search-box {
width: 280px;
}
.pagination {
/* margin-top: 16px; */
text-align: center;
position: sticky;
bottom: 0;
background-color: #fff;
z-index: 1;
}
.action-btns {
display: flex;
justify-content: center;
}
.user-avatar {
display: flex;
justify-content: center;
align-items: center;
}
.user-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.add-user-search {
margin-bottom: 16px;
}
.duty-dept-select {
margin-bottom: 16px;
}
</style>
\ No newline at end of file
<template>
<div style="width: 100%;height: 100%;">
<!-- 右侧人员列表 -->
<div class="role-content">
<Tabs style="width: 100%;" type="card" @on-click="tabsChange">
<TabPane label="申请耗材" style="width: 100%;height: 100%;">
</TabPane>
<TabPane label="借用记录" style="height: 100%;width: 100%;">
</TabPane>
</Tabs>
<component v-if="init.tabsChange== 0" :is="ApplyFor"></component>
<component v-else :is="TakeOver"></component>
</div>
</div>
</template>
<script setup>
const ApplyFor = defineAsyncComponent(()=>import('@/pages/applicationClaim/consumables/components/applyFor.vue'))
const TakeOver = defineAsyncComponent(()=>import('@/pages/applicationClaim/consumables/components/takeOver.vue'))
import {ref, onMounted, reactive, computed, defineAsyncComponent} from 'vue'
import {Message, Modal as ModalConfirm} from 'view-ui-plus'
import {
RoleInit,
PermissonList,
PermissonAdd,
PermissonDelete,
SelectTeacher,
GetDepts
} from '@/api/api'
const init = reactive({
tabsChange: 0
})
// 角色列表
const roleList = ref([
{
"role_type": 0,
"role_name": "设备审核",
"count": 14
},
{
"role_type": 1,
"role_name": "耗材审核",
"count": 4
},
])
function tabsChange(e){
console.log("🚀🚀🚀,",e)
init.tabsChange = e
}
// 部门列表
const departmentOptions = ref([])
// 当前选中的角色
const currentRole = ref({})
// 获取角色图标
const getRoleIcon = (roleType) => {
switch (roleType) {
case 0:
return 'md-settings'
case 1:
return 'md-people'
case 2:
return 'md-person'
case 3:
return 'md-briefcase'
default:
return 'md-person'
}
}
// 获取角色图标样式类
const getRoleIconClass = (roleType) => {
switch (roleType) {
case 0:
return 'role-admin'
case 1:
return 'role-party-office'
case 2:
return 'role-responsible-dept'
case 3:
return 'role-entrance-dept'
default:
return 'role-admin'
}
}
// 用户表格列定义
const userColumns = computed(() => {
const columns = [
{
title: '#',
type: 'index',
width: 60
},
{
title: '照片',
slot: 'avatar',
width: 80
},
{
title: '工号',
key: 'user_id',
width: 120
},
{
title: '姓名',
key: 'name',
minWidth: 120
},
]
// 当角色为部门负责人时(role_type === 2),添加负责部门列
if (currentRole.value.role_type === 2) {
columns.push({
title: '负责部门',
slot: 'duty_depts',
minWidth: 200
})
}
// 添加操作列
columns.push({
title: '操作',
slot: 'action',
width: 80,
align: 'center'
})
return columns
})
// 可添加用户表格列定义
const availableUserColumns = ref([
{
title: '照片',
slot: 'avatar',
width: 80
},
{
title: '工号',
key: 'user_id',
width: 120
},
{
title: '姓名',
key: 'name',
minWidth: 120
},
{
title: '部门',
key: 'dept_name',
minWidth: 150
},
{
title: '操作',
slot: 'action',
width: 80,
align: 'center'
}
])
// 分页相关变量
const total = ref(0)
const pageIndex = ref(1)
const pageSize = ref(20)
// 搜索关键词
const searchKeyword = ref('')
// 加载状态
const loading = ref(false)
// 添加用户对话框
const addUserModal = reactive({
show: false,
loading: false,
keyword: '',
userList: [],
dutyDepts: []
})
// 用户列表
const userList = ref([])
// 加载角色列表
const loadRoleList = async () => {
try {
await RoleInit().then(res => {
// roleList.value = res.response
if (res.response.length > 0 && !currentRole.value.role_type && currentRole.value.role_type !== 0) {
currentRole.value = res.response[0]
loadRoleUsers()
}
}).catch(error => {
console.error('获取角色列表失败:', error)
Message.error('获取角色列表失败')
})
} catch (error) {
console.error('获取角色列表失败:', error)
Message.error('获取角色列表失败')
}
}
// 加载角色用户
const loadRoleUsers = async () => {
if (!currentRole.value && currentRole.value.role_type === undefined) return
loading.value = true
try {
const params = {
role_type: currentRole.value.role_type,
query: searchKeyword.value
}
await PermissonList(params).then(res => {
userList.value = res.response || []
total.value = res.response ? res.response.length : 0
}).catch(error => {
console.error('获取角色用户列表失败:', error)
Message.error('获取角色用户列表失败')
}).finally(() => {
loading.value = false
})
} catch (error) {
console.error('获取角色用户列表失败:', error)
Message.error('获取角色用户列表失败')
loading.value = false
}
}
// 选择角色
const handleSelectRole = (role) => {
currentRole.value = role
searchKeyword.value = ''
pageIndex.value = 1
loadRoleUsers()
}
// 搜索用户
const handleSearch = () => {
pageIndex.value = 1
loadRoleUsers()
}
// 分页改变
const handlePageChange = (page) => {
pageIndex.value = page
}
// 页大小改变
const handlePageSizeChange = (size) => {
pageSize.value = size
pageIndex.value = 1
}
// 添加用户
const handleAddUser = () => {
addUserModal.keyword = ''
addUserModal.userList = []
addUserModal.dutyDepts = []
addUserModal.show = true
searchAvailableUsers()
}
// 搜索可添加的用户
const searchAvailableUsers = async () => {
addUserModal.loading = true
try {
const params = {
query: addUserModal.keyword
}
await SelectTeacher(params).then(res => {
addUserModal.userList = res.response || []
}).catch(error => {
console.error('搜索用户失败:', error)
Message.error('搜索用户失败')
}).finally(() => {
addUserModal.loading = false
})
} catch (error) {
console.error('搜索用户失败:', error)
Message.error('搜索用户失败')
addUserModal.loading = false
}
}
// 加载部门列表
const loadDepartments = async () => {
try {
await GetDepts().then((res) => {
departmentOptions.value = res.response.map(dept => ({
value: dept.dept_id,
label: dept.dept_name
}))
}).catch(error => {
console.error('获取部门数据失败:', error)
Message.error('获取部门数据失败')
})
} catch (error) {
console.error('获取部门数据失败:', error)
Message.error('获取部门数据失败')
}
}
onMounted(() => {
loadRoleList()
loadDepartments()
})
</script>
<style scoped>
.role-container {
display: flex;
min-height: calc(100vh - 150px);
/* border: 1px solid #e8eaec; */
border-radius: 4px;
overflow: auto;
gap: 16px;
}
.role-sidebar {
width: 300px;
border-right: 1px solid #e8eaec;
background-color: #fff;
overflow-y: auto;
height: 200px;
}
.role-title {
padding: 16px;
font-size: 16px;
font-weight: bold;
border-bottom: 1px solid #e8eaec;
}
.role-list {
padding: 10px 0;
}
.role-item {
display: flex;
align-items: center;
padding: 12px 16px;
cursor: pointer;
transition: background-color 0.3s;
}
.role-item:hover {
background-color: #f0f0f0;
}
.role-item.active {
background-color: #e8f7ff;
color: #2d8cf0;
}
.role-item-icon {
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
color: #fff;
}
.role-admin {
background-color: #2d8cf0;
}
.role-party-office {
background-color: #19be6b;
}
.role-entrance-dept {
background-color: #ff9900;
}
.role-responsible-dept {
background-color: #ed4014;
}
.role-item-info {
flex: 1;
}
.role-name {
font-size: 14px;
margin-bottom: 4px;
}
.role-count {
font-size: 12px;
color: #808695;
}
.role-content {
display: flex;
flex-direction: column;
gap: 16px;
flex: 1;
}
.role-toolbar {
height: 100%;
display: flex;
justify-content: space-between;
/* margin-bottom: 16px; */
position: sticky;
top: 0;
background-color: #fff;
z-index: 1;
}
.search-box {
width: 280px;
}
.pagination {
/* margin-top: 16px; */
text-align: center;
position: sticky;
bottom: 0;
background-color: #fff;
z-index: 1;
}
.action-btns {
display: flex;
justify-content: center;
}
.user-avatar {
display: flex;
justify-content: center;
align-items: center;
}
.user-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.add-user-search {
margin-bottom: 16px;
}
.duty-dept-select {
margin-bottom: 16px;
}
</style>
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或