feat(common-tools): 工具台新增常用工具分类,三个桌面工具网页化

- tool-catalog 最前插入「常用工具」组(brand_common_tools,23 工具·4 大分类),
  三工具各自权限键:pricing-calc / five-asin / keyword-share
- /pricing-calc:站点(英 GBP÷9、德法 EUR÷8)+ 买货价/运费 → 营业额/利润/
  利润率/换算汇率,公式与精度照抄桌面版,纯函数 node --test 钉住
- /five-asin:五国常量 + ASIN 10 位校验 → 亚马逊商品链接,window.open 与
  :href 出口全部过 safeHttpUrl(url-outlet 棘轮),邮编一键复制
- /keyword-share:筛选/四级类目级联/统计卡/表格分页 200/标记与取消使用/
  添加/删除/随机抽词/共享记录,对接 keywordshare 后端九端点
- 顶栏与 BrandTopBar 导航同步;router 注册三路由;补 test:mount 脚本
  (vitest mount 套件入口,与后管同口径)
This commit is contained in:
2026-10-23 21:56:56 +08:00
parent 2c85f47c3b
commit 208583e14c
18 changed files with 2424 additions and 17 deletions
@@ -94,6 +94,15 @@ const showActions = props.showActions
const allowedColumnKeys = ref<string[]>([])
const navGroups: ReadonlyArray<NavGroup> = [
{
columnKey: 'brand_common_tools',
label: '常用工具',
items: [
{ key: 'pricing-calc', label: '定价利润换算', href: '/pricing-calc' },
{ key: 'five-asin', label: '五国ASIN快速查询', href: '/five-asin' },
{ key: 'keyword-share', label: '五国关键词共享', href: '/keyword-share' },
],
},
{
columnKey: 'brand_front_tools',
label: '前端工具',