feat: 参考原型图 ui优化提交 企业端-企业中心 相关的页面

This commit is contained in:
zhanjunhao
2026-11-06 20:19:43 +08:00
parent 43048626a6
commit a075732cb4
147 changed files with 9816 additions and 8768 deletions
@@ -60,7 +60,7 @@ const EditTokenModal = (props) => {
? (key, options) => {
const result = originalT(key, options);
return typeof result === 'string'
? result.replace(/令牌/g, props.labelReplace)
? result.replace(/密钥/g, props.labelReplace)
: result;
}
: originalT;
@@ -365,7 +365,7 @@ const EditTokenModal = (props) => {
});
const { success, message } = res.data;
if (success) {
showSuccess(t('令牌更新成功!'));
showSuccess(t('密钥更新成功!'));
props.refresh();
props.handleClose();
} else {
@@ -393,7 +393,7 @@ const EditTokenModal = (props) => {
}
}
if (successCount > 0) {
showSuccess(t('令牌创建成功,请在列表页面点击复制获取令牌!'));
showSuccess(t('密钥创建成功,请在列表页面点击复制获取密钥!'));
props.refresh();
props.handleClose();
}
@@ -464,10 +464,10 @@ const EditTokenModal = (props) => {
</div>
<div>
<h2 className='text-base font-semibold text-gray-800 dark:text-gray-100'>
{isEdit ? t('编辑令牌') : t('创建令牌')}
{isEdit ? t('编辑密钥') : t('创建密钥')}
</h2>
<p className='text-xs text-gray-500 dark:text-gray-400'>
{isEdit ? t('修改令牌配置') : t('快速创建访问令牌')}
{isEdit ? t('修改密钥配置') : t('快速创建访问密钥')}
</p>
</div>
</div>
@@ -506,16 +506,16 @@ const EditTokenModal = (props) => {
<Form.Input
field='name'
noLabel
placeholder={t('请输入令牌名称')}
placeholder={t('请输入密钥名称')}
rules={[{ required: true, message: t('请输入名称') }]}
showClear
/>
</div>
{/* 秘钥分组 */}
{/* 密钥分组 */}
<div>
<FieldLabel icon={Layers} iconColor='text-brand'>
{t('令牌分组')}
{t('密钥分组')}
</FieldLabel>
{groups.length > 0 ? (
<Form.Select
@@ -664,7 +664,7 @@ const EditTokenModal = (props) => {
<Form.Switch
field='unlimited_quota'
label={t('无限额度')}
extraText={t('开启后令牌不限制使用额度')}
extraText={t('开启后密钥不限制使用额度')}
/>
{!values.unlimited_quota && (
@@ -755,7 +755,7 @@ const EditTokenModal = (props) => {
icon={<Check size={16} />}
loading={loading}
>
{isEdit ? t('保存修改') : t('创建令牌')}
{isEdit ? t('保存修改') : t('创建密钥')}
</Button>
<Button
theme='light'