Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions web/classic/src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4040,6 +4040,7 @@
"确认重置该认证?用户认证状态将清空,需重新提交所有信息(含营业执照与法人证件图片)。": "Reset this certification? The user's status will be cleared and all info (including the business license and legal-rep ID images) must be resubmitted.",
"企业认证状态": "Enterprise Certification Status",
"企业认证审核管理": "Enterprise certification review management",
"对公转账与发票审核管理": "Bank transfer and invoice review management",
"留空则使用内置默认拒绝文案": "Leave blank to use the built-in default refusal message",
"对公转账": "Bank Transfer",
"对公转账设置": "Bank Transfer Settings",
Expand Down
1 change: 1 addition & 0 deletions web/classic/src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -3852,6 +3852,7 @@
"确认重置该认证?用户认证状态将清空,需重新提交所有信息(含营业执照与法人证件图片)。": "Réinitialiser cette certification ? Le statut de l'utilisateur sera effacé et toutes les informations (y compris la licence commerciale et les pièces d'identité du représentant légal) devront être resoumises.",
"企业认证状态": "Statut de certification d'entreprise",
"企业认证审核管理": "Gestion de l'examen de la certification d'entreprise",
"对公转账与发票审核管理": "Gestion des virements bancaires et de l'examen des factures",
"留空则使用内置默认拒绝文案": "Laisser vide pour utiliser le message de refus par défaut intégré",
"对公转账": "Virement bancaire",
"对公转账设置": "Paramètres de virement bancaire",
Expand Down
1 change: 1 addition & 0 deletions web/classic/src/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -3821,6 +3821,7 @@
"确认重置该认证?用户认证状态将清空,需重新提交所有信息(含营业执照与法人证件图片)。": "この認証をリセットしますか?ユーザーの状態がクリアされ、すべての情報(営業許可証および法人代表者の身分証画像を含む)を再提出する必要があります。",
"企业认证状态": "企業認証ステータス",
"企业认证审核管理": "企業認証審査管理",
"对公转账与发票审核管理": "銀行振込と請求書審査管理",
"留空则使用内置默认拒绝文案": "空白にするとデフォルトの拒否メッセージを使用します",
"对公转账": "銀行振込",
"对公转账设置": "銀行振込設定",
Expand Down
1 change: 1 addition & 0 deletions web/classic/src/i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -3872,6 +3872,7 @@
"确认重置该认证?用户认证状态将清空,需重新提交所有信息(含营业执照与法人证件图片)。": "Сбросить эту верификацию? Статус пользователя будет очищен, и все данные (включая лицензию и удостоверение представителя) нужно будет отправить заново.",
"企业认证状态": "Статус корпоративной верификации",
"企业认证审核管理": "Управление проверкой корпоративной верификации",
"对公转账与发票审核管理": "Управление банковскими переводами и проверкой счетов-фактур",
"留空则使用内置默认拒绝文案": "Оставьте пустым для использования встроенного сообщения об отказе по умолчанию",
"对公转账": "Банковский перевод",
"对公转账设置": "Настройки банковского перевода",
Expand Down
1 change: 1 addition & 0 deletions web/classic/src/i18n/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -4380,6 +4380,7 @@
"确认重置该认证?用户认证状态将清空,需重新提交所有信息(含营业执照与法人证件图片)。": "Đặt lại xác minh này? Trạng thái người dùng sẽ bị xóa và phải gửi lại toàn bộ thông tin (bao gồm giấy phép kinh doanh và ảnh CMND/CCCD người đại diện).",
"企业认证状态": "Trạng thái xác minh doanh nghiệp",
"企业认证审核管理": "Quản lý xét duyệt xác minh doanh nghiệp",
"对公转账与发票审核管理": "Quản lý chuyển khoản ngân hàng và xét duyệt hóa đơn",
"留空则使用内置默认拒绝文案": "Để trống để sử dụng thông báo từ chối mặc định tích hợp",
"对公转账": "Chuyển khoản ngân hàng",
"对公转账设置": "Cài đặt chuyển khoản ngân hàng",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,41 +40,11 @@ export default function SettingsSidebarModulesAdmin(props) {
const [statusState, statusDispatch] = useContext(StatusContext);

// 左侧边栏模块管理状态(管理员全局控制)
const [sidebarModulesAdmin, setSidebarModulesAdmin] = useState({
chat: {
enabled: true,
playground: true,
chat: true,
},
console: {
enabled: true,
detail: true,
token: true,
log: true,
midjourney: true,
task: true,
},
personal: {
enabled: true,
topup: true,
personal: true,
myfeedback: true,
},
admin: {
enabled: true,
channel: true,
models: true,
deployment: true,
redemption: true,
user: true,
feedback: true,
kyc: true,
enterprise: true,
subscription: true,
reconcile: true,
setting: true,
},
});
// 默认值统一来自 useSidebar 的 DEFAULT_ADMIN_CONFIG(mergeAdminConfig(null) 返回其深拷贝),
// 避免在本组件内重复维护默认配置导致新增模块时遗漏同步。
const [sidebarModulesAdmin, setSidebarModulesAdmin] = useState(() =>
mergeAdminConfig(null),
);

// 处理区域级别开关变更
function handleSectionChange(sectionKey) {
Expand Down Expand Up @@ -106,42 +76,7 @@ export default function SettingsSidebarModulesAdmin(props) {

// 重置为默认配置
function resetSidebarModules() {
const defaultModules = {
chat: {
enabled: true,
playground: true,
chat: true,
},
console: {
enabled: true,
detail: true,
token: true,
log: true,
midjourney: true,
task: true,
},
personal: {
enabled: true,
topup: true,
personal: true,
myfeedback: true,
},
admin: {
enabled: true,
channel: true,
models: true,
deployment: true,
redemption: true,
user: true,
feedback: true,
kyc: true,
enterprise: true,
subscription: true,
reconcile: true,
setting: true,
},
};
setSidebarModulesAdmin(defaultModules);
setSidebarModulesAdmin(mergeAdminConfig(null));
showSuccess(t('已重置为默认配置'));
}

Expand Down Expand Up @@ -192,38 +127,7 @@ export default function SettingsSidebarModulesAdmin(props) {
setSidebarModulesAdmin(modules);
} catch (error) {
// 使用默认配置
const defaultModules = {
chat: { enabled: true, playground: true, chat: true },
console: {
enabled: true,
detail: true,
token: true,
log: true,
midjourney: true,
task: true,
},
personal: {
enabled: true,
topup: true,
personal: true,
myfeedback: true,
},
admin: {
enabled: true,
channel: true,
models: true,
deployment: true,
redemption: true,
user: true,
feedback: true,
kyc: true,
enterprise: true,
subscription: true,
reconcile: true,
setting: true,
},
};
setSidebarModulesAdmin(defaultModules);
setSidebarModulesAdmin(mergeAdminConfig(null));
}
}
}, [props.options]);
Expand Down Expand Up @@ -320,6 +224,11 @@ export default function SettingsSidebarModulesAdmin(props) {
title: t('企业认证'),
description: t('企业认证审核管理'),
},
{
key: 'bankTransfer',
title: t('对公转账'),
description: t('对公转账与发票审核管理'),
},
{
key: 'setting',
title: t('系统设置'),
Expand Down