up.
This commit is contained in:
parent
59b6f1ceaa
commit
39af3f089a
@ -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);
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user