feat(frontend-vue): 亚马逊运营工具台与新功能页接入——新版工具台(amazon-console+tool-catalog)、品牌检测/ASIN变体采集/查询ASIN 三个工具页 Vue 化并对接既有后端与桌面桥接;桌面首页/登录页 Vue 化(沿用旧视觉);补充 vc_*/get_device_id/save_file_from_url 桥类型、dev 代理;品牌默认勾选排名+FBM;修正 query-asin 标题

含未提交新版改造累积:Brand*Tab 套入工具台壳(AmazonToolPageShell/AmazonTopBar)与目录/权限联动。
This commit is contained in:
2026-09-07 11:06:05 +08:00
parent f6c44d1b92
commit d2301db292
43 changed files with 4513 additions and 614 deletions
@@ -1,6 +1,6 @@
<template>
<div class="page-shell module-page">
<BrandTopBar active="dedupe" />
<AmazonToolPageShell tool-id="dedupe">
<div class="main-content">
<aside class="left-panel">
@@ -140,13 +140,14 @@
</div>
</section>
</div>
</AmazonToolPageShell>
</div>
</template>
<script setup lang="ts">
import { computed, onMounted, ref } from 'vue'
import { ElMessage } from 'element-plus'
import BrandTopBar from './BrandTopBar.vue'
import AmazonToolPageShell from '@/pages/amazon/components/AmazonToolPageShell.vue';
import { expandBrandFolderRecursive, type BrandExpandFolderItem } from '@/shared/api/brand'
import { deleteDedupeHistory, getDedupeHistory, getDedupeResultDownloadUrl, getDedupeRunProgress, getExcelInfo, runDedupe, type DedupeResultItem, type DedupeRunProgressVo, type DedupeRunVo } from '@/shared/api/java-modules'
import { getPywebviewApi, type UploadedJavaFile } from '@/shared/bridges/pywebview'
@@ -414,7 +415,7 @@ onMounted(() => {
<style scoped>
.module-page {
min-height: 100vh;
background: #1a1a1a;
background: #151a25;
}
.main-content {
@@ -425,10 +426,10 @@ onMounted(() => {
.left-panel {
width: 380px;
background: #1e1e1e;
background: #1c2333;
padding: 20px;
overflow-y: auto;
border-right: 1px solid #2a2a2a;
border-right: 1px solid #2e3a52;
}
.right-panel {
@@ -436,32 +437,32 @@ onMounted(() => {
display: flex;
flex-direction: column;
min-width: 0;
background: #1a1a1a;
background: #151a25;
}
.section-title {
font-size: 13px;
color: #bbb;
color: #a0acbe;
margin-bottom: 10px;
}
.upload-zone {
border: 1px dashed #3a3a3a;
border: 1px dashed #3e4a62;
border-radius: 10px;
padding: 24px;
text-align: center;
background: #252525;
background: #2e3a52;
margin-bottom: 20px;
transition: all 0.2s ease;
}
.upload-zone:hover {
border-color: #3498db;
background: #2a2a2a;
background: #2e3a52;
}
.hint {
color: #888;
color: #5e6878;
font-size: 13px;
margin-bottom: 12px;
line-height: 1.5;
@@ -486,9 +487,9 @@ onMounted(() => {
.opt-btn {
padding: 8px 16px;
font-size: 13px;
color: #ccc;
background: #2a2a2a;
border: 1px solid #3a3a3a;
color: #c8d2e2;
background: #2e3a52;
border: 1px solid #3e4a62;
border-radius: 6px;
}
@@ -506,7 +507,7 @@ onMounted(() => {
.selected-files {
margin-top: 14px;
font-size: 12px;
color: #888;
color: #5e6878;
max-height: 112px;
overflow-y: auto;
text-align: left;
@@ -519,7 +520,7 @@ onMounted(() => {
}
.more-line {
color: #b8c1cc;
color: #a0acbe;
}
.option-group {
@@ -529,8 +530,8 @@ onMounted(() => {
.column-option-group {
padding: 14px;
border-radius: 10px;
background: #252525;
border: 1px solid #2a2a2a;
background: #2e3a52;
border: 1px solid #2e3a52;
}
.column-toolbar {
@@ -543,7 +544,7 @@ onMounted(() => {
.column-count {
font-size: 12px;
color: #a9b4bf;
color: #a0acbe;
}
.column-actions {
@@ -562,8 +563,8 @@ onMounted(() => {
.empty-column-state {
padding: 16px 12px;
border-radius: 8px;
border: 1px dashed #3a3a3a;
background: #202020;
border: 1px dashed #3e4a62;
background: #222b3d;
color: #7f8790;
font-size: 12px;
line-height: 1.6;
@@ -575,8 +576,8 @@ onMounted(() => {
gap: 10px;
padding: 10px 12px;
border-radius: 8px;
border: 1px solid #2f2f2f;
background: #202020;
border: 1px solid #323e58;
background: #222b3d;
cursor: pointer;
transition: all 0.2s ease;
font-size: 13px;
@@ -604,16 +605,16 @@ onMounted(() => {
cursor: pointer;
padding: 10px 12px;
border-radius: 8px;
background: #252525;
border: 1px solid #2a2a2a;
background: #2e3a52;
border: 1px solid #2e3a52;
margin-bottom: 8px;
transition: all 0.2s ease;
}
.radio-item:hover,
.radio-item.active {
background: #2a2a2a;
border-color: #3a3a3a;
background: #2e3a52;
border-color: #3e4a62;
}
.radio-item input {
@@ -622,13 +623,13 @@ onMounted(() => {
.label {
font-weight: 500;
color: #e0e0e0;
color: #f5f8fc;
font-size: 13px;
}
.desc {
font-size: 12px;
color: #888;
color: #5e6878;
margin-top: 2px;
line-height: 1.5;
font-weight: 400;
@@ -645,7 +646,7 @@ onMounted(() => {
.btn-run {
padding: 10px 22px;
background: #3498db;
color: #fff;
color: #f5f8fc;
border-radius: 8px;
font-size: 14px;
}
@@ -656,7 +657,7 @@ onMounted(() => {
.btn-run:disabled {
background: #555;
color: #999;
color: #a0acbe;
cursor: not-allowed;
}
@@ -667,10 +668,10 @@ onMounted(() => {
.panel-header {
padding: 16px 20px;
border-bottom: 1px solid #2a2a2a;
border-bottom: 1px solid #2e3a52;
font-size: 15px;
font-weight: 600;
color: #ddd;
color: #c8d2e2;
}
.task-list-wrap {
@@ -691,10 +692,10 @@ onMounted(() => {
justify-content: space-between;
gap: 16px;
padding: 14px 16px;
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
border-radius: 8px;
margin-bottom: 10px;
background: #1e1e1e;
background: #1c2333;
}
.left {
@@ -705,13 +706,13 @@ onMounted(() => {
.id {
display: inline-block;
font-weight: 600;
color: #e0e0e0;
color: #f5f8fc;
font-size: 13px;
}
.files {
font-size: 12px;
color: #888;
color: #5e6878;
margin-top: 4px;
}
@@ -765,7 +766,7 @@ onMounted(() => {
}
.empty-tasks {
color: #666;
color: #5e6878;
font-size: 13px;
padding: 24px 8px;
}
@@ -783,27 +784,27 @@ onMounted(() => {
.summary-card {
padding: 16px 18px;
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
border-radius: 10px;
background: #1e1e1e;
background: #1c2333;
}
.summary-card strong {
display: block;
margin-top: 8px;
font-size: 24px;
color: #eaf4ff;
color: #f5f8fc;
}
.summary-label {
font-size: 12px;
color: #8d8d8d;
color: #5e6878;
}
.result-list-wrap {
border: 1px solid #2a2a2a;
border: 1px solid #2e3a52;
border-radius: 10px;
background: #1e1e1e;
background: #1c2333;
min-height: 260px;
}
@@ -813,9 +814,9 @@ onMounted(() => {
justify-content: space-between;
gap: 12px;
padding: 14px 16px;
border-bottom: 1px solid #2a2a2a;
border-bottom: 1px solid #2e3a52;
font-size: 14px;
color: #ddd;
color: #c8d2e2;
}
@media (max-width: 1100px) {
@@ -827,7 +828,7 @@ onMounted(() => {
.left-panel {
width: 100%;
border-right: none;
border-bottom: 1px solid #2a2a2a;
border-bottom: 1px solid #2e3a52;
}
.right-panel {