mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-01 07:20:56 +00:00
修改主键不加入列
This commit is contained in:
parent
da500b94c5
commit
4cc816b2cf
@ -88,11 +88,13 @@ class SystemCrud extends AuthController
|
||||
}
|
||||
//收集列表展示数据
|
||||
if ($item['is_table'] && !in_array($item['field_type'], ['primaryKey', 'addSoftDelete', 'addSoftDelete'])) {
|
||||
$columnField[] = [
|
||||
'field' => $item['field'],
|
||||
'name' => $item['table_name'],
|
||||
'type' => $item['from_type'],
|
||||
];
|
||||
if (isset($item['primaryKey']) && !$item['primaryKey']) {
|
||||
$columnField[] = [
|
||||
'field' => $item['field'],
|
||||
'name' => $item['table_name'],
|
||||
'type' => $item['from_type'],
|
||||
];
|
||||
}
|
||||
}
|
||||
//收集表单展示数据
|
||||
if ($item['from_type']) {
|
||||
|
||||
@ -700,8 +700,6 @@ class SystemCrudServices extends BaseServices
|
||||
$res = $this->dao->save($crudDate);
|
||||
}
|
||||
|
||||
// throw new ValidateException('测试中');
|
||||
|
||||
return $res;
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user