Browse Source

fix(frontend): sort_order 默认值显示为"未设置",编辑弹窗增加提示

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
master
fengsilin 2 weeks ago
parent
commit
ed195cada5
10 changed files with 21328 additions and 21368 deletions
  1. +1
    -1
      web/src/components/table/models/ModelsColumnDefs.jsx
  2. +2
    -1
      web/src/components/table/models/modals/EditModelModal.jsx
  3. +2
    -1
      web/src/components/table/models/modals/EditVendorModal.jsx
  4. +3085
    -3091
      web/src/i18n/locales/en.json
  5. +2912
    -2918
      web/src/i18n/locales/fr.json
  6. +2895
    -2901
      web/src/i18n/locales/ja.json
  7. +2925
    -2931
      web/src/i18n/locales/ru.json
  8. +3464
    -3470
      web/src/i18n/locales/vi.json
  9. +3062
    -3068
      web/src/i18n/locales/zh-CN.json
  10. +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


Loading…
Cancel
Save