feat(admin): A1 管理后台收敛 Java 单后台完整实现并修复 guard 误拦内部令牌
Build Backend JAR / build (push) Has been cancelled
Build Backend JAR / build (push) Has been cancelled
- Java 补齐后台全部迁移差集:shopduplicatecheck 店铺数据重复检查模块(V108 扫描表+查询/扫描服务)、 PinyinAbbrUtil 拼音缩写、ImageHistory 接口调整为内部可用、AdminUser 支持内部令牌操作并放宽列表上限 - Flask 后台 admin_api.py 路由收敛转发 Java、admin.html/admin.js 适配新后台形态 - AdminApiGuardFilter 对可信 X-Internal-Token 放行(controller 自校验兜底),修复客户端仅凭 内部令牌调用 /api/admin/shop-manages/credential 被误拦 401 - 测试:AdminApiGuardFilterTest 补可信/假令牌用例;AdminUserServiceTest 补菜单权限 mock; shopduplicatecheck 新增查询/聚合/CSV 单测
This commit is contained in:
+123
-20
@@ -1337,47 +1337,69 @@
|
||||
min-height: 120px;
|
||||
max-height: 250px;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 7px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
align-content: start;
|
||||
gap: 8px;
|
||||
padding-right: 2px;
|
||||
}
|
||||
|
||||
.dup-chart-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(70px, 96px) minmax(0, 1fr) 44px;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
/* 店铺上架分布:双列网格(店名 + 记录数 / 进度条 / N 个 ASIN) */
|
||||
.dup-dist-item {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
padding: 10px 12px;
|
||||
background: #fbfcfe;
|
||||
border: 1px solid var(--c-border);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.dup-chart-name {
|
||||
font-size: 12px;
|
||||
color: var(--c-text-2);
|
||||
.dup-dist-item-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.dup-dist-name {
|
||||
min-width: 0;
|
||||
font-size: 12.5px;
|
||||
font-weight: 700;
|
||||
color: var(--c-text);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.dup-chart-track {
|
||||
height: 16px;
|
||||
.dup-dist-record {
|
||||
flex: 0 0 auto;
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
color: var(--c-primary-strong);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.dup-dist-track {
|
||||
height: 7px;
|
||||
background: #eef0f6;
|
||||
border-radius: 5px;
|
||||
border-radius: 999px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.dup-chart-fill {
|
||||
.dup-dist-fill {
|
||||
display: block;
|
||||
height: 100%;
|
||||
min-width: 2px;
|
||||
background: linear-gradient(90deg, var(--c-primary), #8b8ff3);
|
||||
border-radius: 5px;
|
||||
border-radius: 999px;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.dup-chart-num {
|
||||
.dup-dist-asin {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: var(--c-text);
|
||||
text-align: right;
|
||||
color: var(--c-text-3);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
@@ -1532,6 +1554,82 @@
|
||||
border: 1px solid var(--c-border);
|
||||
}
|
||||
|
||||
/* 国家彩色徽章(撞款详情卡片 / 抽屉):DE橙 / UK靛蓝 / FR蓝 / IT绿 / ES红 / 其他兜底 */
|
||||
.dup-site-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 9px;
|
||||
border-radius: 999px;
|
||||
font-size: 11.5px;
|
||||
font-weight: 700;
|
||||
line-height: 1.6;
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.dup-site-DE { background: #fff1e3; color: #c2570a; border: 1px solid #f3cba4; }
|
||||
.dup-site-UK { background: #eeedfb; color: #5451d6; border: 1px solid #c9c7f2; }
|
||||
.dup-site-FR { background: #e5f0fd; color: #1d5fc2; border: 1px solid #b5d3f5; }
|
||||
.dup-site-IT { background: #e3f6ec; color: #18774c; border: 1px solid #aadcc2; }
|
||||
.dup-site-ES { background: #fdeaea; color: #c03a2e; border: 1px solid #f2bcba; }
|
||||
.dup-site-NA,
|
||||
.dup-site- { background: #f4f6fa; color: var(--c-text-3); border: 1px solid var(--c-border); }
|
||||
|
||||
/* 抽屉底部徽章组:彩色滴状标签 */
|
||||
.dup-drawer-inline-badges {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.dup-drawer-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 3px 11px;
|
||||
border-radius: 8px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1.5;
|
||||
white-space: nowrap;
|
||||
background: #eef2f7;
|
||||
color: var(--c-text-2);
|
||||
}
|
||||
|
||||
.dup-drawer-badge-danger { background: #fdecec; color: #d8483a; border: 1px solid #f3bcb8; }
|
||||
.dup-drawer-badge-blue { background: var(--c-primary-soft); color: var(--c-primary-strong); border: 1px solid #d3d6fa; }
|
||||
.dup-drawer-badge-green { background: #e3f6ec; color: #18774c; border: 1px solid #aadcc2; }
|
||||
.dup-drawer-badge-cyan { background: #e0f5f9; color: #0e7d94; border: 1px solid #a8e0ec; }
|
||||
|
||||
/* 抽屉头部 ASIN 与品牌行 */
|
||||
.dup-drawer-asin {
|
||||
font-family: Consolas, Menlo, monospace;
|
||||
font-size: 17px;
|
||||
font-weight: 800;
|
||||
color: var(--c-primary-strong);
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.dup-drawer-brand-line {
|
||||
padding: 12px 0;
|
||||
font-size: 13px;
|
||||
color: var(--c-text);
|
||||
border-bottom: 1px solid var(--c-border);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.dup-check-drawer-table td.dup-date {
|
||||
color: var(--c-text-2);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.drawer-subtitle.dup-drawer-subtitle {
|
||||
color: var(--c-text-2);
|
||||
font-size: 12.5px;
|
||||
}
|
||||
|
||||
.dup-check-drawer-meta {
|
||||
display: grid;
|
||||
grid-template-columns: 88px minmax(0, 1fr);
|
||||
@@ -1598,6 +1696,10 @@
|
||||
.dup-check-metrics {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.dup-check-distribution-bars {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
.thumb {
|
||||
@@ -5585,6 +5687,7 @@
|
||||
<span class="dup-check-detail-sub">同一 ASIN 在多条店铺的上架明细</span>
|
||||
</div>
|
||||
<div class="dup-check-detail-cards" id="dupCheckDetailCards"></div>
|
||||
<div class="pagination" id="dupCheckDetailPagination" style="margin-top:12px;"></div>
|
||||
</div>
|
||||
<div class="drawer-mask" id="dupCheckDrawerMask">
|
||||
<aside class="drawer" role="dialog" aria-modal="true" aria-label="ASIN 详情">
|
||||
|
||||
Reference in New Issue
Block a user