ConfigJsonEditAction.php 481 B

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