1
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -28,7 +28,7 @@
|
|||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<script type="module" crossorigin src="/assets/index-DRV5getO.js"></script>
|
<script type="module" crossorigin src="/assets/index-Be93DOW4.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-D3fwIbOp.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-D3fwIbOp.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -159,10 +159,6 @@ const AdminSettings: React.FC = () => {
|
|||||||
if (!data.some(c => c.key === 'single_device_login_enabled')) {
|
if (!data.some(c => c.key === 'single_device_login_enabled')) {
|
||||||
data.push({ id: 'cfg_single_device_login_enabled', key: 'single_device_login_enabled', value: 'false', description: '启用单设备登录(同端互斥):同一设备类型只允许一个登录会话' });
|
data.push({ id: 'cfg_single_device_login_enabled', key: 'single_device_login_enabled', value: 'false', description: '启用单设备登录(同端互斥):同一设备类型只允许一个登录会话' });
|
||||||
}
|
}
|
||||||
// 确保 OA 地址配置存在
|
|
||||||
if (!data.some(c => c.key === 'oa_url')) {
|
|
||||||
data.push({ id: 'cfg_oa_url', key: 'oa_url', value: '', description: 'OA系统地址' });
|
|
||||||
}
|
|
||||||
setConfigs(data);
|
setConfigs(data);
|
||||||
const formValues: Record<string, any> = {};
|
const formValues: Record<string, any> = {};
|
||||||
data.forEach(c => { formValues[c.key] = c.value; });
|
data.forEach(c => { formValues[c.key] = c.value; });
|
||||||
@@ -317,7 +313,7 @@ const AdminSettings: React.FC = () => {
|
|||||||
'协议配置': configs.filter(c => c.key === 'user_agreement_privacy_url'),
|
'协议配置': configs.filter(c => c.key === 'user_agreement_privacy_url'),
|
||||||
'SEO 设置': configs.filter(c => c.key.startsWith('seo_')),
|
'SEO 设置': configs.filter(c => c.key.startsWith('seo_')),
|
||||||
'用户积分配置': configs.filter(c => c.key.startsWith('user_') && c.key.includes('credits')),
|
'用户积分配置': configs.filter(c => c.key.startsWith('user_') && c.key.includes('credits')),
|
||||||
'系统对接': configs.filter(c => c.key.startsWith('oa_')),
|
'收款银行': [],
|
||||||
'其他配置': configs.filter(c => c.key === 'operation_manual'),
|
'其他配置': configs.filter(c => c.key === 'operation_manual'),
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -530,33 +526,15 @@ const AdminSettings: React.FC = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'integration',
|
key: 'integration',
|
||||||
label: '系统对接',
|
label: '收款银行',
|
||||||
children: (
|
children: (
|
||||||
<div>
|
<div>
|
||||||
<Form form={form} layout="vertical">
|
|
||||||
<div style={{ marginBottom: 24 }}>
|
|
||||||
<Typography.Text strong style={{ fontSize: 14, display: 'block', marginBottom: 12, paddingBottom: 8, borderBottom: '1px solid #f0f0f5' }}>
|
|
||||||
系统对接
|
|
||||||
</Typography.Text>
|
|
||||||
{groupedConfigs['系统对接']?.map(config => (
|
|
||||||
<Form.Item
|
|
||||||
key={config.id}
|
|
||||||
name={config.key}
|
|
||||||
label={<span style={{ fontWeight: 500 }}>{config.description}</span>}
|
|
||||||
extra={getFieldDescription(config)}
|
|
||||||
>
|
|
||||||
{getFieldComponent(config)}
|
|
||||||
</Form.Item>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</Form>
|
|
||||||
|
|
||||||
{/* 银行账户管理 */}
|
{/* 银行账户管理 */}
|
||||||
<div style={{ marginBottom: 24 }}>
|
<div style={{ marginBottom: 24 }}>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 12, paddingBottom: 8, borderBottom: '1px solid #f0f0f5' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 12, paddingBottom: 8, borderBottom: '1px solid #f0f0f5' }}>
|
||||||
<Typography.Text strong style={{ fontSize: 14 }}>
|
<Typography.Text strong style={{ fontSize: 14 }}>
|
||||||
<BankOutlined style={{ marginRight: 8, color: '#6366f1' }} />
|
<BankOutlined style={{ marginRight: 8, color: '#6366f1' }} />
|
||||||
银行账户管理
|
收款银行管理
|
||||||
</Typography.Text>
|
</Typography.Text>
|
||||||
<Button type="primary" icon={<PlusOutlined />} size="small" onClick={() => openAccountModal()}>
|
<Button type="primary" icon={<PlusOutlined />} size="small" onClick={() => openAccountModal()}>
|
||||||
新增账户
|
新增账户
|
||||||
|
|||||||
Reference in New Issue
Block a user