应急消防点页面
parent
6101a571db
commit
50daab4c6d
@ -1,296 +1,611 @@
|
||||
.container {
|
||||
padding: 20px;
|
||||
background: #fff;
|
||||
// 整体页面容器
|
||||
.pageContainer {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
|
||||
.titleBar {
|
||||
width: 3px;
|
||||
height: 16px;
|
||||
background: #2E4CD4;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
padding: 0 10px;
|
||||
|
||||
.toolbarLeft {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.toolbarRight {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
// 图例样式
|
||||
.legend {
|
||||
padding: 20px;
|
||||
background: #F0F2F5;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
overflow: hidden;
|
||||
|
||||
.legendItem {
|
||||
// 顶部区域 (60%高度)
|
||||
.topSection {
|
||||
height: 60%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.legendDot {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 2px;
|
||||
display: inline-block;
|
||||
|
||||
&.onduty {
|
||||
background: #D4F4DD;
|
||||
}
|
||||
|
||||
&.leave {
|
||||
background: #FFE7BA;
|
||||
}
|
||||
|
||||
&.vacation {
|
||||
background: #FFD6E0;
|
||||
gap: 20px;
|
||||
|
||||
// 左侧排班表区域 (55%宽度)
|
||||
.scheduleSection {
|
||||
width: 55%;
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
.sectionHeader {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
flex-shrink: 0;
|
||||
|
||||
.titleBar {
|
||||
width: 3px;
|
||||
height: 16px;
|
||||
background: #2E4CD4;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.sectionTitle {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
// 控制栏
|
||||
.toolbar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
padding: 0 8px;
|
||||
flex-shrink: 0;
|
||||
|
||||
.toolbarLeft {
|
||||
flex: 1;
|
||||
|
||||
.legend {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
|
||||
.legendItem {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
gap: 6px;
|
||||
|
||||
.legendDot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 2px;
|
||||
display: inline-block;
|
||||
|
||||
&.onduty {
|
||||
background: #D4F4DD;
|
||||
}
|
||||
|
||||
&.leave {
|
||||
background: #FFE7BA;
|
||||
}
|
||||
|
||||
&.vacation {
|
||||
background: #FFD6E0;
|
||||
}
|
||||
|
||||
&.none {
|
||||
background: #E8E8E8;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.toolbarRight {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
|
||||
.dateRange {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.weekNav {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
|
||||
.navButton {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
background: #fff;
|
||||
color: #666;
|
||||
height: 28px;
|
||||
font-size: 12px;
|
||||
padding: 0 12px;
|
||||
border-right: 1px solid #d9d9d9;
|
||||
|
||||
&:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: #f5f5f5;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.navButtonActive {
|
||||
background: #2E4CD4 !important;
|
||||
color: #fff !important;
|
||||
border: none;
|
||||
|
||||
&:hover {
|
||||
background: #1e3bb8 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 排班表格
|
||||
.scheduleTable {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
border: 1px solid #E5E5E5;
|
||||
border-radius: 4px;
|
||||
|
||||
.table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
|
||||
th, td {
|
||||
border: 1px solid #E5E5E5;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
thead {
|
||||
background: #FAFAFA;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
|
||||
th {
|
||||
padding: 10px 6px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
td {
|
||||
padding: 0;
|
||||
height: 100px;
|
||||
}
|
||||
}
|
||||
|
||||
// 第一列(班次列)
|
||||
.shiftHeader {
|
||||
width: 100px;
|
||||
background: #FAFAFA;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.shiftCell {
|
||||
background: #FAFAFA;
|
||||
padding: 12px 8px !important;
|
||||
|
||||
.shiftName {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.shiftTime {
|
||||
font-size: 11px;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
|
||||
// 日期表头
|
||||
.dayHeader {
|
||||
width: calc((100% - 100px) / 7);
|
||||
|
||||
.dayName {
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.dayDate {
|
||||
font-size: 11px;
|
||||
color: #999;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
// 排班单元格
|
||||
.scheduleCell {
|
||||
position: relative;
|
||||
padding: 0 !important;
|
||||
|
||||
&.bg_onduty {
|
||||
background: #D4F4DD;
|
||||
}
|
||||
|
||||
&.bg_leave {
|
||||
background: #FFE7BA;
|
||||
}
|
||||
|
||||
&.bg_vacation {
|
||||
background: #FFD6E0;
|
||||
}
|
||||
|
||||
&.bg_none {
|
||||
background: #F5F5F5;
|
||||
}
|
||||
|
||||
&.bg_mixed {
|
||||
background: linear-gradient(135deg, #D4F4DD 50%, #FFD6E0 50%);
|
||||
}
|
||||
|
||||
.emptyCell {
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.cellContent {
|
||||
width: 100%;
|
||||
height: 100px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
padding: 8px;
|
||||
|
||||
.personItem {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
|
||||
.personName {
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.statusTag {
|
||||
font-size: 10px;
|
||||
padding: 2px 5px;
|
||||
border-radius: 2px;
|
||||
|
||||
&.onduty {
|
||||
color: #52C41A;
|
||||
}
|
||||
|
||||
&.leave {
|
||||
color: #FA8C16;
|
||||
}
|
||||
|
||||
&.vacation {
|
||||
color: #F5222D;
|
||||
}
|
||||
|
||||
&.none {
|
||||
color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.none {
|
||||
background: #E8E8E8;
|
||||
// 右侧区域 (45%宽度)
|
||||
.rightSection {
|
||||
width: 45%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
overflow: hidden;
|
||||
|
||||
// 统计卡片区域
|
||||
.statsCards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 12px;
|
||||
flex-shrink: 0;
|
||||
|
||||
.statCard {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
|
||||
&:nth-child(1) {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
}
|
||||
|
||||
&:nth-child(2) {
|
||||
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
||||
}
|
||||
|
||||
&:nth-child(3) {
|
||||
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
|
||||
}
|
||||
|
||||
&:nth-child(4) {
|
||||
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
|
||||
}
|
||||
|
||||
.statValue {
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 4px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.statLabel {
|
||||
font-size: 12px;
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 排班设置面板
|
||||
.settingPanel {
|
||||
flex: 1;
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.panelHeader {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
flex-shrink: 0;
|
||||
|
||||
.titleBar {
|
||||
width: 3px;
|
||||
height: 16px;
|
||||
background: #2E4CD4;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.panelTitle {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
// 设置表单
|
||||
.settingForm {
|
||||
margin-bottom: 20px;
|
||||
flex-shrink: 0;
|
||||
|
||||
.formItem {
|
||||
margin-bottom: 16px;
|
||||
|
||||
.formLabel {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.formInput {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.formActions {
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
// 可用人员列表
|
||||
.availablePersons {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
.personsHeader {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 12px;
|
||||
flex-shrink: 0;
|
||||
|
||||
.personsTitle {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.personsList {
|
||||
flex: 1;
|
||||
overflow: auto;
|
||||
|
||||
.personCard {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
border: 1px solid #E5E5E5;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 8px;
|
||||
transition: all 0.3s;
|
||||
|
||||
&:hover {
|
||||
border-color: #2E4CD4;
|
||||
box-shadow: 0 2px 8px rgba(46, 76, 212, 0.1);
|
||||
}
|
||||
|
||||
.personInfo {
|
||||
flex: 1;
|
||||
|
||||
.personName {
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.personMeta {
|
||||
font-size: 11px;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
|
||||
.addButton {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 日期范围和周导航
|
||||
.dateRange {
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.weekNav {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
border: 1px solid #d9d9d9;
|
||||
border-radius: 2px;
|
||||
overflow: hidden;
|
||||
|
||||
.navButton {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
// 底部区域 (40%高度)
|
||||
.bottomSection {
|
||||
height: 40%;
|
||||
background: #fff;
|
||||
color: #666;
|
||||
height: 28px;
|
||||
font-size: 13px;
|
||||
border-right: 1px solid #d9d9d9;
|
||||
|
||||
&:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: #f5f5f5;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.navButtonActive {
|
||||
background: #2E4CD4 !important;
|
||||
color: #fff !important;
|
||||
border: none;
|
||||
|
||||
&:hover {
|
||||
background: #1e3bb8 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 表格样式
|
||||
.scheduleTable {
|
||||
width: 100%;
|
||||
overflow-x: auto;
|
||||
border: 1px solid #E5E5E5;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
table-layout: fixed;
|
||||
|
||||
th, td {
|
||||
border: 1px solid #E5E5E5;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
// 表头样式
|
||||
thead {
|
||||
background: #FAFAFA;
|
||||
|
||||
th {
|
||||
padding: 12px 8px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
tbody {
|
||||
td {
|
||||
padding: 0;
|
||||
height: 120px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 第一列(班次列)样式
|
||||
.shiftHeader {
|
||||
width: 140px;
|
||||
background: #FAFAFA;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.shiftCell {
|
||||
background: #FAFAFA;
|
||||
padding: 15px 10px !important;
|
||||
|
||||
.shiftName {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.shiftTime {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
|
||||
// 日期表头
|
||||
.dayHeader {
|
||||
width: calc((100% - 140px) / 7);
|
||||
|
||||
.dayName {
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.dayDate {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
font-weight: normal;
|
||||
}
|
||||
}
|
||||
|
||||
// 排班单元格
|
||||
.scheduleCell {
|
||||
position: relative;
|
||||
padding: 0 !important;
|
||||
|
||||
// 不同状态的背景色
|
||||
&.bg_onduty {
|
||||
background: #D4F4DD;
|
||||
}
|
||||
|
||||
&.bg_leave {
|
||||
background: #FFE7BA;
|
||||
}
|
||||
|
||||
&.bg_vacation {
|
||||
background: #FFD6E0;
|
||||
}
|
||||
|
||||
&.bg_none {
|
||||
background: #F5F5F5;
|
||||
}
|
||||
|
||||
&.bg_mixed {
|
||||
background: linear-gradient(135deg, #D4F4DD 50%, #FFD6E0 50%);
|
||||
}
|
||||
}
|
||||
|
||||
.emptyCell {
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
}
|
||||
|
||||
.cellContent {
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.personItem {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
|
||||
.personName {
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.statusTag {
|
||||
font-size: 11px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 2px;
|
||||
|
||||
&.onduty {
|
||||
color: #52C41A;
|
||||
}
|
||||
|
||||
&.leave {
|
||||
color: #FA8C16;
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
|
||||
.sectionHeader {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
flex-shrink: 0;
|
||||
|
||||
.titleBar {
|
||||
width: 3px;
|
||||
height: 16px;
|
||||
background: #2E4CD4;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.sectionTitle {
|
||||
margin: 0;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
&.vacation {
|
||||
color: #F5222D;
|
||||
.tableHeader {
|
||||
margin-bottom: 12px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
&.none {
|
||||
color: transparent;
|
||||
.personTable {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
|
||||
:global {
|
||||
.ant-table-wrapper {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.ant-spin-nested-loading {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.ant-spin-container {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.ant-table {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.ant-table-container {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.ant-table-body {
|
||||
flex: 1;
|
||||
overflow: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
.tableActions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 响应式
|
||||
@media screen and (max-width: 1400px) {
|
||||
.table {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.personName {
|
||||
font-size: 12px !important;
|
||||
}
|
||||
|
||||
.statusTag {
|
||||
font-size: 10px !important;
|
||||
@media screen and (max-width: 1600px) {
|
||||
.pageContainer {
|
||||
.topSection {
|
||||
.scheduleSection {
|
||||
.scheduleTable {
|
||||
.table {
|
||||
font-size: 11px;
|
||||
|
||||
tbody td {
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.scheduleCell {
|
||||
.emptyCell {
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.cellContent {
|
||||
height: 80px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rightSection {
|
||||
.statsCards {
|
||||
.statCard {
|
||||
padding: 12px;
|
||||
|
||||
.statValue {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.statLabel {
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,122 +1,165 @@
|
||||
.container {
|
||||
.containerYJXFD {
|
||||
padding: 20px;
|
||||
background: #f5f5f5;
|
||||
min-height: 100vh;
|
||||
background: #fff;
|
||||
height:100vh;
|
||||
}
|
||||
|
||||
.header {
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.titleBar {
|
||||
width: 4px;
|
||||
height: 20px;
|
||||
background: #1890ff;
|
||||
margin-right: 10px;
|
||||
}
|
||||
// background-color: pink;
|
||||
margin-bottom: 15px;
|
||||
|
||||
.titleBar {
|
||||
width: 3px;
|
||||
height: 16px;
|
||||
background: #2E4CD4;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
.title {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
}
|
||||
|
||||
.searchBar {
|
||||
background: #fff;
|
||||
padding: 20px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.searchLeft {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
margin-bottom: 10px;
|
||||
padding: 5px;
|
||||
|
||||
.searchRight {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.customButton {
|
||||
height: 30px !important;
|
||||
border-radius: 2px !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
}
|
||||
|
||||
.tableContainer {
|
||||
background: #fff;
|
||||
border-radius: 6px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.actionButtons {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.actionButtons .ant-btn-link {
|
||||
padding: 0;
|
||||
height: auto;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.actionButtons .ant-btn-link:hover {
|
||||
background: transparent;
|
||||
}
|
||||
.searchLeft {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
// 覆盖全局按钮样式
|
||||
:global(.ant-btn) {
|
||||
height: 28px !important;
|
||||
border-radius: 2px !important;
|
||||
.searchRight {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
:global(.ant-select) {
|
||||
.ant-select-selector {
|
||||
height: 30px !important;
|
||||
border-radius: 2px !important;
|
||||
// 自定义 Select 样式
|
||||
.customSelect {
|
||||
:global {
|
||||
.ant-select-selector {
|
||||
height: 30px !important;
|
||||
border-radius: 2px !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
|
||||
.ant-select-selection-search-input {
|
||||
height: 30px !important;
|
||||
}
|
||||
|
||||
.ant-select-selection-item,
|
||||
.ant-select-selection-placeholder {
|
||||
line-height: 30px !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
:global(.ant-input) {
|
||||
// 自定义 Input 样式
|
||||
.customInput {
|
||||
height: 30px !important;
|
||||
border-radius: 2px !important;
|
||||
}
|
||||
|
||||
:global(.ant-table) {
|
||||
.ant-table-thead > tr > th {
|
||||
background: #fafafa;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
// 自定义按钮样式
|
||||
.customButton {
|
||||
background-color: #2E4CD4 !important;
|
||||
border-color: #2E4CD4 !important;
|
||||
border-radius: 2px !important;
|
||||
height: 30px !important;
|
||||
width: 75px;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
|
||||
&:hover {
|
||||
background-color: #1e3bb8 !important;
|
||||
border-color: #1e3bb8 !important;
|
||||
}
|
||||
|
||||
.ant-table-tbody > tr:hover > td {
|
||||
background: #f5f5f5;
|
||||
&:focus {
|
||||
background-color: #2E4CD4 !important;
|
||||
border-color: #2E4CD4 !important;
|
||||
}
|
||||
}
|
||||
|
||||
:global(.ant-pagination) {
|
||||
margin-top: 16px;
|
||||
text-align: right;
|
||||
}
|
||||
// // 所有按钮统一样式
|
||||
// .ant-btn {
|
||||
// border-radius: 4px !important;
|
||||
// height: 28px !important;
|
||||
// display: flex !important;
|
||||
// align-items: center !important;
|
||||
// justify-content: center !important;
|
||||
// }
|
||||
|
||||
:global(.ant-pagination-item) {
|
||||
border-radius: 2px;
|
||||
.tableContainer {
|
||||
background: #fff;
|
||||
border-radius: 0px;
|
||||
overflow: hidden;
|
||||
|
||||
.actionButtons {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
font-size: 10px;
|
||||
justify-content: center;
|
||||
|
||||
.ant-btn-link {
|
||||
padding: 0;
|
||||
height: auto;
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
:global(.ant-pagination-prev),
|
||||
:global(.ant-pagination-next) {
|
||||
border-radius: 2px;
|
||||
// 表格样式优化
|
||||
.tableContainer {
|
||||
:global {
|
||||
.ant-table-thead > tr > th {
|
||||
background: #F5F5FA;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ant-table-tbody > tr > td {
|
||||
color: #666666;
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ant-table-tbody > tr:hover > td {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.ant-pagination {
|
||||
margin-top: 10px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
// 覆盖操作列按钮样式
|
||||
.ant-btn.ant-btn-sm {
|
||||
font-size: 13px !important;
|
||||
height: 20px !important;
|
||||
padding: 0px 4px !important;
|
||||
}
|
||||
|
||||
.ant-btn-link.ant-btn-sm {
|
||||
font-size: 13px !important;
|
||||
height: auto !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue