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="split" />
<AmazonToolPageShell tool-id="split">
<div class="main-content">
<aside class="left-panel">
@@ -159,13 +159,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 { deleteSplitHistory, getExcelInfo, getSplitHistory, getSplitResultDownloadUrl, runSplit, type SplitResultItem, type SplitRunVo } from '@/shared/api/java-modules'
import { getPywebviewApi, type UploadedJavaFile } from '@/shared/bridges/pywebview'
@@ -391,7 +392,7 @@ onMounted(() => {
<style scoped>
.module-page {
min-height: 100vh;
background: #1a1a1a;
background: #151a25;
}
.main-content {
@@ -402,10 +403,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 {
@@ -413,32 +414,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;
@@ -463,9 +464,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;
}
@@ -483,7 +484,7 @@ onMounted(() => {
.selected-files {
margin-top: 14px;
font-size: 12px;
color: #888;
color: #5e6878;
max-height: 112px;
overflow-y: auto;
text-align: left;
@@ -496,7 +497,7 @@ onMounted(() => {
}
.more-line {
color: #b8c1cc;
color: #a0acbe;
}
.split-selected-files {
@@ -512,8 +513,8 @@ onMounted(() => {
.column-option-group {
padding: 14px;
border-radius: 10px;
background: #252525;
border: 1px solid #2a2a2a;
background: #2e3a52;
border: 1px solid #2e3a52;
}
.column-toolbar {
@@ -526,7 +527,7 @@ onMounted(() => {
.column-count {
font-size: 12px;
color: #a9b4bf;
color: #a0acbe;
}
.column-actions {
@@ -545,8 +546,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;
@@ -558,8 +559,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;
@@ -587,16 +588,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 {
@@ -605,13 +606,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;
@@ -623,17 +624,17 @@ onMounted(() => {
gap: 10px;
padding: 14px 16px;
border-radius: 10px;
border: 1px solid #2f2f2f;
background: #252525;
border: 1px solid #323e58;
background: #2e3a52;
}
.split-number-input {
width: 100%;
padding: 12px 14px;
border-radius: 8px;
border: 1px solid #3a3a3a;
border: 1px solid #3e4a62;
background: #1b1b1b;
color: #eaf4ff;
color: #f5f8fc;
font-size: 22px;
font-weight: 700;
line-height: 1.2;
@@ -664,7 +665,7 @@ onMounted(() => {
.btn-run {
padding: 10px 22px;
background: #3498db;
color: #fff;
color: #f5f8fc;
border-radius: 8px;
font-size: 14px;
}
@@ -675,7 +676,7 @@ onMounted(() => {
.btn-run:disabled {
background: #555;
color: #999;
color: #a0acbe;
cursor: not-allowed;
}
@@ -686,10 +687,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 {
@@ -710,10 +711,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;
}
.split-result-item {
@@ -734,19 +735,19 @@ 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;
}
.time {
font-size: 12px;
color: #666;
color: #5e6878;
margin-top: 2px;
}
@@ -813,7 +814,7 @@ onMounted(() => {
}
.empty-tasks {
color: #666;
color: #5e6878;
font-size: 13px;
padding: 24px 8px;
}
@@ -831,27 +832,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;
}
@@ -861,9 +862,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) {
@@ -875,7 +876,7 @@ onMounted(() => {
.left-panel {
width: 100%;
border-right: none;
border-bottom: 1px solid #2a2a2a;
border-bottom: 1px solid #2e3a52;
}
.right-panel {