633 lines
11 KiB
CSS
633 lines
11 KiB
CSS
/* 基础样式 */
|
|
body {
|
|
font-family: "Microsoft YaHei", sans-serif;
|
|
background-color: #f5f7fa;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
background: white;
|
|
padding: 8px;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.current-row {
|
|
background-color: #f5f7fa !important;
|
|
font-weight: bold;
|
|
border-left: 3px solid #409eff;
|
|
}
|
|
|
|
.el-table-v2__row.current-row {
|
|
background-color: #f5f7fa !important;
|
|
}
|
|
|
|
.el-table-v2__row {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toolbar {
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.toolbar-batch {
|
|
margin-top: 0;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.toolbar-batch-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
}
|
|
|
|
.table-container {
|
|
height: calc(100vh - 220px) !important;
|
|
padding: 0 !important;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden !important;
|
|
flex: 1;
|
|
position: relative;
|
|
border: 1px solid #ebeef5;
|
|
border-radius: 8px;
|
|
background: white;
|
|
}
|
|
|
|
.el-table-v2 {
|
|
min-width: 1200px;
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
border-radius: 8px;
|
|
border: 1px solid #ebeef5;
|
|
overflow: auto !important;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
}
|
|
|
|
.el-table-v2__header-wrapper {
|
|
position: sticky !important;
|
|
top: 0 !important;
|
|
z-index: 10 !important;
|
|
background: #f8f9fa !important;
|
|
border-bottom: 1px solid #ebeef5 !important;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.el-table-v2__body-wrapper {
|
|
flex: 1 !important;
|
|
overflow: auto !important;
|
|
position: relative !important;
|
|
min-height: calc(100% - 42px);
|
|
overflow: hidden !important;
|
|
}
|
|
|
|
.el-table-v2::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
z-index: 20 !important;
|
|
}
|
|
|
|
.el-table-v2::-webkit-scrollbar-track {
|
|
background: #f1f1f1;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.el-table-v2::-webkit-scrollbar-thumb {
|
|
background: #c1c1c1;
|
|
border-radius: 4px;
|
|
border: 1px solid #f1f1f1;
|
|
}
|
|
|
|
.el-table-v2::-webkit-scrollbar-thumb:hover {
|
|
background: #a8a8a8;
|
|
border: 1px solid #909090;
|
|
}
|
|
|
|
.el-table-v2__footer {
|
|
position: sticky !important;
|
|
bottom: 0 !important;
|
|
z-index: 5 !important;
|
|
background: #f8f9fa !important;
|
|
border-top: 1px solid #ebeef5 !important;
|
|
box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
|
|
overflow-x: auto !important;
|
|
min-height: 8px;
|
|
}
|
|
|
|
/* 表格内容区域的滚动条样式 */
|
|
|
|
.el-table-v2__body-wrapper::-webkit-scrollbar {
|
|
height: 8px !important;
|
|
}
|
|
|
|
.el-table-v2__body-wrapper::-webkit-scrollbar-thumb {
|
|
background: #c1c1c1 !important;
|
|
border-radius: 4px !important;
|
|
border: 1px solid #f1f1f1 !important;
|
|
}
|
|
|
|
.el-table-v2__body-wrapper::-webkit-scrollbar-thumb:hover {
|
|
background: #a8a8a8 !important;
|
|
border: 1px solid #909090 !important;
|
|
}
|
|
|
|
.el-table-v2__header th {
|
|
background-color: #f8f9fa;
|
|
font-weight: bold;
|
|
color: #606266;
|
|
}
|
|
|
|
/* 主表格单元格网格线(配合列 style 内联边框) */
|
|
#app .el-table-v2__header-cell,
|
|
#app .el-table-v2__row-cell {
|
|
border-right: 1px solid #dcdfe6 !important;
|
|
border-bottom: 1px solid #dcdfe6 !important;
|
|
box-sizing: border-box !important;
|
|
}
|
|
|
|
#app .el-table-v2__header {
|
|
border-bottom: 1px solid #dcdfe6 !important;
|
|
}
|
|
|
|
/* 表头列拖拽排序 / 列宽调整 */
|
|
.bjcpjxdr-header-cell {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 0 6px;
|
|
box-sizing: border-box;
|
|
user-select: none;
|
|
position: relative;
|
|
}
|
|
|
|
.bjcpjxdr-header-pinned {
|
|
justify-content: center;
|
|
}
|
|
|
|
.bjcpjxdr-header-draggable {
|
|
cursor: grab;
|
|
}
|
|
|
|
.bjcpjxdr-header-draggable.is-dragging {
|
|
cursor: grabbing;
|
|
opacity: 0.55;
|
|
}
|
|
|
|
.bjcpjxdr-header-draggable.is-drag-over {
|
|
background-color: #ecf5ff !important;
|
|
outline: 2px dashed #409eff;
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.bjcpjxdr-header-grip {
|
|
flex-shrink: 0;
|
|
margin-right: 4px;
|
|
color: #c0c4cc;
|
|
font-size: 11px;
|
|
letter-spacing: -2px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.bjcpjxdr-header-draggable:hover .bjcpjxdr-header-grip {
|
|
color: #409eff;
|
|
}
|
|
|
|
.bjcpjxdr-header-title {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* 列宽拖拽热区(默认不显示竖线,仅拖动时出现全局指示线) */
|
|
.bjcpjxdr-col-resize-handle {
|
|
position: absolute;
|
|
top: 0;
|
|
right: -3px;
|
|
width: 6px;
|
|
height: 100%;
|
|
cursor: col-resize;
|
|
z-index: 3;
|
|
touch-action: none;
|
|
}
|
|
|
|
.bjcpjxdr-col-resize-guide {
|
|
display: none;
|
|
position: fixed;
|
|
width: 1px;
|
|
background: #c0c4cc;
|
|
z-index: 9999;
|
|
pointer-events: none;
|
|
}
|
|
|
|
body.bjcpjxdr-col-resizing {
|
|
cursor: col-resize !important;
|
|
user-select: none !important;
|
|
}
|
|
|
|
.el-table-v2__row:hover {
|
|
background-color: #f5f7fa !important;
|
|
}
|
|
|
|
.el-table-v2__row.current-row {
|
|
background-color: #f0f7ff !important;
|
|
}
|
|
|
|
.el-table-v2__row.current-row:hover {
|
|
background-color: #e6f7ff !important;
|
|
}
|
|
|
|
.rule-config-dialog {
|
|
width: 950px !important;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.rule-syntax-link {
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
text-decoration-thickness: 1.8px;
|
|
text-underline-offset: 0.3em;
|
|
color: #409EFF;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.rule-syntax-link:hover {
|
|
color: #66b1ff;
|
|
}
|
|
|
|
.rule-config-header {
|
|
background: #409EFF;
|
|
color: white;
|
|
padding: 6px 6px;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.rule-config-header i {
|
|
margin-right: 10px;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.rule-config-content {
|
|
padding: 10px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.rule-string-section {
|
|
margin-bottom: 12px;
|
|
position: relative;
|
|
}
|
|
|
|
.rule-string-label {
|
|
font-weight: bold;
|
|
color: #606266;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.rule-string-textarea {
|
|
width: 75%;
|
|
border: 1px solid #dcdfe6;
|
|
border-radius: 4px;
|
|
padding: 8px;
|
|
font-size: 14px;
|
|
min-height: 10px;
|
|
resize: vertical;
|
|
font-family: Consolas, Monaco, monospace;
|
|
}
|
|
|
|
.unmark-button {
|
|
position: absolute;
|
|
top: 40px;
|
|
right: 110px;
|
|
background: #67c23a;
|
|
color: white;
|
|
border: none;
|
|
padding: 4px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.unmark-button:hover {
|
|
background: #85ce61;
|
|
}
|
|
|
|
.rule-config-item {
|
|
margin-bottom: 10px;
|
|
border-bottom: 1px solid #ebeef5;
|
|
padding-bottom: 15px;
|
|
}
|
|
|
|
.rule-item-label {
|
|
font-weight: bold;
|
|
color: #606266;
|
|
margin-bottom: 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.rule-input-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.rule-input {
|
|
flex: 1;
|
|
border: 1px solid #dcdfe6;
|
|
border-radius: 4px;
|
|
padding: 8px 12px;
|
|
font-size: 14px;
|
|
position: relative;
|
|
}
|
|
|
|
.rule-input-with-arrow {
|
|
padding-right: 30px;
|
|
}
|
|
|
|
.rule-input-arrow {
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: #c0c4cc;
|
|
}
|
|
|
|
.rule-tags-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.rule-tag {
|
|
display: inline-block;
|
|
padding: 3px 16px;
|
|
font-size: 13px;
|
|
border: 0.1px solid #dcdfe6;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
background: #ECF5FF;
|
|
border-color: #9ccaf7;
|
|
color: #409EFE;
|
|
letter-spacing: 3px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
}
|
|
|
|
.rule-tag:hover {
|
|
background: #409EFE;
|
|
border-color: #409EFF;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.rule-value-display {
|
|
font-weight: bold;
|
|
color: #409EFF;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.maintain-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 24px;
|
|
padding-top: 12px;
|
|
border-top: 1px dashed #dcdfe6;
|
|
font-size: 13px;
|
|
color: #909399;
|
|
}
|
|
|
|
.maintain-item span {
|
|
font-weight: bold;
|
|
color: #606266;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.import-dialog {
|
|
width: 800px !important;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.import-header {
|
|
background: #67C23A;
|
|
color: white;
|
|
padding: 16px 20px;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.import-header i {
|
|
margin-right: 10px;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.import-content {
|
|
padding: 20px;
|
|
background: #f8fafc;
|
|
}
|
|
|
|
.upload-section {
|
|
border: 2px dashed #d9d9d9;
|
|
border-radius: 8px;
|
|
padding: 25px;
|
|
text-align: center;
|
|
background: #f9f9f9;
|
|
margin-bottom: 20px;
|
|
transition: border-color 0.3s;
|
|
position: relative;
|
|
}
|
|
|
|
.upload-section:hover {
|
|
border-color: #67C23A;
|
|
}
|
|
|
|
.upload-icon {
|
|
font-size: 48px;
|
|
color: #67C23A;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.upload-text {
|
|
color: #606266;
|
|
font-size: 16px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.file-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.file-name {
|
|
font-weight: bold;
|
|
color: #303133;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.file-size {
|
|
color: #909399;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.mapping-section {
|
|
margin: 25px 0;
|
|
}
|
|
|
|
.mapping-title {
|
|
font-weight: bold;
|
|
color: #606266;
|
|
margin-bottom: 15px;
|
|
font-size: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.mapping-title i {
|
|
margin-right: 8px;
|
|
color: #409EFF;
|
|
}
|
|
|
|
.mapping-grid {
|
|
display: grid;
|
|
grid-template-columns: 140px 40px 1fr;
|
|
gap: 15px;
|
|
align-items: center;
|
|
}
|
|
|
|
.mapping-item {
|
|
display: contents;
|
|
}
|
|
|
|
.system-column {
|
|
font-weight: bold;
|
|
color: #606266;
|
|
padding: 8px 12px;
|
|
background: #f0f7ff;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.mapping-arrow {
|
|
text-align: center;
|
|
font-size: 20px;
|
|
color: #909399;
|
|
}
|
|
|
|
.column-select {
|
|
width: 100%;
|
|
}
|
|
|
|
.preview-section {
|
|
margin-top: 25px;
|
|
}
|
|
|
|
.preview-table {
|
|
max-height: 280px;
|
|
overflow: auto;
|
|
border: 1px solid #ebeef5;
|
|
border-radius: 4px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.preview-table table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.preview-table th {
|
|
background-color: #f8f9fa;
|
|
padding: 12px 15px;
|
|
font-weight: bold;
|
|
color: #606266;
|
|
border-bottom: 1px solid #ebeef5;
|
|
border-right: 1px solid #ebeef5;
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
|
|
.preview-table td {
|
|
padding: 10px 15px;
|
|
border-bottom: 1px solid #ebeef5;
|
|
border-right: 1px solid #ebeef5;
|
|
}
|
|
|
|
.preview-table tr:hover {
|
|
background-color: #f5f7fa;
|
|
}
|
|
|
|
.import-progress {
|
|
margin-top: 25px;
|
|
}
|
|
|
|
.error-message {
|
|
margin-top: 15px;
|
|
background-color: #fef0f0;
|
|
border-radius: 4px;
|
|
padding: 12px;
|
|
color: #f56c6c;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.success-message {
|
|
margin-top: 15px;
|
|
background-color: #f0f9eb;
|
|
border-radius: 4px;
|
|
padding: 12px;
|
|
color: #67c23a;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.progress-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 9999;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
pointer-events: all;
|
|
transform: none !important;
|
|
}
|
|
|
|
.progress-container {
|
|
position: absolute !important;
|
|
top: 50% !important;
|
|
left: 50% !important;
|
|
transform: translate(-50%, -50%) !important;
|
|
text-align: center;
|
|
background: transparent !important;
|
|
box-shadow: none !important;
|
|
padding: 0 !important;
|
|
border-radius: 8px;
|
|
z-index: 10000;
|
|
}
|
|
|
|
.progress-container .el-progress__text {
|
|
color: white !important;
|
|
font-size: 16px;
|
|
} |