1.用户数据左侧没有工号
2.样式问题
This commit is contained in:
2023-12-27 17:55:35 +08:00
parent a0ffce1fa7
commit 63eb01d641
2 changed files with 10 additions and 3 deletions
@@ -3,7 +3,8 @@
<template #container>
<div class="user-info-modal" style="display: flex">
<div style="width: 23%; padding: 0 20px 20px" class="fff">
<div style="margin-bottom: 10px; font-weight: bold"> 用户名称{{ infoData?.username }}</div>
<div style="margin-bottom: 10px; font-weight: bold"> 员工姓名{{ infoData?.username }}</div>
<div style="margin-bottom: 10px; font-weight: bold"> 员工工号{{ infoData?.workNo }} </div>
<div style="margin-bottom: 10px; font-weight: bold"> 工具编码{{ infoData?.watchNo }}</div>
<div style="margin-bottom: 10px; font-weight: bold"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ infoData?.unit }} </div>
<div style="margin-bottom: 10px; font-weight: bold">
@@ -5,6 +5,7 @@
<div class="dialog-con">
<a-table
class="ant-table-striped"
:class="[dataSource.length === 0 ? 'no-bottom' : '']"
:dataSource="dataSource"
:columns="columns"
:scroll="{ y: '56vh' }"
@@ -73,6 +74,7 @@
const { code, result } = await getUserListByDeptId({ orgId: id, pageSize: pageSize.value, pageNo: current.value });
if (code == 200) {
dataSource.value = result?.records;
total.value = result?.total;
}
}
@@ -199,4 +201,8 @@
:deep(.ant-table-pagination-right) {
margin-right: 10px !important;
}
:deep(.no-bottom .ant-table-cell) {
border-bottom: none !important;
}
</style>