主键不自增时主键显示在表单
This commit is contained in:
parent
3d39d38287
commit
5d3ce0ff12
@ -799,6 +799,7 @@ EOF;
|
||||
$field = $info['field'];
|
||||
$default = $columns[$key]['default'];
|
||||
$control = strtolower($info['control']);
|
||||
$auto_increment = $columns[$key]['auto_increment'];
|
||||
// 搜索框里上传组件替换为input
|
||||
if ($type == 'search' && in_array($control, ['upload', 'uploadimg'])) {
|
||||
$control = 'input';
|
||||
@ -815,7 +816,7 @@ EOF;
|
||||
$props['value'] = $default;
|
||||
}
|
||||
// 表单不显示主键
|
||||
if ($filter == 'form_show' && $primary_key && $field == $primary_key) {
|
||||
if (($filter == 'form_show' && $primary_key && $field == $primary_key && $auto_increment)) {
|
||||
continue;
|
||||
}
|
||||
// 范围查询
|
||||
|
@ -17,5 +17,5 @@ return [
|
||||
'controller_suffix' => 'Controller',
|
||||
'controller_reuse' => false,
|
||||
'plugin_market_host' => 'https://www.workerman.net',
|
||||
'version' => '0.6.0'
|
||||
'version' => '0.6.12'
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user