[增添]增添了datasource中的配置参数及对应页面

This commit is contained in:
makotocc0107
2024-08-27 16:00:00 +08:00
parent 205c74ddbe
commit 016e6b215d
4 changed files with 84 additions and 20 deletions

View File

@@ -51,6 +51,25 @@ class ManageDataSource extends SettingsPage
->label('opcua服务地址')
->prefix('opc.tcp://')
->required(),
Select::make('read_mode')
->label("读取模式")
->options([
'Sync' => '同步模式',
'Async' => '异步模式',
'Monitor' => '监控模式',
])
->required(),
TextInput::make('cache_update')
->label("缓存更新时间")
->suffix("ms")
->required(),
TextInput::make('cache_timeout')
->label("缓存超时时间")
->suffix("ms")
->required()
])
->visible(fn($get) => in_array($get('data_source_type'), ['opcua'])),