user
parent
00c0fa5054
commit
0fa3fb7e1e
|
|
@ -98,4 +98,7 @@ amis()->DialogAction()->label("选择图片库")->dialog(
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- 表单验证: 服务端返回 `errors` 错误信息, 未在输入框上显示, 示例文件: `app\Services\UserService.php`, [组件文档](https://aisuda.bce.baidu.com/amis/zh-CN/components/form/formitem#%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%A0%A1%E9%AA%8C)
|
- 表单验证: 服务端返回 `errors` 错误信息, 未在输入框上显示, 示例文件: `app\Services\UserService.php`, [组件文档](https://aisuda.bce.baidu.com/amis/zh-CN/components/form/formitem#%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%A0%A1%E9%AA%8C)
|
||||||
- CURD 组件: 如果存在 `bulkActions` 按钮时, 表格会出现滚动条
|
- CURD 组件: 如果存在 `bulkActions` 按钮时, 表格会出现滚动条
|
||||||
|
|
||||||
|
- 用户: 会员等级, 余额, 积分
|
||||||
|
- 商城: 商品管理, 订单管理
|
||||||
|
|
@ -52,8 +52,9 @@ class UserController extends AdminController
|
||||||
public function form()
|
public function form()
|
||||||
{
|
{
|
||||||
return $this->baseForm()->mode('horizontal')->body([
|
return $this->baseForm()->mode('horizontal')->body([
|
||||||
amis()->GroupControl()->body([
|
amis()->ImageControl()->name('avatar')->label(__('users.avatar')),
|
||||||
amis()->ImageControl()->name('avatar')->label(__('users.avatar'))->id('user_avatar'),
|
// amis()->GroupControl()->body([
|
||||||
|
// amis()->ImageControl()->name('avatar')->label(__('users.avatar'))->id('user_avatar'),
|
||||||
// amis()->DialogAction()->label("选择图片库")->dialog(
|
// amis()->DialogAction()->label("选择图片库")->dialog(
|
||||||
// amis()->Dialog()->title('图片库')->body(
|
// amis()->Dialog()->title('图片库')->body(
|
||||||
// amis()->ListControl()->name('_library_images')->options([
|
// amis()->ListControl()->name('_library_images')->options([
|
||||||
|
|
@ -69,7 +70,7 @@ class UserController extends AdminController
|
||||||
// ]
|
// ]
|
||||||
// ])
|
// ])
|
||||||
// ),
|
// ),
|
||||||
]),
|
// ]),
|
||||||
amis()->TextControl()->name('phone')->label(__('users.phone'))->required(),
|
amis()->TextControl()->name('phone')->label(__('users.phone'))->required(),
|
||||||
amis()->TextControl()->name('name')->label(__('users.name')),
|
amis()->TextControl()->name('name')->label(__('users.name')),
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue