fix(files): 分销站商品图片按租户范围鉴权

商品图片的绑定校验与历史回退查询统一使用站点归属租户;平台超管保留全量读取,并同步修正审核页超管文案。
This commit is contained in:
2026-11-21 15:55:10 +08:00
parent b4d058ef63
commit 194833ea9b
5 changed files with 164 additions and 9 deletions
@@ -62,10 +62,21 @@ import {
readAssetString,
} from '@/shared/utils/listingDisplay'
import { formatDateTime } from '@/shared/utils/time'
import { useAdminSessionStore } from '@/stores/adminSession'
import { useDistributionSiteStore } from '@/stores/distributionSite'
const siteStore = useDistributionSiteStore()
const adminSession = useAdminSessionStore()
const currentSiteName = computed(() => siteStore.siteName || '大锤商行')
const reviewScopeDescription = computed(() =>
adminSession.isSuperAdmin
? '平台超级管理员视图:可查看并审核全部租户及其分销站商品。'
: '仅审核本站号主提交的站内商品,核对账号资产、上号凭证、渠道溯源与定价风控。'
)
const reviewPoolLabel = computed(() => (adminSession.isSuperAdmin ? '全租户待审池' : '本站待审池'))
const reviewPageTitle = computed(() =>
adminSession.isSuperAdmin ? '全平台商品审核' : currentSiteName.value + '商品审核'
)
type RiskLevel = 'danger' | 'warning' | 'info' | 'success'
@@ -953,8 +964,8 @@ async function handleScreenshotSaved(payload: { oldUrl: string; newUrl: string }
<div class="page-header-row review-header">
<div class="page-header">
<p class="eyebrow">Audit Workbench · 审核工作台</p>
<h1>{{ currentSiteName }}商品审核</h1>
<p>仅审核本站号主提交的站内商品,核对账号资产、上号凭证、渠道溯源与定价风控。</p>
<h1>{{ reviewPageTitle }}</h1>
<p>{{ reviewScopeDescription }}</p>
</div>
<div class="toolbar-actions">
<span v-if="lastRefreshedAt" class="refresh-stamp">
@@ -985,7 +996,7 @@ async function handleScreenshotSaved(payload: { oldUrl: string; newUrl: string }
<div class="summary-card-text">
<span>待审核总量</span>
<strong>{{ listings.length }}</strong>
<small>本站待审池</small>
<small>{{ reviewPoolLabel }}</small>
</div>
</div>
</button>
+1 -1
View File
@@ -451,7 +451,7 @@ const currentSiteHint = computed(() => {
const adminScopeNote = computed(() => {
if (siteStore.isPlatformOps) return '平台超级管理员 · 全平台只读总览'
return adminSession.isSuperAdmin
? '平台超级管理员 · 当前仅查看本站数据'
? '平台超级管理员 · 当前经营站点视图'
: '站点管理员 · 数据仅限当前站点'
})
const adminRoleText = computed(() => {