Просмотр исходного кода

fix(admin): improve channel form inputs

Expose channel public_name in the edit modal and load a larger channel page when building model settings views.

Co-Authored-By: Codex <noreply@anthropic.com>
master
fengsilin 1 неделю назад
Родитель
Сommit
8150993caf
2 измененных файлов: 11 добавлений и 1 удалений
  1. +10
    -0
      web/src/components/table/channels/modals/EditChannelModal.jsx
  2. +1
    -1
      web/src/pages/Setting/Ratio/ModelSettingsVisualEditor.jsx

+ 10
- 0
web/src/components/table/channels/modals/EditChannelModal.jsx Просмотреть файл

@@ -2014,6 +2014,16 @@ const EditChannelModal = (props) => {
autoComplete='new-password'
/>

<Form.Input
field='public_name'
label={t('公开名称')}
placeholder={t('请输入公开名称')}
rules={[{ required: true, message: t('请输入公开名称') }]}
showClear
onChange={(value) => handleInputChange('public_name', value)}
autoComplete='new-password'
/>

{inputs.type === 33 && (
<>
<Form.Select


+ 1
- 1
web/src/pages/Setting/Ratio/ModelSettingsVisualEditor.jsx Просмотреть файл

@@ -101,7 +101,7 @@ export default function ModelSettingsVisualEditor(props) {
// Load channels for channel pricing view
const loadChannels = useCallback(async () => {
try {
const res = await API.get('/api/channel/');
const res = await API.get('/api/channel/?page_size=100');
if (res.data.success) {
// API returns {items: [...], total: ...}, extract items array
const data = res.data.data;


Загрузка…
Отмена
Сохранить