ConfigIntEditAction.php 467 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App\Module\System\Admin\Actions;
  3. use App\Module\System\Enums\CONFIG_TYPE;
  4. /**
  5. * 数字 动作
  6. */
  7. class ConfigIntEditAction extends \UCore\DcatAdmin\RowAction
  8. {
  9. protected $title = '修改数值';
  10. use ConfigEditAction;
  11. public function configEditForm()
  12. {
  13. return ConfigIntEditForm::class;
  14. }
  15. public function allowed()
  16. {
  17. return $this->getRow()->type == CONFIG_TYPE::TYPE_INT->valueInt();
  18. }
  19. }