Procházet zdrojové kódy

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 před 1 týdnem
rodič
revize
8150993caf
2 změnil soubory, kde provedl 11 přidání a 1 odebrání
  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 Zobrazit soubor

@@ -2014,6 +2014,16 @@ const EditChannelModal = (props) => {
autoComplete='new-password' 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 && ( {inputs.type === 33 && (
<> <>
<Form.Select <Form.Select


+ 1
- 1
web/src/pages/Setting/Ratio/ModelSettingsVisualEditor.jsx Zobrazit soubor

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


Načítá se…
Zrušit
Uložit