feat(brandgating): 品牌Gating库恢复独立菜单

V164 建菜单、V166 回滚后,按 2026-10-25 决定用 V174 恢复独立菜单,
不再作为「店铺数据重复检查」的第三页签;后端权限键同步改为 admin_brand_gating。
This commit is contained in:
2026-10-25 21:53:51 +08:00
parent e265c188f7
commit 23c1402a75
10 changed files with 124 additions and 71 deletions
@@ -1,6 +1,6 @@
<script setup lang="ts">
/**
* 品牌Gating库管理面板:以第三个页签嵌在「店铺数据重复检查」页里。
* 品牌Gating库管理页(独立菜单 admin_brand_gating,V174 恢复)。
* 数据源 /api/admin/brand-gating(biz_brand_gating,全平台共享,不随公司 Tab 收窄)。
*/
import { computed, onMounted, reactive, ref } from 'vue'
@@ -49,7 +49,6 @@ const addBusy = ref(false)
const batchText = ref('')
const importBusy = ref(false)
const busyRowId = ref(0)
const tipVisible = ref(true)
const countryOptions = GATING_COUNTRIES.filter((country) => country !== '全部')
const typeOptions = GATING_TYPES
@@ -219,15 +218,6 @@ onMounted(() => {
<template>
<div class="gating-panel">
<div v-if="tipVisible" class="g-tip">
<span class="g-tip-title">当前页面操作提示</span>
<span>
维护不符合规则的品牌(品牌Gating / 类目Gating)。新增后可用下方筛选快速回查;云端 Gating 库与前端排查软件同步同一份数据,命中后会自动拦截。
<b>Gating 库为全平台共享数据,不随上方公司页签切换。</b>
</span>
<button class="g-tip-x" type="button" @click="tipVisible = false">收起 ✕</button>
</div>
<div v-if="statsError" class="g-stats-error">
<span>统计加载失败:{{ statsError }}</span>
<button type="button" @click="loadStats">重试</button>
@@ -415,39 +405,6 @@ onMounted(() => {
gap: 14px;
}
.g-tip {
display: flex;
align-items: flex-start;
gap: 10px;
background: #f5f9ff;
border: 1px solid #cfe0fb;
border-left: 4px solid var(--g-primary);
border-radius: 10px;
padding: 10px 14px;
font-size: 12px;
color: #1e40af;
line-height: 1.7;
}
.g-tip-title {
flex: none;
font-weight: 700;
color: #1d4ed8;
}
.g-tip b {
color: #1d4ed8;
}
.g-tip-x {
flex: none;
margin-left: auto;
border: none;
background: none;
color: #6b9ef0;
font-family: inherit;
font-size: 12px;
font-weight: 700;
cursor: pointer;
}
.g-stats-error {
display: flex;
align-items: center;