1.增长admin_log.url字段长度varchar(2000)

2.修复一键生成CRUD时admin_ids字段多选下拉框bug
pull/51/head
PPPSCN 2018-03-15 20:06:17 +08:00
parent cd17735bef
commit 74394293f0
4 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ composer.lock
*.css.map
!.gitkeep
.env
/.svn

View File

@ -603,6 +603,8 @@ class Crud extends Command
$attrArr['data-params'] = '##replacetext##';
$search = '"##replacetext##"';
$replace = '\'{"custom[type]":"' . $table . '"}\'';
} elseif ($selectpageController == 'admin') {
$attrArr['data-source'] = 'auth/admin/selectpage';
}
if ($this->isMatchSuffix($field, $this->selectpagesSuffix)) {
$attrArr['data-multiple'] = 'true';

View File

@ -50,7 +50,7 @@ CREATE TABLE `fa_admin_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`admin_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理员ID',
`username` varchar(30) NOT NULL DEFAULT '' COMMENT '管理员名字',
`url` varchar(255) NOT NULL DEFAULT '' COMMENT '操作页面',
`url` varchar(2000) NOT NULL DEFAULT '' COMMENT '操作页面',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '日志标题',
`content` text NOT NULL COMMENT '内容',
`ip` varchar(50) NOT NULL DEFAULT '' COMMENT 'IP',

View File

@ -262,7 +262,7 @@ class Admin extends Backend
/**
* 下拉搜索
*/
protected function selectpage()
public function selectpage()
{
$this->dataLimit = 'auth';
$this->dataLimitField = 'id';