权限整改:完善 DNS 项目归属展示与进度清单

补充 DNS 账户管理页面的项目归属展示和权限拒绝回归测试,更新四份中文整改进度清单,保持总体验收位置为 P0-03 完成待复审。
This commit is contained in:
xuans committed 2026-09-29 19:27:24 +08:00
1 parent b8fd536dbd
commit 07f86f1413
8 files changed
+89 -6

No files matched your search

@@ -132,6 +132,6 @@ select:focus-visible,
}
.dns-accounts-table {
min-width: 640px;
min-width: 760px;
}
}
@@ -6,6 +6,11 @@ export function dnsVerificationLabel(item) {
return item.verification_state === "verified" ? "已验证" : "待验证";
}
export function dnsProjectLabel(item) {
const projectID = typeof item?.project_id === "string" ? item.project_id.trim() : "";
return projectID === "" || projectID === "default" ? "默认项目" : projectID;
}
export function useDNSAccounts() {
const accounts = ref([]);
const loading = ref(false);
@@ -1,6 +1,6 @@
<script setup>
import { watch } from "vue";
import { dnsVerificationLabel, useDNSAccounts } from "./DNSAccounts.js";
import { dnsProjectLabel, dnsVerificationLabel, useDNSAccounts } from "./DNSAccounts.js";
const props = defineProps({ refreshKey: { type: Object, default: null } });
const {
@@ -33,6 +33,7 @@ watch(() => props.refreshKey, loadAccounts);
<tr>
<th scope="col">账户名称</th>
<th scope="col">DNS 服务商</th>
<th scope="col">项目归属</th>
<th scope="col" title="仅展示脱敏后的公开账号标识,不展示密钥或令牌">账号标识</th>
<th scope="col" title="归属来自已保存的用户记录;历史配置未记录归属时显示未分配">归属用户</th>
<th scope="col" title="已验证表示保存配置时通过验证,不代表此刻云端权限仍然有效">验证状态</th>
@@ -42,6 +43,7 @@ watch(() => props.refreshKey, loadAccounts);
<tr v-for="account in visibleAccounts" :key="account.id">
<td>{{ account.name }}</td>
<td>{{ account.provider_name }}</td>
<td>{{ dnsProjectLabel(account) }}</td>
<td class="dns-identifier">{{ account.account_identifier }}</td>
<td :class="{ 'dns-muted': account.owner_state !== 'assigned' }">{{ account.owner_username }}</td>
<td>