This commit is contained in:
u2nyakim 2025-08-25 17:30:02 +08:00
parent 59b6f1ceaa
commit 39af3f089a
2 changed files with 10 additions and 7 deletions

View File

@ -35,13 +35,15 @@ class ConfigController extends BaseController
'value' => '', 'value' => '',
'tips' => '', 'tips' => '',
'type' => '', 'type' => '',
'options' => '', 'option' => '',
'name' => '', 'name' => '',
'comments' => '', 'comments' => '',
'group'=> '', 'group'=> ''
'bind'=>''
]); ]);
$data['v_bind'] = $this->request->post('vBind'); $data['item_bind'] = $this->request->post('itemBind');
$data['item_style'] = $this->request->post('itemStyle');
$data['item_class'] = $this->request->post('itemClass');
$user = new SysConfig(); $user = new SysConfig();
$user->save($data); $user->save($data);
@ -57,12 +59,14 @@ class ConfigController extends BaseController
'value' => '', 'value' => '',
'type' => '', 'type' => '',
'tips' => '', 'tips' => '',
'options' => '', 'option' => '',
'name' => '', 'name' => '',
'comments' => '', 'comments' => '',
'group'=> '', 'group'=> '',
]); ]);
$data['v_bind'] = $this->request->put('vBind'); $data['item_bind'] = $this->request->post('itemBind');
$data['item_style'] = $this->request->post('itemStyle');
$data['item_class'] = $this->request->post('itemClass');
$user = SysConfig::findOrFail($data['id']); $user = SysConfig::findOrFail($data['id']);
$user->save($data); $user->save($data);

View File

@ -48,7 +48,6 @@ export const ItemLabels: Record<ItemType, string> = {
[ItemType.NUMBER]: "数字", [ItemType.NUMBER]: "数字",
}; };
export function getItemLabel(type: ItemType): string { export function getItemLabel(type: ItemType): string {
return ItemLabels[type] || type.toString(); return ItemLabels[type] || type.toString();
} }