完善本地质量门禁与资金链路测试
This commit is contained in:
@@ -979,453 +979,4 @@ onMounted(reloadAll)
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.qrcode-pool-view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.stats-cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.toolbar-card,
|
||||
.table-card {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.table-card :deep(.el-card__body) {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 28px;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.stat-value.success {
|
||||
color: var(--el-color-success);
|
||||
}
|
||||
.stat-value.primary {
|
||||
color: var(--el-color-primary);
|
||||
}
|
||||
.stat-value.danger {
|
||||
color: var(--el-color-danger);
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
margin-top: 6px;
|
||||
color: var(--el-text-color-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.toolbar {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.filter-area,
|
||||
.action-area {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.filter-area {
|
||||
flex: 1 1 auto;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.action-area {
|
||||
flex: 0 0 auto;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.keyword-filter {
|
||||
width: 240px;
|
||||
}
|
||||
|
||||
.compact-filter {
|
||||
width: 128px;
|
||||
}
|
||||
|
||||
.date-range-filter {
|
||||
width: 330px;
|
||||
}
|
||||
|
||||
.qrcode-table {
|
||||
border-radius: 10px;
|
||||
box-shadow: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.el-table__inner-wrapper) {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.el-table__header th) {
|
||||
height: 42px;
|
||||
background: #f8f9fb;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.el-table__cell) {
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.cell) {
|
||||
padding: 0 14px;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.el-table__fixed-right) {
|
||||
box-shadow: -8px 0 12px rgba(31, 45, 61, 0.04);
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.el-table__header),
|
||||
.qrcode-table :deep(.el-table__body) {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.el-table__header-wrapper),
|
||||
.qrcode-table :deep(.el-table__body-wrapper) {
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.selection-col) {
|
||||
width: 4%;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.qr-col) {
|
||||
width: 8%;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.status-col) {
|
||||
width: 8%;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.name-col) {
|
||||
width: 17%;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.note-col) {
|
||||
width: 17%;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.group-col) {
|
||||
width: 17%;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.rename-col) {
|
||||
width: 8%;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.time-col) {
|
||||
width: 12%;
|
||||
}
|
||||
|
||||
.qrcode-table :deep(.action-col) {
|
||||
width: 10%;
|
||||
}
|
||||
|
||||
.qrcode-thumb {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border: 1px solid #eef1f5;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.note-cell {
|
||||
color: #303846;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.time-stack {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
color: #5f6b7a;
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.copy-cell-button {
|
||||
display: inline-flex;
|
||||
max-width: 100%;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #303846;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
line-height: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.copy-cell-button span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.copy-cell-button .el-icon {
|
||||
flex: 0 0 auto;
|
||||
color: var(--el-color-primary);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.copy-cell-button:disabled {
|
||||
color: #a8b0bd;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.table-actions {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.table-actions :deep(.el-button) {
|
||||
margin-left: 0;
|
||||
padding: 4px 6px;
|
||||
}
|
||||
|
||||
@media (max-width: 1280px) {
|
||||
.toolbar {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.action-area {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.keyword-filter,
|
||||
.compact-filter,
|
||||
.date-range-filter {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.filter-area,
|
||||
.action-area {
|
||||
align-items: stretch;
|
||||
}
|
||||
}
|
||||
|
||||
.upload-preview {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.batch-upload-area {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.qrcode-upload-form :deep(.el-form-item__label) {
|
||||
align-items: center;
|
||||
padding-right: 18px;
|
||||
line-height: 32px;
|
||||
white-space: nowrap;
|
||||
word-break: keep-all;
|
||||
}
|
||||
|
||||
.qrcode-upload-form :deep(.el-form-item) {
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.qrcode-upload-form :deep(.el-form-item__content) {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.batch-upload-area :deep(.el-upload) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.batch-upload-area :deep(.el-upload-dragger) {
|
||||
width: 100%;
|
||||
padding: 12px 18px;
|
||||
}
|
||||
|
||||
.batch-upload-area :deep(.el-icon--upload) {
|
||||
margin-bottom: 4px;
|
||||
font-size: 28px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.batch-upload-area :deep(.el-upload__text) {
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.upload-tip {
|
||||
color: var(--el-text-color-secondary);
|
||||
font-size: 12px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.uploaded-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
gap: 12px;
|
||||
margin-top: 10px;
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
padding: 10px;
|
||||
border: 1px solid #eef1f5;
|
||||
border-radius: 8px;
|
||||
background: #fafbfc;
|
||||
}
|
||||
|
||||
.uploaded-item {
|
||||
min-width: 0;
|
||||
padding: 10px;
|
||||
border: 1px solid #e7ebf2;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.uploaded-main {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.uploaded-thumb {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
flex: 0 0 auto;
|
||||
border: 1px solid #e7ebf2;
|
||||
border-radius: 8px;
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.uploaded-local-preview {
|
||||
display: block;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border-radius: 6px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.uploaded-remove {
|
||||
position: absolute;
|
||||
top: -7px;
|
||||
right: -7px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
padding: 0;
|
||||
border: 1px solid #ffffff;
|
||||
border-radius: 50%;
|
||||
background: var(--el-color-danger);
|
||||
color: #ffffff;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.uploaded-remove:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.45;
|
||||
}
|
||||
|
||||
.uploaded-name {
|
||||
overflow: hidden;
|
||||
color: var(--el-text-color-secondary);
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.uploaded-meta {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.uploaded-meta .el-tag {
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.uploaded-group-editor {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.expired-tag {
|
||||
color: var(--el-color-danger);
|
||||
}
|
||||
|
||||
.edit-image-area {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.edit-image-preview {
|
||||
flex: 0 0 auto;
|
||||
width: 88px;
|
||||
height: 88px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #e7ebf2;
|
||||
border-radius: 8px;
|
||||
background: #fafbfc;
|
||||
}
|
||||
|
||||
.edit-image-preview :deep(.el-image),
|
||||
.edit-image-preview :deep(img) {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.edit-image-empty {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
place-items: center;
|
||||
color: var(--el-text-color-secondary);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.expire-editor {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
<style scoped src="./AdminQrCodePoolView.css"></style>
|
||||
|
||||
Reference in New Issue
Block a user