薪酬管理页面开发
parent
1f512f9f03
commit
ea9f629397
@ -1,10 +1,456 @@
|
|||||||
@import '~@/utils/utils.less';
|
@import '~@/utils/utils.less';
|
||||||
|
|
||||||
.frameContent {
|
/* 绩效评估页面样式 */
|
||||||
width: 100%;
|
.performance-assess-page {
|
||||||
height: 100vh;
|
padding: 24px;
|
||||||
border: none;
|
background-color: #f5f6fa;
|
||||||
display: block;
|
min-height: 90vh;
|
||||||
margin: 0;
|
max-height: 90vh; /* 限制最大高度 */
|
||||||
padding: 0;
|
overflow-y: auto; /* 添加垂直滚动条 */
|
||||||
|
overflow-x: hidden; /* 隐藏水平滚动条 */
|
||||||
|
|
||||||
|
/* 自定义滚动条样式 */
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
width: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
background: #f1f1f1;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background: #c1c1c1;
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #a8a8a8;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-card {
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||||
|
margin-bottom: 20px; /* 增加卡片间隔 */
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 最后一个卡片不需要下边距 */
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 筛选区样式 */
|
||||||
|
.search-section {
|
||||||
|
margin-bottom: 10px; /* 增加与后续内容的间隔 */
|
||||||
|
|
||||||
|
.ant-card-body {
|
||||||
|
padding: 20px; /* 调整内边距 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-item {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
|
||||||
|
.form-label {
|
||||||
|
display: block;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #6b7280;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-actions {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
gap: 8px;
|
||||||
|
margin-top: 16px;
|
||||||
|
padding-top: 16px;
|
||||||
|
border-top: 1px solid #f3f4f6; /* 添加分隔线 */
|
||||||
|
|
||||||
|
.ant-btn {
|
||||||
|
font-size: 14px;
|
||||||
|
height: 32px;
|
||||||
|
padding: 0 16px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 人员信息样式 */
|
||||||
|
.employee-section {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
|
||||||
|
.ant-card-body {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.employee-info {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 20px; /* 增加元素间隔 */
|
||||||
|
|
||||||
|
.employee-avatar {
|
||||||
|
flex-shrink: 0;
|
||||||
|
background-color: #e5e7eb;
|
||||||
|
}
|
||||||
|
|
||||||
|
.employee-details {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plan-info {
|
||||||
|
flex-shrink: 0;
|
||||||
|
min-width: 200px; /* 确保有足够空间 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
margin-bottom: 8px; /* 增加项目间隔 */
|
||||||
|
|
||||||
|
.info-label {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #6b7280;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-value {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #111827;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 绩效公式样式 */
|
||||||
|
.formula-section {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
|
||||||
|
.ant-card-body {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #111827;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.formula-content {
|
||||||
|
background-color: #f3f4f6;
|
||||||
|
padding: 12px; /* 增加内边距 */
|
||||||
|
border-radius: 6px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #374151;
|
||||||
|
line-height: 1.5; /* 增加行高 */
|
||||||
|
border-left: 4px solid #2d5cf6; /* 添加左边框 */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 绩效总分样式 */
|
||||||
|
.score-section {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
|
||||||
|
.ant-card-body {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
.score-label {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #6b7280;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.score-value {
|
||||||
|
font-size: 36px; /* 增大字体 */
|
||||||
|
font-weight: bold;
|
||||||
|
color: #2d5cf6;
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-end;
|
||||||
|
|
||||||
|
.status-label {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #6b7280;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-value {
|
||||||
|
font-size: 16px; /* 增大字体 */
|
||||||
|
color: #059669;
|
||||||
|
font-weight: 500;
|
||||||
|
padding: 4px 12px;
|
||||||
|
background-color: #d1fae5;
|
||||||
|
border-radius: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 客观指标样式 */
|
||||||
|
.objective-section {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
|
||||||
|
.ant-card-body {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #111827;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
margin-top: 0;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
border-bottom: 2px solid #f3f4f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 12px;
|
||||||
|
background-color: #f9fafb;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid #e5e7eb;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
|
||||||
|
.metric-label {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #6b7280;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metric-value {
|
||||||
|
font-size: 16px;
|
||||||
|
color: #111827;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 主观指标样式 */
|
||||||
|
.subjective-section {
|
||||||
|
// margin-bottom: 10px;
|
||||||
|
|
||||||
|
.subjective-card {
|
||||||
|
height: auto;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
|
||||||
|
.ant-card-body {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #111827;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
margin-top: 0;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
border-bottom: 2px solid #f3f4f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rating-section {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding: 12px;
|
||||||
|
background-color: #f9fafb;
|
||||||
|
border-radius: 6px;
|
||||||
|
|
||||||
|
.rating-label {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #374151;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rating-value {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #111827;
|
||||||
|
font-weight: 600;
|
||||||
|
background-color: #2d5cf6;
|
||||||
|
color: white;
|
||||||
|
padding: 2px 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment-section {
|
||||||
|
.comment-label {
|
||||||
|
display: block;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #6b7280;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-input {
|
||||||
|
font-size: 14px;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 2px solid #e5e7eb;
|
||||||
|
padding: 12px;
|
||||||
|
min-height: 120px; /* 增加最小高度 */
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
border-color: #2d5cf6;
|
||||||
|
box-shadow: 0 0 0 3px rgba(45, 92, 246, 0.1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 操作按钮样式 */
|
||||||
|
.action-section {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
gap: 16px;
|
||||||
|
// margin-top: 32px;
|
||||||
|
// padding-top: 24px;
|
||||||
|
// border-top: 2px solid #f3f4f6;
|
||||||
|
|
||||||
|
.ant-btn {
|
||||||
|
padding: 12px 32px;
|
||||||
|
height: auto;
|
||||||
|
font-size: 14px;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-btn-primary {
|
||||||
|
background-color: #2d5cf6;
|
||||||
|
border-color: #2d5cf6;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #1d4ed8;
|
||||||
|
border-color: #1d4ed8;
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 4px 12px rgba(45, 92, 246, 0.3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-btn:not(.ant-btn-primary) {
|
||||||
|
border: 2px solid #e5e7eb;
|
||||||
|
color: #374151;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-color: #d1d5db;
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 响应式样式 */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.performance-assess-page {
|
||||||
|
padding: 16px;
|
||||||
|
max-height: 90vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-card {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
|
||||||
|
.ant-card-body {
|
||||||
|
padding: 16px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.employee-section {
|
||||||
|
.employee-info {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 16px;
|
||||||
|
|
||||||
|
.employee-details {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plan-info {
|
||||||
|
width: 100%;
|
||||||
|
min-width: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.subjective-section {
|
||||||
|
.ant-col {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-section {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
|
||||||
|
.ant-btn {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.objective-section {
|
||||||
|
.ant-row {
|
||||||
|
.ant-col {
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 自定义Rate组件样式 */
|
||||||
|
.ant-rate {
|
||||||
|
font-size: 18px;
|
||||||
|
|
||||||
|
.ant-rate-star {
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-rate-star-full .ant-rate-star-first,
|
||||||
|
.ant-rate-star-full .ant-rate-star-second {
|
||||||
|
color: #faad14;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Firefox 滚动条样式 */
|
||||||
|
.performance-assess-page {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: #c1c1c1 #f1f1f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 输入框聚焦效果增强 */
|
||||||
|
.ant-input:focus,
|
||||||
|
.ant-select-focused .ant-select-selector {
|
||||||
|
border-color: #2d5cf6;
|
||||||
|
box-shadow: 0 0 0 3px rgba(45, 92, 246, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 卡片内容区域滚动优化 */
|
||||||
|
.ant-card-body {
|
||||||
|
overflow: hidden; /* 防止内容溢出 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 长文本内容滚动 */
|
||||||
|
.comment-section .ant-input {
|
||||||
|
resize: vertical; /* 允许垂直调整大小 */
|
||||||
|
max-height: 200px; /* 限制最大高度 */
|
||||||
|
overflow-y: auto; /* 超出时显示滚动条 */
|
||||||
}
|
}
|
@ -1,10 +1,523 @@
|
|||||||
@import '~@/utils/utils.less';
|
@import '~@/utils/utils.less';
|
||||||
|
|
||||||
.frameContent {
|
.staffInfoContainer {
|
||||||
width: 100%;
|
min-height: 100vh;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
border: none;
|
// background-color: #f5f6fa;
|
||||||
display: block;
|
|
||||||
margin: 0;
|
.announcementBar {
|
||||||
padding: 0;
|
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: 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;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #e8e8e8;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
||||||
|
|
||||||
|
.ant-card-body {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 搜索表单容器样式 */
|
||||||
|
.searchFormContainer {
|
||||||
|
.searchForm {
|
||||||
|
.ant-form-item {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
|
||||||
|
.ant-form-item-label {
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333;
|
||||||
|
|
||||||
|
label {
|
||||||
|
color: #333 !important;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-input,
|
||||||
|
.ant-select-selector,
|
||||||
|
.ant-picker {
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid #d9d9d9;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-color: #4c7bff;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&.ant-select-focused .ant-select-selector,
|
||||||
|
&.ant-picker-focused {
|
||||||
|
border-color: #2d5cf6;
|
||||||
|
box-shadow: 0 0 0 2px rgba(45, 92, 246, 0.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-select-selection-placeholder,
|
||||||
|
.ant-input::placeholder,
|
||||||
|
.ant-picker-input input::placeholder {
|
||||||
|
color: #bfbfbf;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 搜索按钮样式 */
|
||||||
|
.searchButton {
|
||||||
|
background: linear-gradient(135deg, #2d5cf6 0%, #4c7bff 100%);
|
||||||
|
border: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
color: white;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
box-shadow: 0 2px 8px rgba(45, 92, 246, 0.3);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
height: 32px;
|
||||||
|
padding: 0 16px;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
background: linear-gradient(135deg, #4c7bff 0%, #6b8fff 100%);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 4px 12px rgba(45, 92, 246, 0.4);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 重置按钮样式 */
|
||||||
|
.resetButton {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #d9d9d9;
|
||||||
|
color: #666;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
height: 32px;
|
||||||
|
padding: 0 16px;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
border-color: #4c7bff;
|
||||||
|
color: #2d5cf6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.anticon {
|
||||||
|
color: #ff7875;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 展开按钮样式 */
|
||||||
|
.expandButton {
|
||||||
|
color: #2d5cf6;
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 0 8px;
|
||||||
|
height: 32px;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: #4c7bff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.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);
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainContent {
|
||||||
|
// padding: 12px;
|
||||||
|
|
||||||
|
.contentCard {
|
||||||
|
border: none !important;
|
||||||
|
.ant-card-head {
|
||||||
|
.ant-card-head-title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.actionBar {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
|
||||||
|
.totalInfo {
|
||||||
|
color: #666;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
: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 PerformanceAdd 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 PerformanceAdd;
|
@ -0,0 +1,222 @@
|
|||||||
|
import React, { useState } from 'react';
|
||||||
|
import { Button, Col, Form, Input, Row, message, Select, Space, InputNumber } from 'antd';
|
||||||
|
import { ClearOutlined, SearchOutlined, ExpandOutlined, CompressOutlined, UserOutlined, PhoneOutlined, IdcardOutlined, TeamOutlined } from '@ant-design/icons';
|
||||||
|
import styles from "../PerformanceList.less";
|
||||||
|
|
||||||
|
const FormItem = Form.Item;
|
||||||
|
const { Option } = Select;
|
||||||
|
const PerformanceRenderSimpleForm = (props) => {
|
||||||
|
const [form] = Form.useForm();
|
||||||
|
const [expandForm, setExpandForm] = useState(false);
|
||||||
|
const { submitButtons, handleSearch, handleFormReset, toggleForm, params } = props;
|
||||||
|
|
||||||
|
React.useEffect(() => {
|
||||||
|
form.setFieldsValue({
|
||||||
|
name: params?.name,
|
||||||
|
phone: params?.phone,
|
||||||
|
idCard: params?.idCard,
|
||||||
|
department: params?.department,
|
||||||
|
gender: params?.gender,
|
||||||
|
ageMin: params?.ageMin,
|
||||||
|
ageMax: params?.ageMax,
|
||||||
|
performanceStatus: params?.performanceStatus,
|
||||||
|
});
|
||||||
|
}, [params]);
|
||||||
|
|
||||||
|
const onFinish = values => {
|
||||||
|
const searchParams = {
|
||||||
|
...values,
|
||||||
|
// 年龄范围验证
|
||||||
|
ageMin: values.ageMin,
|
||||||
|
ageMax: values.ageMax,
|
||||||
|
};
|
||||||
|
|
||||||
|
// 验证年龄范围
|
||||||
|
if (values.ageMin && values.ageMax && values.ageMin > values.ageMax) {
|
||||||
|
message.error("最小年龄不能大于最大年龄!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
handleSearch && handleSearch(searchParams);
|
||||||
|
};
|
||||||
|
|
||||||
|
const myhandleFormReset = () => {
|
||||||
|
form.resetFields();
|
||||||
|
handleFormReset && handleFormReset();
|
||||||
|
};
|
||||||
|
|
||||||
|
const toggleExpandForm = () => {
|
||||||
|
setExpandForm(!expandForm);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={styles.searchFormContainer}>
|
||||||
|
<Form
|
||||||
|
form={form}
|
||||||
|
onFinish={onFinish}
|
||||||
|
layout="vertical"
|
||||||
|
className={styles.searchForm}
|
||||||
|
>
|
||||||
|
<Row gutter={16}>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
name="name"
|
||||||
|
label="姓名"
|
||||||
|
>
|
||||||
|
<Input
|
||||||
|
placeholder="请输入姓名"
|
||||||
|
allowClear
|
||||||
|
prefix={<UserOutlined />}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
name="phone"
|
||||||
|
label="电话"
|
||||||
|
>
|
||||||
|
<Input
|
||||||
|
placeholder="请输入电话"
|
||||||
|
allowClear
|
||||||
|
prefix={<PhoneOutlined />}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
name="idCard"
|
||||||
|
label="身份证号"
|
||||||
|
>
|
||||||
|
<Input
|
||||||
|
placeholder="请输入身份证号"
|
||||||
|
allowClear
|
||||||
|
prefix={<IdcardOutlined />}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item label=" " colon={false}>
|
||||||
|
<Space size="middle">
|
||||||
|
<Button
|
||||||
|
type="primary"
|
||||||
|
htmlType="submit"
|
||||||
|
icon={<SearchOutlined />}
|
||||||
|
className={styles.searchButton}
|
||||||
|
>
|
||||||
|
查询
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={myhandleFormReset}
|
||||||
|
icon={<ClearOutlined />}
|
||||||
|
className={styles.resetButton}
|
||||||
|
>
|
||||||
|
重置
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
onClick={toggleExpandForm}
|
||||||
|
icon={expandForm ? <CompressOutlined /> : <ExpandOutlined />}
|
||||||
|
className={styles.expandButton}
|
||||||
|
>
|
||||||
|
{expandForm ? '收起' : '展开'}
|
||||||
|
</Button>
|
||||||
|
</Space>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
|
||||||
|
{/* 展开的表单项 */}
|
||||||
|
{expandForm && (
|
||||||
|
<Row gutter={16}>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
name="department"
|
||||||
|
label="部门"
|
||||||
|
>
|
||||||
|
<Select
|
||||||
|
placeholder="请选择部门"
|
||||||
|
allowClear
|
||||||
|
suffixIcon={<TeamOutlined />}
|
||||||
|
>
|
||||||
|
<Option value="技术部">技术部</Option>
|
||||||
|
<Option value="产品部">产品部</Option>
|
||||||
|
<Option value="运营部">运营部</Option>
|
||||||
|
<Option value="财务部">财务部</Option>
|
||||||
|
<Option value="人事部">人事部</Option>
|
||||||
|
<Option value="市场部">市场部</Option>
|
||||||
|
<Option value="销售部">销售部</Option>
|
||||||
|
</Select>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
name="gender"
|
||||||
|
label="性别"
|
||||||
|
>
|
||||||
|
<Select placeholder="请选择性别" allowClear>
|
||||||
|
<Option value="男">男</Option>
|
||||||
|
<Option value="女">女</Option>
|
||||||
|
</Select>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
label="年龄范围"
|
||||||
|
>
|
||||||
|
<Input.Group compact>
|
||||||
|
<Form.Item
|
||||||
|
name="ageMin"
|
||||||
|
noStyle
|
||||||
|
>
|
||||||
|
<InputNumber
|
||||||
|
placeholder="最小年龄"
|
||||||
|
min={18}
|
||||||
|
max={65}
|
||||||
|
style={{ width: '48%' }}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
<span style={{
|
||||||
|
display: 'inline-block',
|
||||||
|
width: '4%',
|
||||||
|
textAlign: 'center',
|
||||||
|
lineHeight: '32px'
|
||||||
|
}}>
|
||||||
|
-
|
||||||
|
</span>
|
||||||
|
<Form.Item
|
||||||
|
name="ageMax"
|
||||||
|
noStyle
|
||||||
|
>
|
||||||
|
<InputNumber
|
||||||
|
placeholder="最大年龄"
|
||||||
|
min={18}
|
||||||
|
max={65}
|
||||||
|
style={{ width: '48%' }}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
</Input.Group>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
name="performanceStatus"
|
||||||
|
label="绩效状态"
|
||||||
|
>
|
||||||
|
<Select placeholder="请选择绩效状态" allowClear>
|
||||||
|
<Option value="excellent">优秀</Option>
|
||||||
|
<Option value="good">良好</Option>
|
||||||
|
<Option value="qualified">合格</Option>
|
||||||
|
<Option value="unqualified">不合格</Option>
|
||||||
|
<Option value="pending">待评估</Option>
|
||||||
|
</Select>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
)}
|
||||||
|
</Form>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
export default PerformanceRenderSimpleForm;
|
@ -1,10 +1,830 @@
|
|||||||
@import '~@/utils/utils.less';
|
@import '~@/utils/utils.less';
|
||||||
|
|
||||||
.frameContent {
|
.dataDictContainer,
|
||||||
width: 100%;
|
.staffInfoContainer {
|
||||||
height: 100vh;
|
min-height: 90vh;
|
||||||
border: none;
|
height: 90vh;
|
||||||
display: block;
|
// background-color: #f5f6fa;
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
.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: 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;
|
||||||
|
|
||||||
|
/* 搜索框样式 */
|
||||||
|
.tree-search {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
|
||||||
|
.ant-input-affix-wrapper {
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #d9d9d9;
|
||||||
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-color: #40a9ff;
|
||||||
|
box-shadow: 0 2px 8px rgba(24, 144, 255, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus-within {
|
||||||
|
border-color: #1890ff;
|
||||||
|
box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-input {
|
||||||
|
border: none;
|
||||||
|
box-shadow: none;
|
||||||
|
font-size: 13px;
|
||||||
|
|
||||||
|
&::placeholder {
|
||||||
|
color: #bfbfbf;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-input-prefix {
|
||||||
|
color: #bfbfbf;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.treeHeader {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.treeContainer {
|
||||||
|
height: 480px; /* 减少高度为搜索框留空间 */
|
||||||
|
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: 6px;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
padding: 6px 10px;
|
||||||
|
margin: 1px 0;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
|
||||||
|
transform: translateX(3px);
|
||||||
|
box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.ant-tree-node-selected {
|
||||||
|
background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%) !important;
|
||||||
|
box-shadow: 0 3px 12px rgba(24, 144, 255, 0.25);
|
||||||
|
border-left: 3px solid #1890ff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-tree-iconEle {
|
||||||
|
margin-right: 10px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-tree-title {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 展开/收起图标样式 */
|
||||||
|
.ant-tree-switcher {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
.ant-tree-switcher-icon {
|
||||||
|
color: #8c8c8c;
|
||||||
|
font-size: 12px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #1890ff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Tree节点标题样式 */
|
||||||
|
.tree-node-title {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
.anticon {
|
||||||
|
font-size: 16px;
|
||||||
|
margin-right: 8px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
background: rgba(24, 144, 255, 0.06);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(24, 144, 255, 0.12);
|
||||||
|
transform: scale(1.08);
|
||||||
|
box-shadow: 0 2px 8px rgba(24, 144, 255, 0.15);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-title {
|
||||||
|
flex: 1;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #333;
|
||||||
|
font-weight: 500;
|
||||||
|
transition: color 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-count {
|
||||||
|
color: #999;
|
||||||
|
font-size: 11px;
|
||||||
|
margin-left: auto;
|
||||||
|
background: #f5f5f5;
|
||||||
|
padding: 2px 8px;
|
||||||
|
border-radius: 10px;
|
||||||
|
min-width: 20px;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 500;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #e6f7ff;
|
||||||
|
color: #1890ff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.searchCard {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 1px solid #e8e8e8;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
||||||
|
|
||||||
|
.ant-card-body {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 搜索表单容器样式 */
|
||||||
|
.searchFormContainer {
|
||||||
|
.searchForm {
|
||||||
|
.ant-form-item {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
|
||||||
|
.ant-form-item-label {
|
||||||
|
font-weight: 500;
|
||||||
|
color: #333;
|
||||||
|
|
||||||
|
label {
|
||||||
|
color: #333 !important;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-input,
|
||||||
|
.ant-select-selector,
|
||||||
|
.ant-picker {
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid #d9d9d9;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-color: #4c7bff;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus,
|
||||||
|
&.ant-select-focused .ant-select-selector,
|
||||||
|
&.ant-picker-focused {
|
||||||
|
border-color: #2d5cf6;
|
||||||
|
box-shadow: 0 0 0 2px rgba(45, 92, 246, 0.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-select-selection-placeholder,
|
||||||
|
.ant-input::placeholder,
|
||||||
|
.ant-picker-input input::placeholder {
|
||||||
|
color: #bfbfbf;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 搜索按钮样式 */
|
||||||
|
.searchButton {
|
||||||
|
background: linear-gradient(135deg, #2d5cf6 0%, #4c7bff 100%);
|
||||||
|
border: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
color: white;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
box-shadow: 0 2px 8px rgba(45, 92, 246, 0.3);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
height: 32px;
|
||||||
|
padding: 0 16px;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
background: linear-gradient(135deg, #4c7bff 0%, #6b8fff 100%);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 4px 12px rgba(45, 92, 246, 0.4);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 重置按钮样式 */
|
||||||
|
.resetButton {
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #d9d9d9;
|
||||||
|
color: #666;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
height: 32px;
|
||||||
|
padding: 0 16px;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
border-color: #4c7bff;
|
||||||
|
color: #2d5cf6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.anticon {
|
||||||
|
color: #ff7875;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 展开按钮样式 */
|
||||||
|
.expandButton {
|
||||||
|
color: #2d5cf6;
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 0 8px;
|
||||||
|
height: 32px;
|
||||||
|
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
color: #4c7bff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.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);
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.mainContent {
|
||||||
|
// padding: 12px;
|
||||||
|
|
||||||
|
.contentCard {
|
||||||
|
border: none !important;
|
||||||
|
.ant-card-head {
|
||||||
|
.ant-card-head-title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.actionBar {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
|
||||||
|
.totalInfo {
|
||||||
|
color: #666;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
:global {
|
||||||
|
.ant-card-body {
|
||||||
|
padding: 0 24px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 元数据域信息区域样式 */
|
||||||
|
.metadataInfoSection {
|
||||||
|
background-color: #f9fafb;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 16px;
|
||||||
|
margin: 12px 0;
|
||||||
|
border: 1px solid #e5e7eb;
|
||||||
|
|
||||||
|
.metadataField {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.metadataLabel {
|
||||||
|
display: block;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #374151;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metadataInput,
|
||||||
|
.metadataTextarea {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #d1d5db;
|
||||||
|
background-color: #ffffff;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
border-color: #2d5cf6;
|
||||||
|
box-shadow: 0 0 0 1px #2d5cf6;
|
||||||
|
}
|
||||||
|
|
||||||
|
&[readonly] {
|
||||||
|
background-color: #f9fafb;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.metadataInput {
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metadataTextarea {
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
resize: vertical;
|
||||||
|
min-height: 60px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 表格卡片样式优化 */
|
||||||
|
.tableCard {
|
||||||
|
.ant-card-body {
|
||||||
|
padding: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-card-head {
|
||||||
|
border-bottom: 1px solid #f0f0f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-card-head-title {
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #262626;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 树形卡片样式 */
|
||||||
|
.treeCard {
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.ant-card-body {
|
||||||
|
padding: 16px;
|
||||||
|
height: calc(100% - 57px);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-card-head {
|
||||||
|
border-bottom: 1px solid #f0f0f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-card-head-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #262626;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 树容器样式 */
|
||||||
|
.treeContainer {
|
||||||
|
height: calc(100% - 50px);
|
||||||
|
overflow-y: auto;
|
||||||
|
padding-top: 8px;
|
||||||
|
|
||||||
|
/* 自定义滚动条 */
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
width: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
background: #f1f5f9;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background: #cbd5e1;
|
||||||
|
border-radius: 3px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #94a3b8;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 树搜索样式 */
|
||||||
|
.tree-search {
|
||||||
|
margin-bottom: 12px;
|
||||||
|
|
||||||
|
.ant-input {
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #d1d5db;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
border-color: #2d5cf6;
|
||||||
|
box-shadow: 0 0 0 1px #2d5cf6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-input-prefix {
|
||||||
|
color: #9ca3af;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 树节点样式 */
|
||||||
|
.orgTree {
|
||||||
|
.ant-tree-node-content-wrapper {
|
||||||
|
border-radius: 4px;
|
||||||
|
transition: all 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: #f3f4f6;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.ant-tree-node-selected {
|
||||||
|
background-color: #dbeafe !important;
|
||||||
|
color: #2d5cf6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-tree-switcher {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-tree-iconEle {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tree-node-title {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.node-title {
|
||||||
|
margin-left: 8px;
|
||||||
|
font-size: 14px;
|
||||||
|
color: #374151;
|
||||||
|
}
|
||||||
|
|
||||||
|
.node-count {
|
||||||
|
margin-left: 4px;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #9ca3af;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 响应式样式 */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.metadataInfoSection {
|
||||||
|
padding: 12px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
|
||||||
|
.metadataField {
|
||||||
|
margin-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metadataLabel {
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.metadataInput,
|
||||||
|
.metadataTextarea {
|
||||||
|
font-size: 13px;
|
||||||
|
padding: 6px 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.tableCard .ant-card-body {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.treeCard .ant-card-body {
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@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,222 @@
|
|||||||
|
import React, { useState } from 'react';
|
||||||
|
import { Button, Col, Form, Input, Row, message, Select, Space, InputNumber } from 'antd';
|
||||||
|
import { ClearOutlined, SearchOutlined, ExpandOutlined, CompressOutlined, UserOutlined, PhoneOutlined, IdcardOutlined, TeamOutlined } from '@ant-design/icons';
|
||||||
|
import styles from "../PerformanceList.less";
|
||||||
|
|
||||||
|
const FormItem = Form.Item;
|
||||||
|
const { Option } = Select;
|
||||||
|
const PerformanceRenderSimpleForm = (props) => {
|
||||||
|
const [form] = Form.useForm();
|
||||||
|
const [expandForm, setExpandForm] = useState(false);
|
||||||
|
const { submitButtons, handleSearch, handleFormReset, toggleForm, params } = props;
|
||||||
|
|
||||||
|
React.useEffect(() => {
|
||||||
|
form.setFieldsValue({
|
||||||
|
name: params?.name,
|
||||||
|
phone: params?.phone,
|
||||||
|
idCard: params?.idCard,
|
||||||
|
department: params?.department,
|
||||||
|
gender: params?.gender,
|
||||||
|
ageMin: params?.ageMin,
|
||||||
|
ageMax: params?.ageMax,
|
||||||
|
performanceStatus: params?.performanceStatus,
|
||||||
|
});
|
||||||
|
}, [params]);
|
||||||
|
|
||||||
|
const onFinish = values => {
|
||||||
|
const searchParams = {
|
||||||
|
...values,
|
||||||
|
// 年龄范围验证
|
||||||
|
ageMin: values.ageMin,
|
||||||
|
ageMax: values.ageMax,
|
||||||
|
};
|
||||||
|
|
||||||
|
// 验证年龄范围
|
||||||
|
if (values.ageMin && values.ageMax && values.ageMin > values.ageMax) {
|
||||||
|
message.error("最小年龄不能大于最大年龄!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
handleSearch && handleSearch(searchParams);
|
||||||
|
};
|
||||||
|
|
||||||
|
const myhandleFormReset = () => {
|
||||||
|
form.resetFields();
|
||||||
|
handleFormReset && handleFormReset();
|
||||||
|
};
|
||||||
|
|
||||||
|
const toggleExpandForm = () => {
|
||||||
|
setExpandForm(!expandForm);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={styles.searchFormContainer}>
|
||||||
|
<Form
|
||||||
|
form={form}
|
||||||
|
onFinish={onFinish}
|
||||||
|
layout="vertical"
|
||||||
|
className={styles.searchForm}
|
||||||
|
>
|
||||||
|
<Row gutter={16}>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
name="name"
|
||||||
|
label="姓名"
|
||||||
|
>
|
||||||
|
<Input
|
||||||
|
placeholder="请输入姓名"
|
||||||
|
allowClear
|
||||||
|
prefix={<UserOutlined />}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
name="phone"
|
||||||
|
label="电话"
|
||||||
|
>
|
||||||
|
<Input
|
||||||
|
placeholder="请输入电话"
|
||||||
|
allowClear
|
||||||
|
prefix={<PhoneOutlined />}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
name="idCard"
|
||||||
|
label="身份证号"
|
||||||
|
>
|
||||||
|
<Input
|
||||||
|
placeholder="请输入身份证号"
|
||||||
|
allowClear
|
||||||
|
prefix={<IdcardOutlined />}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item label=" " colon={false}>
|
||||||
|
<Space size="middle">
|
||||||
|
<Button
|
||||||
|
type="primary"
|
||||||
|
htmlType="submit"
|
||||||
|
icon={<SearchOutlined />}
|
||||||
|
className={styles.searchButton}
|
||||||
|
>
|
||||||
|
查询
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
onClick={myhandleFormReset}
|
||||||
|
icon={<ClearOutlined />}
|
||||||
|
className={styles.resetButton}
|
||||||
|
>
|
||||||
|
重置
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
type="link"
|
||||||
|
onClick={toggleExpandForm}
|
||||||
|
icon={expandForm ? <CompressOutlined /> : <ExpandOutlined />}
|
||||||
|
className={styles.expandButton}
|
||||||
|
>
|
||||||
|
{expandForm ? '收起' : '展开'}
|
||||||
|
</Button>
|
||||||
|
</Space>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
|
||||||
|
{/* 展开的表单项 */}
|
||||||
|
{expandForm && (
|
||||||
|
<Row gutter={16}>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
name="department"
|
||||||
|
label="部门"
|
||||||
|
>
|
||||||
|
<Select
|
||||||
|
placeholder="请选择部门"
|
||||||
|
allowClear
|
||||||
|
suffixIcon={<TeamOutlined />}
|
||||||
|
>
|
||||||
|
<Option value="技术部">技术部</Option>
|
||||||
|
<Option value="产品部">产品部</Option>
|
||||||
|
<Option value="运营部">运营部</Option>
|
||||||
|
<Option value="财务部">财务部</Option>
|
||||||
|
<Option value="人事部">人事部</Option>
|
||||||
|
<Option value="市场部">市场部</Option>
|
||||||
|
<Option value="销售部">销售部</Option>
|
||||||
|
</Select>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
name="gender"
|
||||||
|
label="性别"
|
||||||
|
>
|
||||||
|
<Select placeholder="请选择性别" allowClear>
|
||||||
|
<Option value="男">男</Option>
|
||||||
|
<Option value="女">女</Option>
|
||||||
|
</Select>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
label="年龄范围"
|
||||||
|
>
|
||||||
|
<Input.Group compact>
|
||||||
|
<Form.Item
|
||||||
|
name="ageMin"
|
||||||
|
noStyle
|
||||||
|
>
|
||||||
|
<InputNumber
|
||||||
|
placeholder="最小年龄"
|
||||||
|
min={18}
|
||||||
|
max={65}
|
||||||
|
style={{ width: '48%' }}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
<span style={{
|
||||||
|
display: 'inline-block',
|
||||||
|
width: '4%',
|
||||||
|
textAlign: 'center',
|
||||||
|
lineHeight: '32px'
|
||||||
|
}}>
|
||||||
|
-
|
||||||
|
</span>
|
||||||
|
<Form.Item
|
||||||
|
name="ageMax"
|
||||||
|
noStyle
|
||||||
|
>
|
||||||
|
<InputNumber
|
||||||
|
placeholder="最大年龄"
|
||||||
|
min={18}
|
||||||
|
max={65}
|
||||||
|
style={{ width: '48%' }}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
|
</Input.Group>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
<Col span={6}>
|
||||||
|
<Form.Item
|
||||||
|
name="performanceStatus"
|
||||||
|
label="绩效状态"
|
||||||
|
>
|
||||||
|
<Select placeholder="请选择绩效状态" allowClear>
|
||||||
|
<Option value="excellent">优秀</Option>
|
||||||
|
<Option value="good">良好</Option>
|
||||||
|
<Option value="qualified">合格</Option>
|
||||||
|
<Option value="unqualified">不合格</Option>
|
||||||
|
<Option value="pending">待评估</Option>
|
||||||
|
</Select>
|
||||||
|
</Form.Item>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
)}
|
||||||
|
</Form>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
export default PerformanceRenderSimpleForm;
|
@ -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 PerformanceRuleset 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 PerformanceRuleset;
|
Loading…
Reference in New Issue