up.
This commit is contained in:
parent
59b6f1ceaa
commit
39af3f089a
@ -35,13 +35,15 @@ class ConfigController extends BaseController
|
||||
'value' => '',
|
||||
'tips' => '',
|
||||
'type' => '',
|
||||
'options' => '',
|
||||
'option' => '',
|
||||
'name' => '',
|
||||
'comments' => '',
|
||||
'group'=> '',
|
||||
'bind'=>''
|
||||
'group'=> ''
|
||||
]);
|
||||
$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->save($data);
|
||||
@ -57,12 +59,14 @@ class ConfigController extends BaseController
|
||||
'value' => '',
|
||||
'type' => '',
|
||||
'tips' => '',
|
||||
'options' => '',
|
||||
'option' => '',
|
||||
'name' => '',
|
||||
'comments' => '',
|
||||
'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->save($data);
|
||||
|
||||
@ -48,7 +48,6 @@ export const ItemLabels: Record<ItemType, string> = {
|
||||
[ItemType.NUMBER]: "数字",
|
||||
};
|
||||
|
||||
|
||||
export function getItemLabel(type: ItemType): string {
|
||||
return ItemLabels[type] || type.toString();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user