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