jqhph / dcat-admin-demo Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
我安装了这个仓库的代码,但是发现和在线demo不一样。
在线demo多了一些功能。
能上传新版吗。
谢谢
Grid::make(new UserDevice(['userInfo', 'userDeviceStatusInfo']), function (Grid $grid) {...
grid数据表格声明了关联关系,但是内部使用关联字段的 orderBy 报错
$grid->model()->orderBy('userInfo.id', 'desc');
Expand 手风琴弹出来,如果是双击而不是单机 那么 弹出和 弹回 就会失效,弹出来就会立刻消失的bug
生成商家后台后,导航栏无退出登录按钮,bootstrap.php文件中增加自定义导航也未生效。
安装dcat-admin以后,访问http://localhost/admin/auth/login,前端展示格式乱了, 应该是前端资源没有正确加载,请问如何解决
请支持Laravel 9谢谢
使用场景如下:
用户列表,有一个按钮可以以树形图形式展示这个用户下所有的团队成员。
用户的上下级关系如下:
ID为1的用户其parent_id=0,展示出来的关系是完整的,但当点击他的下级,如2、3时,弹出来的模态框就会提示无数据。
$grid->footer(function ($collection) {
$count = UserRepository::getUserTeamCount($this->userId);
return "<div>团队总人数 : $count 人</div>";
});
辛苦了。:coffee:
$form->select('type')
...
->when(10, function (Form\NestedForm $form) {
$form->selectTable('approvers')
->dialogWidth('50%')
->from(UserTable::make(['company_id' => $this->company->id]));
})
->when(20, function (Form\NestedForm $form) {
$form->multipleSelectTable('approvers')
->dialogWidth('50%')
->from(UserTable::make(['company_id' => $this->company->id]));
})
满足第一个条件时单选没有问题,满足第二个条件时仍然只能单选
调换顺序之后两个都可以多选
编辑/添加 页面 一对多情况下 新增一个多 并且多的参数值设置了required,js移除 点击提交表单 会提示 required
Class 'Dcat\Admin\Controllers\AdminController' not found
1.首先设置 laravel APP_URL=a.domain
2.在 AppServiceProvider boot 中添加 app('url')->forceRootUrl(env('APP_URL'));
3.在 a.domain 服务器将流量转到 admin ip
然后访问 a.domain/admin 后台中所有form action地址仍然是IP
$form->select('province')->options(...)->load('city','/api/city');
出现 TypeError: Dcat.helpers.loadFields is not a function
在网站是HTTPS的情况下,百度地图2.0版本js加载HTTP资源浏览器警告导致地图组件无法使用,改成百度地图改成3.0版本就好了。
复现步骤
1、菜单进入一个列表页面 (带一个modal弹窗)例如:
$grid->column('slice_table', '绑定切片')->display('查看')
->modal(function (Grid\Displayers\Modal $modal) {
$modal->title('切片列表');
return BindSliceTable::make()->payload(['meeting_id' => $this->id]);
});
2、进入一个新的列表->点击新增按钮->弹窗异步表单 table组件例如
$this->table('library_set','初始导入题形',function (NestedForm $table){
$table->select('library_id','病理库')
->options(SliceLibraryModel::getOptWithSliceCount())->required();
$table->number('num','题目数量')
->attribute('min', 1)
->required();
});
这个时候,此table组件的新增按钮会失效,点击无效果,控制台无信息
设置grid的筛选为panle时 搜索与重置按钮距离下间距太紧 没有空隙如何调整
参考 http://103.39.211.179:8080/admin/full 页面,打开用户选择弹窗
环境 macos chrome
目前观察好像只有后台操作界面多语
如果前台要双语就要自己另外写多语系编辑
另外我在测试编辑器editor指定语言包languageUrl()给js
似乎无作用
如果我想要做切换多语言编辑表单
在编辑器的部份换成对应的语言无法成功切换过去
hello auther:
building in php version:8.0.0
Problem 1
- Root composer.json requires php ^7.1.3 but your php version (8.0.0) does not satisfy that requirement.
Problem 2
- laravel/framework[v5.8.0, ..., 5.8.x-dev] require php ^7.1.3 -> your php version (8.0.0) does not satisfy that requirement.
- Root composer.json requires laravel/framework 5.8.* -> satisfiable by laravel/framework[v5.8.0, ..., 5.8.x-dev].
$from->XXX生成出来的表单控件都不带ID,有什么办法解决这个问题吗,旧项目升级,针对表单控件id写了不少js,现在全失效了
Generating optimized autoload files
post-autoload-dump: Illuminate\Foundation\ComposerScripts::postAutoloadDump
post-autoload-dump: @php artisan package:discover --ansi
Executing command (CWD): "C:\xampp\php\php.exe" -d allow_url_fopen="1" -d disable_functions="" -d memory_limit="1536M" artisan package:discover --ansi
In routes.php line 7:
Call to undefined method Dcat\Admin\Admin::routes()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Dcat Admin的相关问题请前往 https://github.com/jqhph/dcat-admin/issues 提交,感谢配合
望解答
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.