diff --git a/app/Controllers/Admin/Equipment/Link/LinkController.php b/app/Controllers/Admin/Equipment/Link/LinkController.php index 42db3cf..d18602e 100644 --- a/app/Controllers/Admin/Equipment/Link/LinkController.php +++ b/app/Controllers/Admin/Equipment/Link/LinkController.php @@ -4,6 +4,7 @@ namespace App\Controllers\Admin\Equipment\Link; use App\Controllers\Admin\Equipment\EquipmentController; +use CodeIgniter\HTTP\RedirectResponse; use CodeIgniter\HTTP\RequestInterface; use CodeIgniter\HTTP\ResponseInterface; use Psr\Log\LoggerInterface; @@ -23,4 +24,19 @@ abstract class LinkController extends EquipmentController $this->getService()->getModel()->orderBy('serviceinfo_uid', 'ASC', false); parent::setOrderByForList(); } + + protected function getResultPageByActon(string $action, string $message = MESSAGES["SUCCESS"]): RedirectResponse|string + { + switch ($action) { + case 'index': + case 'view': + $this->getHelper()->setViewDatas($this->getViewDatas()); + $result = view($this->view_path . 'popup' . DIRECTORY_SEPARATOR . $action, ['viewDatas' => $this->getViewDatas()]); + break; + default: + $result = parent::getResultPageByActon($action, $message); + break; + } + return $result; + } }