dbms_init...1
This commit is contained in:
parent
7005b9cfa8
commit
1f65af8a58
@ -306,6 +306,8 @@ class CommonHelper
|
||||
echo "field=>" . $field . ",value=>" . $value . "<br>";
|
||||
echo var_dump($viewDatas['control']['filter_optons'][$field]) . "<br>";
|
||||
}
|
||||
//index 액션에서만 filter_options를 변경시 선택된 값을 변경하는 기능능
|
||||
if (in_array($viewDatas['control']['action'], ['index'])) {
|
||||
$extras["onChange"] = sprintf(
|
||||
"document.location.href='%s/toggle/%s/%s?%s='+this.options[this.selectedIndex].value",
|
||||
current_url(),
|
||||
@ -313,9 +315,10 @@ class CommonHelper
|
||||
$field,
|
||||
$field
|
||||
);
|
||||
$value =
|
||||
$value = $this->getFieldForm($field, $value, $viewDatas, $extras);
|
||||
$this->getFieldForm($field, $value, $viewDatas, $extras);
|
||||
} else {
|
||||
$value = $viewDatas['control']['filter_optons'][$field][$value];
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@ -39,6 +39,10 @@ class UserService extends CommonService
|
||||
{
|
||||
return ['id', 'name', 'email', 'mobile', 'role', 'status'];
|
||||
}
|
||||
public function getViewFields(): array
|
||||
{
|
||||
return ['id', 'name', 'email', 'mobile', 'role', 'status'];
|
||||
}
|
||||
public function create(array $formDatas, mixed $entity = null): UserEntity
|
||||
{
|
||||
$formDatas['role'] = implode(DEFAULTS["DELIMITER_ROLE"], $formDatas['role']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user