表单功能完善

This commit is contained in:
2017-10-12 11:31:46 +08:00
parent 805697d643
commit 3a1ad06991
4 changed files with 81 additions and 7 deletions

View File

@@ -37,7 +37,7 @@ class FormAttr extends Base{
return $db->columField('form_' . strtolower($name), $attr)->query();
}
});
self::beforeUpdate(function($data){dump($data);
self::beforeUpdate(function($data){
$attr = $data->toArray();
$attr['action'] = 'CHANGE';
$attr['oldname'] = db('FormAttr')->where('id', $attr['id'])->value('name');