diff --git a/application/admin/command/Crud.php b/application/admin/command/Crud.php index a60628a5..df2f7b17 100644 --- a/application/admin/command/Crud.php +++ b/application/admin/command/Crud.php @@ -553,7 +553,7 @@ class Crud extends Command if ($v['COLUMN_KEY'] == 'PRI' && !$priDefined) { $priDefined = TRUE; - $javascriptList[] = "{field: 'state', checkbox: true}"; + $javascriptList[] = "{checkbox: true}"; } //构造JS列信息 $javascriptList[] = $this->getJsColumn($field, $v['DATA_TYPE']); @@ -708,7 +708,6 @@ class Crud extends Command return; $fieldList = $this->getFieldListName($field); $methodName = 'get' . ucfirst($fieldList); - unset($v); foreach ($itemArr as $k => &$v) { $v = "__('" . ucfirst($v) . "')"; diff --git a/application/admin/command/Crud/stubs/add.stub b/application/admin/command/Crud/stubs/add.stub index ac078159..61a84b3b 100644 --- a/application/admin/command/Crud/stubs/add.stub +++ b/application/admin/command/Crud/stubs/add.stub @@ -1,7 +1,7 @@
{%addList%} -