人员管理
parent
4e6d0120b1
commit
2bbfdf3891
@ -0,0 +1,334 @@
|
||||
|
||||
.particularsContainer {
|
||||
background: #f5f6fa;
|
||||
min-width: 70vw;
|
||||
min-height: 100vh;
|
||||
max-height: 100vh;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding: 16px 24px 32px 24px;
|
||||
}
|
||||
|
||||
.announcementBar {
|
||||
background: #fff;
|
||||
box-shadow: 0 2px 8px #f0f1f2;
|
||||
padding: 8px 24px;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
}
|
||||
.announcementTitle {
|
||||
color: #2d5cf6;
|
||||
font-weight: 500;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.announcementItem {
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
.breadcrumb {
|
||||
margin: 24px 0 8px 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
.backBtn {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.profileCard {
|
||||
margin-bottom: 24px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 8px #f0f1f2;
|
||||
}
|
||||
.avatarCol {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.profileInfoHeader {
|
||||
padding: 8px 0;
|
||||
}
|
||||
.nameSection {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.profileName {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
color: #222;
|
||||
}
|
||||
.profileDept {
|
||||
color: #888;
|
||||
font-size: 15px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
.profileDetails {
|
||||
margin-top: 8px;
|
||||
}
|
||||
.detailItem {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
.detailLabel {
|
||||
font-size: 13px;
|
||||
color: #888;
|
||||
font-weight: 500;
|
||||
}
|
||||
.detailValue {
|
||||
font-size: 15px;
|
||||
color: #333;
|
||||
font-weight: 600;
|
||||
}
|
||||
.statusTag {
|
||||
margin: 0;
|
||||
font-weight: 500;
|
||||
}
|
||||
.actionCol {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.actionButtons {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
width: 100%;
|
||||
max-width: 120px;
|
||||
}
|
||||
.editBtn {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.printBtn {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.actionButtons {
|
||||
flex-direction: row;
|
||||
max-width: none;
|
||||
}
|
||||
.nameSection {
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.infoCard {
|
||||
margin-bottom: 24px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 8px #f0f1f2;
|
||||
|
||||
// 表格包装器样式
|
||||
.tableWrapper {
|
||||
margin-top: 16px;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
|
||||
|
||||
// 自定义滚动条样式
|
||||
&::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background: #f5f5f5;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: #d9d9d9;
|
||||
border-radius: 3px;
|
||||
|
||||
&:hover {
|
||||
background: #bfbfbf;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 自定义表格样式
|
||||
.customTable {
|
||||
.ant-table-wrapper {
|
||||
.ant-table-thead > tr > th {
|
||||
background-color: #2c3e50 !important;
|
||||
color: #ecf0f1 !important;
|
||||
font-weight: 600;
|
||||
border-bottom: 1px solid #34495e;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
padding: 16px 12px;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.ant-table-tbody > tr {
|
||||
&:hover > td {
|
||||
background-color: #f8f9ff !important;
|
||||
}
|
||||
|
||||
&:nth-child(even) {
|
||||
background-color: #fafbfc;
|
||||
}
|
||||
|
||||
> td {
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
padding: 14px 12px;
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
vertical-align: top;
|
||||
line-height: 1.6;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-table {
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #e8e8e8;
|
||||
}
|
||||
|
||||
.ant-table-container {
|
||||
border-radius: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 表格通用样式(为了向后兼容)
|
||||
.ant-table-wrapper {
|
||||
.ant-table-thead > tr > th {
|
||||
background-color: #2c3e50 !important;
|
||||
color: #ecf0f1 !important;
|
||||
font-weight: 600;
|
||||
border-bottom: 1px solid #34495e;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
text-align: center;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.ant-table-tbody > tr {
|
||||
&:hover > td {
|
||||
background-color: #f8f9ff !important;
|
||||
}
|
||||
|
||||
> td {
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
padding: 12px 8px;
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-table {
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.careerTimeline {
|
||||
margin-top: 16px;
|
||||
padding-left: 12px;
|
||||
border-left: 2px solid #2d5cf6;
|
||||
}
|
||||
.timelineItem {
|
||||
position: relative;
|
||||
margin-bottom: 32px;
|
||||
padding-left: 24px;
|
||||
}
|
||||
.timelineDot {
|
||||
position: absolute;
|
||||
left: -13px;
|
||||
top: 8px;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background: #d9d9d9;
|
||||
border-radius: 50%;
|
||||
border: 2px solid #fff;
|
||||
box-shadow: 0 0 0 2px #2d5cf6;
|
||||
}
|
||||
.timelineDotActive {
|
||||
background: #2d5cf6;
|
||||
box-shadow: 0 0 0 2px #2d5cf6;
|
||||
}
|
||||
.timelineContent {
|
||||
margin-left: 8px;
|
||||
}
|
||||
.timelineHeader {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
}
|
||||
.timelineCompany {
|
||||
color: #222;
|
||||
}
|
||||
.timelinePosition {
|
||||
color: #555;
|
||||
font-size: 15px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.timelineDuration {
|
||||
color: #888;
|
||||
font-size: 13px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.timelineDescription {
|
||||
color: #444;
|
||||
font-size: 14px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.orgChartWrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #f5f6fa;
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
min-height: 180px;
|
||||
}
|
||||
.orgChartImg {
|
||||
max-width: 100%;
|
||||
max-height: 220px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.footer {
|
||||
margin-top: 32px;
|
||||
text-align: center;
|
||||
color: #888;
|
||||
font-size: 13px;
|
||||
}
|
||||
.footerLinks {
|
||||
margin-bottom: 8px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
justify-content: center;
|
||||
}
|
||||
.footerLinks a {
|
||||
color: #888;
|
||||
text-decoration: none;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
.footerLinks a:hover {
|
||||
color: #2d5cf6;
|
||||
}
|
||||
.footerCopyright {
|
||||
margin-top: 4px;
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
@ -1,10 +1,714 @@
|
||||
@import '~@/utils/utils.less';
|
||||
|
||||
.frameContent {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
border: none;
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
.staffInfoContainer {
|
||||
min-height: 100vh;
|
||||
background-color: #f5f6fa;
|
||||
|
||||
.announcementBar {
|
||||
background: #e6f7ff;
|
||||
border: 1px solid #91d5ff;
|
||||
margin-bottom: 16px;
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
|
||||
.announcement {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.announcementLabel {
|
||||
background-color: #fef3c7;
|
||||
color: #92400e;
|
||||
border-radius: 4px;
|
||||
padding: 4px 8px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
margin-right: 12px;
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.anticon {
|
||||
margin-right: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.scrollContainer {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.scrollContent {
|
||||
display: inline-block;
|
||||
animation: scroll 30s linear infinite;
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mainContent {
|
||||
padding: 24px;
|
||||
|
||||
.contentCard {
|
||||
.ant-card-head {
|
||||
.ant-card-head-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.treeCard {
|
||||
height: 600px;
|
||||
border: 1px solid #e8e8e8;
|
||||
border-radius: 8px;
|
||||
|
||||
.treeHeader {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
} .treeContainer {
|
||||
height: 520px;
|
||||
overflow-y: auto;
|
||||
|
||||
/* 自定义滚动条样式 */
|
||||
&::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: #d9d9d9;
|
||||
border-radius: 3px;
|
||||
|
||||
&:hover {
|
||||
background: #bfbfbf;
|
||||
}
|
||||
}
|
||||
|
||||
.orgTree {
|
||||
.ant-tree-treenode {
|
||||
padding: 2px 0;
|
||||
|
||||
.ant-tree-node-content-wrapper {
|
||||
border-radius: 4px;
|
||||
transition: all 0.3s ease;
|
||||
padding: 4px 8px;
|
||||
|
||||
&:hover {
|
||||
background-color: #f0f9ff;
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
&.ant-tree-node-selected {
|
||||
background-color: #e6f7ff !important;
|
||||
box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
.ant-tree-iconEle {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.ant-tree-title {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Tree节点标题样式 */
|
||||
.tree-node-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
|
||||
.node-title {
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
margin-left: 8px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.node-count {
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
margin-left: auto;
|
||||
background: #f0f0f0;
|
||||
padding: 1px 6px;
|
||||
border-radius: 10px;
|
||||
min-width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.searchCard {
|
||||
margin-bottom: 16px;
|
||||
background-color: #f9fbfc;
|
||||
border-radius: 8px;
|
||||
|
||||
.ant-card-body {
|
||||
padding: 12px;
|
||||
background-color: #f9fbfc;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.ant-form-item-label {
|
||||
font-weight: 500;
|
||||
|
||||
label {
|
||||
color: #ecf0f1 !important;
|
||||
}
|
||||
}
|
||||
|
||||
// 深色背景下的表单项样式
|
||||
.ant-input,
|
||||
.ant-select-selector {
|
||||
background-color: #34495e !important;
|
||||
border-color: #5a6c7d !important;
|
||||
color: #ecf0f1 !important;
|
||||
|
||||
&:hover {
|
||||
border-color: #7fb3d3 !important;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
border-color: #2d5cf6 !important;
|
||||
box-shadow: 0 0 0 2px rgba(45, 92, 246, 0.2) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-select-selection-placeholder,
|
||||
.ant-input::placeholder {
|
||||
color: #95a5a6 !important;
|
||||
}
|
||||
|
||||
.anticon {
|
||||
color: #95a5a6 !important;
|
||||
} /* 搜索按钮样式 */
|
||||
.searchButton {
|
||||
background: linear-gradient(135deg, #2d5cf6 0%, #4c7bff 100%);
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
box-shadow: 0 4px 12px rgba(45, 92, 246, 0.3);
|
||||
transition: all 0.3s ease;
|
||||
margin-top: -8px;
|
||||
height: 35px;
|
||||
padding: 0 16px;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: linear-gradient(135deg, #4c7bff 0%, #6b8fff 100%);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px rgba(45, 92, 246, 0.4);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
/* 重置按钮样式 */
|
||||
.resetButton {
|
||||
background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
|
||||
border: 1px solid #d9d9d9;
|
||||
color: #666;
|
||||
border-radius: 8px;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
transition: all 0.3s ease;
|
||||
margin-top: -8px;
|
||||
height: 35px;
|
||||
padding: 0 16px;
|
||||
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: linear-gradient(135deg, #e8e8e8 0%, #dcdcdc 100%);
|
||||
border-color: #bfbfbf;
|
||||
color: #333;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.anticon {
|
||||
color: #ff7875;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.actionBar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
|
||||
.totalInfo {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 导出按钮样式 */
|
||||
.exportButton {
|
||||
background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
|
||||
border: none;
|
||||
color: white;
|
||||
border-radius: 8px;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
|
||||
transition: all 0.3s ease;
|
||||
// margin-top: -8px;
|
||||
height: 35px;
|
||||
padding: 0 16px;
|
||||
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: linear-gradient(135deg, #73d13d 0%, #95de64 100%);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px rgba(82, 196, 26, 0.4);
|
||||
color: white;
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.anticon {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
/* 新增按钮样式 */
|
||||
.addButton {
|
||||
background: linear-gradient(135deg, #fa8c16 0%, #ffa940 100%);
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
box-shadow: 0 4px 12px rgba(250, 140, 22, 0.3);
|
||||
transition: all 0.3s ease;
|
||||
// margin-top: -8px;
|
||||
height: 35px;
|
||||
padding: 0 16px;
|
||||
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background: linear-gradient(135deg, #ffa940 0%, #ffc069 100%);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px rgba(250, 140, 22, 0.4);
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tableCard {
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
||||
|
||||
.ant-table-wrapper {
|
||||
max-height: 600px;
|
||||
overflow-y: auto;
|
||||
|
||||
/* 自定义滚动条样式 */
|
||||
&::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background: #f5f5f5;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: #d9d9d9;
|
||||
border-radius: 4px;
|
||||
|
||||
&:hover {
|
||||
background: #bfbfbf;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-table-thead>tr>th {
|
||||
background-color: #fafafa;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.ant-table-tbody>tr {
|
||||
&:hover>td {
|
||||
background-color: #f5f5f5 !important;
|
||||
}
|
||||
|
||||
>td {
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.paginationWrapper {
|
||||
margin-top: 20px;
|
||||
text-align: right;
|
||||
|
||||
.ant-pagination {
|
||||
.ant-pagination-total-text {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.ant-pagination-item {
|
||||
border-radius: 4px;
|
||||
|
||||
&.ant-pagination-item-active {
|
||||
background-color: #2d5cf6;
|
||||
border-color: #2d5cf6;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-pagination-prev,
|
||||
.ant-pagination-next {
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.mainContent {
|
||||
padding: 12px;
|
||||
|
||||
.contentCard {
|
||||
.ant-card-head {
|
||||
.ant-card-head-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.treeCard {
|
||||
height: 600px;
|
||||
border: 1px solid #e8e8e8;
|
||||
border-radius: 8px;
|
||||
|
||||
.treeHeader {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.treeContainer {
|
||||
height: 520px;
|
||||
overflow-y: auto;
|
||||
|
||||
/* 自定义滚动条样式 */
|
||||
&::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: #d9d9d9;
|
||||
border-radius: 3px;
|
||||
|
||||
&:hover {
|
||||
background: #bfbfbf;
|
||||
}
|
||||
}
|
||||
|
||||
.orgTree {
|
||||
.ant-tree-treenode {
|
||||
padding: 2px 0;
|
||||
|
||||
.ant-tree-node-content-wrapper {
|
||||
border-radius: 4px;
|
||||
transition: all 0.3s ease;
|
||||
padding: 4px 8px;
|
||||
|
||||
&:hover {
|
||||
background-color: #f0f9ff;
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
&.ant-tree-node-selected {
|
||||
background-color: #e6f7ff !important;
|
||||
box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
|
||||
}
|
||||
}
|
||||
|
||||
.ant-tree-iconEle {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.ant-tree-title {
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Tree节点标题样式 */
|
||||
.tree-node-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
|
||||
.node-title {
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
margin-left: 8px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.node-count {
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
margin-left: auto;
|
||||
background: #f0f0f0;
|
||||
padding: 1px 6px;
|
||||
border-radius: 10px;
|
||||
min-width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.searchCard {
|
||||
margin-bottom: 16px;
|
||||
background-color: #f9fbfc;
|
||||
border-radius: 8px;
|
||||
|
||||
.ant-card-body {
|
||||
padding: 10px;
|
||||
background-color: #f9fbfc;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.ant-form-item-label {
|
||||
font-weight: 500;
|
||||
|
||||
label {
|
||||
color: #ecf0f1 !important;
|
||||
}
|
||||
}
|
||||
|
||||
// 深色背景下的表单项样式
|
||||
.ant-input,
|
||||
.ant-select-selector {
|
||||
background-color: #34495e !important;
|
||||
border-color: #5a6c7d !important;
|
||||
color: #ecf0f1 !important;
|
||||
|
||||
&:hover {
|
||||
border-color: #7fb3d3 !important;
|
||||
}
|
||||
|
||||
&:focus {
|
||||
border-color: #2d5cf6 !important;
|
||||
box-shadow: 0 0 0 2px rgba(45, 92, 246, 0.2) !important;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-select-selection-placeholder,
|
||||
.ant-input::placeholder {
|
||||
color: #95a5a6 !important;
|
||||
}
|
||||
|
||||
.anticon {
|
||||
color: #95a5a6 !important;
|
||||
}
|
||||
}
|
||||
|
||||
.actionBar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
|
||||
.totalInfo {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.tableCard {
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
||||
padding-bottom: 10px;
|
||||
.ant-table-wrapper {
|
||||
max-height: 600px;
|
||||
overflow-y: auto;
|
||||
|
||||
/* 自定义滚动条样式 */
|
||||
&::-webkit-scrollbar {
|
||||
width: 8px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background: #f5f5f5;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: #d9d9d9;
|
||||
border-radius: 4px;
|
||||
|
||||
&:hover {
|
||||
background: #bfbfbf;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-table-thead>tr>th {
|
||||
background-color: #fafafa;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.ant-table-tbody>tr {
|
||||
&:hover>td {
|
||||
background-color: #f5f5f5 !important;
|
||||
}
|
||||
|
||||
>td {
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.paginationWrapper {
|
||||
margin-top: 20px;
|
||||
text-align: right;
|
||||
|
||||
.ant-pagination {
|
||||
.ant-pagination-total-text {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.ant-pagination-item {
|
||||
border-radius: 4px;
|
||||
|
||||
&.ant-pagination-item-active {
|
||||
background-color: #2d5cf6;
|
||||
border-color: #2d5cf6;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-pagination-prev,
|
||||
.ant-pagination-next {
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
:global {
|
||||
.ant-card-body {
|
||||
padding: 12px 24px 0px 24px;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@keyframes scroll {
|
||||
0% {
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
}
|
||||
|
||||
// 响应式设计
|
||||
@media (max-width: 1200px) {
|
||||
.staffInfoContainer {
|
||||
.mainContent {
|
||||
.searchCard {
|
||||
.ant-row {
|
||||
.ant-col {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 自定义主题色
|
||||
.ant-btn-primary {
|
||||
background-color: #2d5cf6;
|
||||
border-color: #2d5cf6;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: #4c7bff;
|
||||
border-color: #4c7bff;
|
||||
}
|
||||
}
|
||||
|
||||
.ant-tree .ant-tree-node-selected {
|
||||
background-color: #e6f7ff !important;
|
||||
}
|
||||
|
||||
.ant-select-focused .ant-select-selector,
|
||||
.ant-input-affix-wrapper-focused,
|
||||
.ant-input:focus,
|
||||
.ant-input-focused {
|
||||
border-color: #2d5cf6 !important;
|
||||
box-shadow: 0 0 0 2px rgba(45, 92, 246, 0.2) !important;
|
||||
}
|
||||
|
||||
// 标签样式优化
|
||||
.ant-tag {
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
// 按钮组间距调整
|
||||
.ant-space-item {
|
||||
.ant-btn+.ant-btn {
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
// 表格链接按钮样式
|
||||
.ant-btn-link {
|
||||
padding: 0 4px;
|
||||
font-size: 12px;
|
||||
}
|
@ -0,0 +1,197 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import {
|
||||
Modal,
|
||||
Form,
|
||||
Input,
|
||||
Select,
|
||||
InputNumber,
|
||||
Row,
|
||||
Col,
|
||||
message
|
||||
} from 'antd';
|
||||
import {
|
||||
UserOutlined,
|
||||
PhoneOutlined,
|
||||
TeamOutlined,
|
||||
ApartmentOutlined
|
||||
} from '@ant-design/icons';
|
||||
|
||||
const { Option } = Select;
|
||||
|
||||
class StaffInfoAdd extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.formRef = React.createRef();
|
||||
}
|
||||
|
||||
// 提交表单
|
||||
handleSubmit = (values) => {
|
||||
console.log('新增人员信息:', values);
|
||||
|
||||
// 这里可以调用API接口保存数据
|
||||
// 模拟保存成功
|
||||
message.success('新增人员成功!');
|
||||
|
||||
// 重置表单
|
||||
this.formRef.current?.resetFields();
|
||||
|
||||
// 调用父组件的回调函数
|
||||
if (this.props.onSuccess) {
|
||||
this.props.onSuccess(values);
|
||||
}
|
||||
|
||||
// 关闭弹窗
|
||||
this.handleCancel();
|
||||
};
|
||||
|
||||
// 取消操作
|
||||
handleCancel = () => {
|
||||
// 重置表单
|
||||
this.formRef.current?.resetFields();
|
||||
|
||||
// 调用父组件的关闭回调
|
||||
if (this.props.onCancel) {
|
||||
this.props.onCancel();
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
const { visible, loading = false } = this.props;
|
||||
|
||||
return (
|
||||
<Modal
|
||||
title="新增人员"
|
||||
open={visible}
|
||||
onOk={() => this.formRef.current?.submit()}
|
||||
onCancel={this.handleCancel}
|
||||
width={600}
|
||||
confirmLoading={loading}
|
||||
destroyOnClose={true}
|
||||
maskClosable={false}
|
||||
>
|
||||
<Form
|
||||
ref={this.formRef}
|
||||
layout="vertical"
|
||||
onFinish={this.handleSubmit}
|
||||
initialValues={{
|
||||
workType: '全职'
|
||||
}}
|
||||
>
|
||||
<Row gutter={16}>
|
||||
<Col span={12}>
|
||||
<Form.Item
|
||||
name="name"
|
||||
label="姓名"
|
||||
rules={[
|
||||
{ required: true, message: '请输入姓名' },
|
||||
{ min: 2, max: 10, message: '姓名长度为2-10个字符' }
|
||||
]}
|
||||
>
|
||||
<Input
|
||||
placeholder="请输入姓名"
|
||||
prefix={<UserOutlined />}
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<Form.Item
|
||||
name="age"
|
||||
label="年龄"
|
||||
rules={[
|
||||
{ required: true, message: '请输入年龄' }
|
||||
]}
|
||||
>
|
||||
<InputNumber
|
||||
placeholder="请输入年龄"
|
||||
min={18}
|
||||
max={65}
|
||||
style={{ width: '100%' }}
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
<Row gutter={16}>
|
||||
<Col span={12}>
|
||||
<Form.Item
|
||||
name="department"
|
||||
label="部门"
|
||||
rules={[
|
||||
{ required: true, message: '请选择部门' }
|
||||
]}
|
||||
>
|
||||
<Select
|
||||
placeholder="请选择部门"
|
||||
suffixIcon={<ApartmentOutlined />}
|
||||
>
|
||||
<Option value="技术部">技术部</Option>
|
||||
<Option value="产品部">产品部</Option>
|
||||
<Option value="运营部">运营部</Option>
|
||||
<Option value="财务部">财务部</Option>
|
||||
<Option value="人事部">人事部</Option>
|
||||
</Select>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<Form.Item
|
||||
name="position"
|
||||
label="岗位"
|
||||
rules={[
|
||||
{ required: true, message: '请选择岗位' }
|
||||
]}
|
||||
>
|
||||
<Select
|
||||
placeholder="请选择岗位"
|
||||
suffixIcon={<TeamOutlined />}
|
||||
>
|
||||
<Option value="高级工程师">高级工程师</Option>
|
||||
<Option value="产品经理">产品经理</Option>
|
||||
<Option value="运营专员">运营专员</Option>
|
||||
<Option value="会计">会计</Option>
|
||||
<Option value="HR专员">HR专员</Option>
|
||||
</Select>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
<Row gutter={16}>
|
||||
<Col span={12}>
|
||||
<Form.Item
|
||||
name="workType"
|
||||
label="工作性质"
|
||||
rules={[
|
||||
{ required: true, message: '请选择工作性质' }
|
||||
]}
|
||||
>
|
||||
<Select placeholder="请选择工作性质">
|
||||
<Option value="全职">全职</Option>
|
||||
{/* <Option value="兼职">兼职</Option> */}
|
||||
<Option value="实习">实习</Option>
|
||||
<Option value="外包">外包</Option>
|
||||
</Select>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<Form.Item
|
||||
name="phone"
|
||||
label="电话"
|
||||
rules={[
|
||||
{ required: true, message: '请输入电话号码' },
|
||||
{ pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号码' }
|
||||
]}
|
||||
>
|
||||
<Input
|
||||
placeholder="请输入电话号码"
|
||||
prefix={<PhoneOutlined />}
|
||||
maxLength={11}
|
||||
/>
|
||||
</Form.Item>
|
||||
</Col>
|
||||
</Row>
|
||||
</Form>
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default StaffInfoAdd;
|
@ -1,10 +1,475 @@
|
||||
@import '~@/utils/utils.less';
|
||||
|
||||
.frameContent {
|
||||
// 主容器
|
||||
.container {
|
||||
background-color: #F5F6FA;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
// 公告栏
|
||||
.announcement {
|
||||
width: 100%;
|
||||
background-color: #ffffff;
|
||||
padding: 8px 16px;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
|
||||
.scrollContainer {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
|
||||
.scrollContent {
|
||||
display: inline-block;
|
||||
animation: scroll 20s linear infinite;
|
||||
|
||||
.announcementLabel {
|
||||
font-weight: 500;
|
||||
color: #2D5CF6;
|
||||
margin-right: 16px;
|
||||
}
|
||||
|
||||
.announcementItem {
|
||||
margin-right: 32px;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes scroll {
|
||||
0% {
|
||||
transform: translateX(0);
|
||||
}
|
||||
100% {
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.mainContent {
|
||||
flex: 1;
|
||||
padding: 24px;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
border: none;
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
// 导航栏
|
||||
.navigationBar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
|
||||
.backButton {
|
||||
color: #2D5CF6;
|
||||
font-size: 14px;
|
||||
padding-left: 0;
|
||||
|
||||
&:hover {
|
||||
color: #1040c6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 面包屑
|
||||
.breadcrumb {
|
||||
.breadcrumbLink {
|
||||
color: #999;
|
||||
|
||||
&:hover {
|
||||
color: #2D5CF6;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 个人信息卡片
|
||||
.profileCard {
|
||||
margin-bottom: 24px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||
|
||||
:global(.ant-card-body) {
|
||||
padding: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.profileHeader {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.avatarSection {
|
||||
margin-bottom: 16px;
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
|
||||
.avatar {
|
||||
border-radius: 8px;
|
||||
border: 1px solid #e8e8e8;
|
||||
}
|
||||
}
|
||||
|
||||
.profileInfo {
|
||||
flex: 1;
|
||||
|
||||
.profileMain {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
|
||||
.staffName {
|
||||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
color: #262626;
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.staffTitle {
|
||||
color: #8c8c8c;
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.actionButtons {
|
||||
margin-top: 8px;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
.basicInfo {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 16px;
|
||||
|
||||
.infoItem {
|
||||
.infoLabel {
|
||||
font-size: 12px;
|
||||
color: #8c8c8c;
|
||||
margin: 0 0 4px 0;
|
||||
}
|
||||
|
||||
.infoValue {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #262626;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.infoValueStatus {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #52c41a;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 详情容器
|
||||
.detailsContainer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
// 详情卡片
|
||||
.detailCard {
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||
|
||||
:global(.ant-card-head) {
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
|
||||
.ant-card-head-title {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 节标题
|
||||
.sectionTitle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.sectionIcon {
|
||||
color: #2D5CF6;
|
||||
margin-right: 8px;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
// 描述列表
|
||||
.descriptions {
|
||||
:global(.ant-descriptions-item-label) {
|
||||
font-weight: 500;
|
||||
color: #8c8c8c;
|
||||
font-size: 12px;
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
:global(.ant-descriptions-item-content) {
|
||||
font-size: 14px;
|
||||
color: #262626;
|
||||
}
|
||||
}
|
||||
|
||||
// 表格样式
|
||||
.detailTable {
|
||||
:global(.ant-table-thead > tr > th) {
|
||||
background-color: #fafafa;
|
||||
font-weight: 500;
|
||||
color: #8c8c8c;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.companyName, .schoolName {
|
||||
font-weight: 500;
|
||||
color: #262626;
|
||||
}
|
||||
|
||||
.duration {
|
||||
font-size: 12px;
|
||||
color: #8c8c8c;
|
||||
}
|
||||
}
|
||||
|
||||
// 组织架构图
|
||||
.orgChart {
|
||||
background-color: #f5f5f5;
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
height: 256px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
.orgChartImage {
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
|
||||
// 职业时间线
|
||||
.careerTimeline {
|
||||
:global(.ant-timeline-item-content) {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.timelineItem {
|
||||
padding: 16px 0;
|
||||
border-left: 2px solid #e8e8e8;
|
||||
margin-left: 8px;
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: -6px;
|
||||
top: 20px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background-color: #d9d9d9;
|
||||
}
|
||||
|
||||
&:first-child:before {
|
||||
background-color: #2D5CF6;
|
||||
}
|
||||
|
||||
.timelineContent {
|
||||
margin-left: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.timelineHeader {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 4px;
|
||||
|
||||
.companyName {
|
||||
font-weight: 500;
|
||||
color: #262626;
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.positionName {
|
||||
color: #8c8c8c;
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
.timelineDuration {
|
||||
font-size: 12px;
|
||||
color: #8c8c8c;
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
.timelineDescription {
|
||||
font-size: 14px;
|
||||
color: #595959;
|
||||
margin: 8px 0 0 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
// 底部通栏
|
||||
.footer {
|
||||
background-color: #262626;
|
||||
color: white;
|
||||
width: 100%;
|
||||
padding: 32px 0;
|
||||
margin-top: auto;
|
||||
|
||||
.footerContent {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 16px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: 32px;
|
||||
margin-bottom: 24px;
|
||||
|
||||
.footerSection {
|
||||
.footerTitle {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
margin-bottom: 16px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.footerList {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
|
||||
.footerLink {
|
||||
font-size: 12px;
|
||||
color: #bfbfbf;
|
||||
text-decoration: none;
|
||||
transition: color 0.3s;
|
||||
|
||||
&:hover {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
.contactItem {
|
||||
font-size: 12px;
|
||||
color: #bfbfbf;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footerBottom {
|
||||
border-top: 1px solid #404040;
|
||||
padding-top: 24px;
|
||||
|
||||
.footerBottomContent {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 0 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.copyright {
|
||||
font-size: 12px;
|
||||
color: #8c8c8c;
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.footerLinks {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
|
||||
.footerBottomLink {
|
||||
font-size: 12px;
|
||||
color: #8c8c8c;
|
||||
text-decoration: none;
|
||||
transition: color 0.3s;
|
||||
|
||||
&:hover {
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 响应式设计
|
||||
@media (min-width: 768px) {
|
||||
.profileHeader {
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
|
||||
.avatarSection {
|
||||
margin-right: 24px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.profileMain {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
.actionButtons {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.basicInfo {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
.footerBottomContent {
|
||||
flex-direction: row;
|
||||
|
||||
.copyright {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.mainContent {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.profileCard {
|
||||
:global(.ant-card-body) {
|
||||
padding: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.basicInfo {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
}
|
||||
|
||||
.footer {
|
||||
.footerContent {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue