| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace App\Module\System\Admin\Actions;
- use App\Module\System\Enums\CONFIG_TYPE;
- /**
- * json键值对 动作
- */
- class ConfigJsonEditAction extends \UCore\DcatAdmin\RowAction
- {
- protected $title = '修改数值';
- use ConfigEditAction;
- public function configEditForm(): string
- {
- return ConfigJsonEditForm::class;
- }
- public function allowed()
- {
- return $this->getRow()->type == CONFIG_TYPE::TYPE_JSON->value();
- }
- }
|