This website works better with JavaScript.
Home
Explore
Help
Sign In
server
/
new-api
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fix(frontend): sort_order 默认值显示为"未设置",编辑弹窗增加提示
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
master
fengsilin
2 weeks ago
parent
d5157a779c
commit
ed195cada5
10 changed files
with
21328 additions
and
21368 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
web/src/components/table/models/ModelsColumnDefs.jsx
+2
-1
web/src/components/table/models/modals/EditModelModal.jsx
+2
-1
web/src/components/table/models/modals/EditVendorModal.jsx
+3085
-3091
web/src/i18n/locales/en.json
+2912
-2918
web/src/i18n/locales/fr.json
+2895
-2901
web/src/i18n/locales/ja.json
+2925
-2931
web/src/i18n/locales/ru.json
+3464
-3470
web/src/i18n/locales/vi.json
+3062
-3068
web/src/i18n/locales/zh-CN.json
+2980
-2986
web/src/i18n/locales/zh-TW.json
+ 1
- 1
web/src/components/table/models/ModelsColumnDefs.jsx
View File
@@ -286,7 +286,7 @@ export const getModelsColumns = ({
title: t('排序'),
dataIndex: 'sort_order',
width: 60,
render: (val) => (val != null && val < 999999 ? val : ''),
render: (val) => (val != null && val < 999999 ? val :
t(
'
未设置
'
)
),
},
{
title: t('图标'),
+ 2
- 1
web/src/components/table/models/modals/EditModelModal.jsx
View File
@@ -338,7 +338,8 @@ const EditModelModal = (props) => {
field='sort_order'
label={t('排序')}
precision={0}
defaultValue={0}
placeholder={t('未设置')}
extraText={t('越小越靠前,留空则不参与排序')}
/>
</Col>
+ 2
- 1
web/src/components/table/models/modals/EditVendorModal.jsx
View File
@@ -146,7 +146,8 @@ const EditVendorModal = ({ visible, handleClose, refresh, editingVendor }) => {
field='sort_order'
label={t('排序')}
precision={0}
defaultValue={0}
placeholder={t('未设置')}
extraText={t('越小越靠前,留空则不参与排序')}
/>
</Col>
<Col span={24}>
+ 3085
- 3091
web/src/i18n/locales/en.json
File diff suppressed because it is too large
View File
+ 2912
- 2918
web/src/i18n/locales/fr.json
File diff suppressed because it is too large
View File
+ 2895
- 2901
web/src/i18n/locales/ja.json
File diff suppressed because it is too large
View File
+ 2925
- 2931
web/src/i18n/locales/ru.json
File diff suppressed because it is too large
View File
+ 3464
- 3470
web/src/i18n/locales/vi.json
File diff suppressed because it is too large
View File
+ 3062
- 3068
web/src/i18n/locales/zh-CN.json
File diff suppressed because it is too large
View File
+ 2980
- 2986
web/src/i18n/locales/zh-TW.json
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save