后台店铺数据记录页新增 Tab 切换与重复 ASIN 分析;task-169/170 HTTP 客户端配置接入;dedupe/brand 相关改造
Build Backend JAR / build (push) Has been cancelled
Build Backend JAR / build (push) Has been cancelled
- 管理后台:店铺数据记录改为列表分页展示(去任务号/文件列/累计标题,'最新'改'更新时间'),新增'重复 ASIN' Tab 按跨店聚合展示 ASIN/店铺/分组/国家/日期/价格;修复失败/进行中任务被过滤不显示的问题 - task-169: BrandCheckHttpConfigResolver 从 aiimage.http-client.* 读取品牌检查超时/重试(默认同现状、钳制),附 8 条测试 - task-170: surefire 内存调整为 1536m - dedupe: DedupeRunService 重构(事务边界/进度)、新增 DedupeRunProgressVo、Controller 与结果 VO 调整,PermissionMenuService 相应适配 - brand/dedupe 前端:BrandDedupeTab/BrandPatrolDeleteTab 改造、新增 CountrySelector 组件与 country-options、类型与接口端对齐、测试更新 - 移除无引用文件:backend/static/logo.jpg、prompts/
This commit is contained in:
+285
-130
@@ -841,6 +841,244 @@
|
||||
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
|
||||
}
|
||||
|
||||
/* ===== 店铺数据记录 ===== */
|
||||
.shop-data-sub-tabs {
|
||||
display: inline-flex;
|
||||
gap: 6px;
|
||||
padding: 4px;
|
||||
margin-bottom: 18px;
|
||||
background: #eef0f6;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.shop-data-sub-tab {
|
||||
padding: 8px 22px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
color: var(--c-text-2);
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
|
||||
.shop-data-sub-tab:hover {
|
||||
color: var(--c-text);
|
||||
}
|
||||
|
||||
.shop-data-sub-tab.active {
|
||||
background: #fff;
|
||||
color: var(--c-primary);
|
||||
font-weight: 700;
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
|
||||
.shop-data-record-table-scroll {
|
||||
margin-top: 4px;
|
||||
max-height: none;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.shop-data-record-table-scroll table {
|
||||
width: 100% !important;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
.shop-data-record-table-scroll th,
|
||||
.shop-data-record-table-scroll td {
|
||||
vertical-align: middle;
|
||||
text-align: left;
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--c-border);
|
||||
}
|
||||
|
||||
.shop-data-record-table-scroll td {
|
||||
color: var(--c-text);
|
||||
}
|
||||
|
||||
.shop-data-record-table-scroll td.muted {
|
||||
color: var(--c-text-2);
|
||||
}
|
||||
|
||||
.shop-data-record-table-scroll .shop-data-status {
|
||||
display: inline-block;
|
||||
min-width: 62px;
|
||||
padding: 3px 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.shop-data-record-table-scroll .shop-data-status.success {
|
||||
color: var(--c-success);
|
||||
background: #e6f6ec;
|
||||
}
|
||||
|
||||
.shop-data-record-table-scroll .shop-data-status.failed {
|
||||
color: var(--c-danger);
|
||||
background: var(--c-danger-soft);
|
||||
}
|
||||
|
||||
.shop-data-record-table-scroll .shop-data-status.running {
|
||||
color: var(--c-warning);
|
||||
background: #fdf0dc;
|
||||
}
|
||||
|
||||
.shop-data-record-action {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 5px 10px;
|
||||
border: 1px solid var(--c-border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: #fff;
|
||||
color: var(--c-text);
|
||||
font: inherit;
|
||||
font-size: 12.5px;
|
||||
cursor: pointer;
|
||||
transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
|
||||
}
|
||||
|
||||
.shop-data-record-action:hover:not(:disabled) {
|
||||
color: var(--c-primary);
|
||||
border-color: #b9bcf3;
|
||||
background: var(--c-primary-soft);
|
||||
}
|
||||
|
||||
.shop-data-record-action.danger:hover:not(:disabled) {
|
||||
color: var(--c-danger);
|
||||
border-color: #f3b4b6;
|
||||
background: var(--c-danger-soft);
|
||||
}
|
||||
|
||||
.shop-data-record-action:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.shop-data-record-action svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-width: 2;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
}
|
||||
|
||||
/* ===== 重复 ASIN 列表 ===== */
|
||||
.duplicate-asin-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.duplicate-asin-card {
|
||||
min-width: 0;
|
||||
background: #fff;
|
||||
border: 1px solid var(--c-border);
|
||||
border-radius: 10px;
|
||||
box-shadow: var(--shadow-card);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.duplicate-asin-card-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px 16px;
|
||||
background: var(--c-primary-soft);
|
||||
border-bottom: 1px solid var(--c-border);
|
||||
}
|
||||
|
||||
.duplicate-asin-card-head .dup-asin {
|
||||
font-family: Consolas, Menlo, monospace;
|
||||
font-size: 15px;
|
||||
font-weight: 800;
|
||||
color: var(--c-primary-strong);
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.duplicate-asin-card-head .dup-count {
|
||||
padding: 2px 10px;
|
||||
border-radius: 999px;
|
||||
background: #fff;
|
||||
color: var(--c-primary-strong);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.duplicate-asin-card-head .dup-brand {
|
||||
margin-left: auto;
|
||||
color: var(--c-text-2);
|
||||
font-size: 12.5px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.duplicate-asin-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.duplicate-asin-table th,
|
||||
.duplicate-asin-table td {
|
||||
padding: 9px 16px;
|
||||
text-align: left;
|
||||
border-bottom: 1px solid var(--c-border);
|
||||
}
|
||||
|
||||
.duplicate-asin-table th {
|
||||
background: #fbfcfe;
|
||||
color: var(--c-text-2);
|
||||
font-size: 12.5px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.duplicate-asin-table tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.duplicate-asin-table td.dup-shop {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.duplicate-asin-table td.dup-country {
|
||||
color: var(--c-text-2);
|
||||
}
|
||||
|
||||
.duplicate-asin-table .dup-date {
|
||||
color: var(--c-text-2);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.shop-data-empty-hint {
|
||||
padding: 28px 16px;
|
||||
text-align: center;
|
||||
color: var(--c-text-3);
|
||||
font-size: 13px;
|
||||
background: #fff;
|
||||
border: 1px dashed var(--c-border);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.shop-data-refresh-btn {
|
||||
background: #fff;
|
||||
border: 1px solid var(--c-border);
|
||||
color: var(--c-text);
|
||||
}
|
||||
|
||||
.shop-data-refresh-btn:hover {
|
||||
color: var(--c-primary);
|
||||
border-color: #b9bcf3;
|
||||
background: var(--c-primary-soft);
|
||||
}
|
||||
|
||||
.thumb {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
@@ -1864,113 +2102,6 @@
|
||||
background: var(--c-primary-soft);
|
||||
}
|
||||
|
||||
.shop-data-task-card .image-video-card-body {
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.shop-data-task-card .image-video-card-info {
|
||||
flex: none;
|
||||
}
|
||||
|
||||
.shop-data-group-head {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.shop-data-group-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--c-text-2);
|
||||
font-size: 12px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.shop-data-result-list {
|
||||
margin-top: 8px;
|
||||
border-top: 1px solid #eef1f6;
|
||||
}
|
||||
|
||||
.shop-data-result {
|
||||
padding: 13px 0 12px;
|
||||
border-bottom: 1px solid #eef1f6;
|
||||
}
|
||||
|
||||
.shop-data-result:last-child {
|
||||
border-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.shop-data-result.selected {
|
||||
margin-left: -8px;
|
||||
margin-right: -8px;
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
border-radius: 4px;
|
||||
background: #f4f6fe;
|
||||
}
|
||||
|
||||
.shop-data-result-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.shop-data-result .shop-data-task-title {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.shop-data-result .image-video-card-info {
|
||||
margin-top: 9px;
|
||||
}
|
||||
|
||||
.shop-data-result .image-video-card-actions {
|
||||
margin-top: 11px;
|
||||
}
|
||||
|
||||
.shop-data-task-title {
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
color: var(--c-text);
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.shop-data-task-title input {
|
||||
flex: 0 0 auto;
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
accent-color: #6366f1;
|
||||
}
|
||||
|
||||
.shop-data-task-title span {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.shop-data-result .image-video-status[title] {
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.shop-data-delete-action {
|
||||
margin-left: auto;
|
||||
border-color: #f0b2b4;
|
||||
color: var(--c-danger);
|
||||
}
|
||||
|
||||
.shop-data-delete-action:hover:not(:disabled) {
|
||||
border-color: var(--c-danger);
|
||||
background: var(--c-danger);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.image-video-permission-btn {
|
||||
display: none;
|
||||
min-height: 36px;
|
||||
@@ -4580,7 +4711,14 @@
|
||||
|
||||
<div id="panel-shop-data-crawl-tasks" class="tab-panel">
|
||||
<div class="form-box">
|
||||
<h3 style="margin-bottom:16px;">店铺数据记录筛选</h3>
|
||||
<h3 style="margin-bottom:16px;">店铺数据记录</h3>
|
||||
<div class="shop-data-sub-tabs" role="tablist" aria-label="店铺数据记录视图">
|
||||
<button class="shop-data-sub-tab active" type="button" id="shopDataSubTabRecords"
|
||||
role="tab" aria-selected="true">店铺数据</button>
|
||||
<button class="shop-data-sub-tab" type="button" id="shopDataSubTabDuplicates"
|
||||
role="tab" aria-selected="false">重复 ASIN</button>
|
||||
</div>
|
||||
<h4 style="margin-bottom:14px;">筛选条件</h4>
|
||||
<div class="form-row">
|
||||
<div class="form-group" style="min-width:150px;"><label>店铺</label><input type="text"
|
||||
id="shopDataTaskFilterShop" placeholder="模糊搜索店铺名"></div>
|
||||
@@ -4604,30 +4742,47 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-box image-video-panel-box">
|
||||
<div class="image-video-results">
|
||||
<div class="image-video-toolbar">
|
||||
<div class="image-video-toolbar-main">
|
||||
<button class="btn btn-secondary image-video-permission-btn"
|
||||
id="btnOpenShopDataTaskPermissions" type="button">权限配置</button>
|
||||
<button class="btn image-video-batch-btn" id="btnBatchDownloadShopDataTasks"
|
||||
type="button" disabled>
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M12 3v12m0 0 4-4m-4 4-4-4M5 21h14"></path>
|
||||
</svg>
|
||||
批量下载
|
||||
</button>
|
||||
<label class="image-video-select-all">
|
||||
<input type="checkbox" id="shopDataTaskSelectAll">
|
||||
全选当前页
|
||||
</label>
|
||||
<span class="image-video-download-progress" id="shopDataTaskDownloadProgress"
|
||||
aria-live="polite"></span>
|
||||
<div id="shopDataRecordsView">
|
||||
<div class="image-video-results">
|
||||
<div class="image-video-toolbar">
|
||||
<div class="image-video-toolbar-main">
|
||||
<button class="btn btn-secondary image-video-permission-btn"
|
||||
id="btnOpenShopDataTaskPermissions" type="button">权限配置</button>
|
||||
<button class="btn image-video-batch-btn" id="btnBatchDownloadShopDataTasks"
|
||||
type="button" disabled>
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="M12 3v12m0 0 4-4m-4 4-4-4M5 21h14"></path>
|
||||
</svg>
|
||||
批量下载
|
||||
</button>
|
||||
<label class="image-video-select-all">
|
||||
<input type="checkbox" id="shopDataTaskSelectAll">
|
||||
全选当前页
|
||||
</label>
|
||||
<span class="image-video-download-progress" id="shopDataTaskDownloadProgress"
|
||||
aria-live="polite"></span>
|
||||
</div>
|
||||
<span class="image-video-summary" id="shopDataTaskTotal"></span>
|
||||
</div>
|
||||
<span class="image-video-summary" id="shopDataTaskTotal"></span>
|
||||
<div class="table-scroll shop-data-record-table-scroll" id="shopDataTaskGrid" aria-live="polite"></div>
|
||||
</div>
|
||||
<div class="image-video-grid" id="shopDataTaskGrid" aria-live="polite"></div>
|
||||
<div class="pagination" id="shopDataTaskPagination"></div>
|
||||
</div>
|
||||
<div id="shopDataDuplicatesView" style="display:none;">
|
||||
<div class="image-video-results">
|
||||
<div class="image-video-toolbar">
|
||||
<div class="image-video-toolbar-main">
|
||||
<button class="btn shop-data-refresh-btn" id="btnRefreshShopDataDuplicates"
|
||||
type="button">重新分析</button>
|
||||
<span class="image-video-download-progress" id="shopDataDuplicateProgress"
|
||||
aria-live="polite"></span>
|
||||
</div>
|
||||
<span class="image-video-summary" id="shopDataDuplicateTotal"></span>
|
||||
</div>
|
||||
<div class="duplicate-asin-list" id="shopDataDuplicateList" aria-live="polite"></div>
|
||||
</div>
|
||||
<div class="pagination" id="shopDataDuplicatePagination"></div>
|
||||
</div>
|
||||
<div class="pagination" id="shopDataTaskPagination"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -5528,7 +5683,7 @@
|
||||
window.__initAdminMenuCollapse();
|
||||
})();
|
||||
</script>
|
||||
<script src="/static/admin.js?v=drop-shop-check"></script>
|
||||
<script src="/static/admin.js?v=shop-data-tabs"></script>
|
||||
<div class="admin-toast-region" id="adminToastRegion" role="status" aria-live="polite" aria-atomic="true"></div>
|
||||
<div class="admin-confirm-mask" id="adminConfirmModal" aria-hidden="true">
|
||||
<section class="admin-confirm-dialog" role="alertdialog" aria-modal="true" aria-labelledby="adminConfirmTitle" aria-describedby="adminConfirmMessage">
|
||||
|
||||
Reference in New Issue
Block a user