调整设备设置表单
parent
ed5591710d
commit
ec9f9acad9
|
|
@ -430,46 +430,47 @@ class DeviceController extends AdminController
|
||||||
return amisMake()->Grid()->columns([
|
return amisMake()->Grid()->columns([
|
||||||
amisMake()->Wrapper()->sm(6)->body([
|
amisMake()->Wrapper()->sm(6)->body([
|
||||||
amisMake()->Panel()->title('智能开关设置')
|
amisMake()->Panel()->title('智能开关设置')
|
||||||
->subFormMode('horizontal')
|
|
||||||
->labelWidth(100)
|
->labelWidth(100)
|
||||||
->className('Panel--success')
|
->className('Panel--success')
|
||||||
->body([
|
->body([
|
||||||
amisMake()->FieldSetControl()->title('智能开启')->body([
|
\amisMake()->Form()->title('')->mode('horizontal')->body([
|
||||||
\amisMake()->SwitchControl()->name('is_enable')->label('开关'),
|
amisMake()->FieldSetControl()->title('智能开启')->body([
|
||||||
\amisMake()->ConditionBuilderControl()->label('条件')->fields([
|
\amisMake()->SwitchControl()->name('open_is_enable')->label('开关'),
|
||||||
[
|
\amisMake()->ConditionBuilderControl()->label('条件')->fields([
|
||||||
'label' => '温度', 'type'=>'number','step'=>'0.01','name'=>'q',
|
[
|
||||||
'operators'=> [
|
'label' => '温度', 'type'=>'number','step'=>'0.01','name'=>'q',
|
||||||
'equal', 'not_equal', 'less', 'less_or_equal', 'greater', 'greater_or_equal', 'between', 'not_between',
|
'operators'=> [
|
||||||
// 'is_empty', 'is_not_empty'
|
'equal', 'not_equal', 'less', 'less_or_equal', 'greater', 'greater_or_equal', 'between', 'not_between',
|
||||||
]
|
// 'is_empty', 'is_not_empty'
|
||||||
],
|
]
|
||||||
[
|
],
|
||||||
'label' => '湿度', 'type'=>'number','step'=>'0.01','name'=>'x',
|
[
|
||||||
'operators'=> [
|
'label' => '湿度', 'type'=>'number','step'=>'0.01','name'=>'x',
|
||||||
'equal', 'not_equal', 'less', 'less_or_equal', 'greater', 'greater_or_equal', 'between', 'not_between',
|
'operators'=> [
|
||||||
// 'is_empty', 'is_not_empty'
|
'equal', 'not_equal', 'less', 'less_or_equal', 'greater', 'greater_or_equal', 'between', 'not_between',
|
||||||
]
|
// 'is_empty', 'is_not_empty'
|
||||||
],
|
]
|
||||||
|
],
|
||||||
|
]),
|
||||||
]),
|
]),
|
||||||
]),
|
amisMake()->FieldSetControl()->title('智能关闭')->body([
|
||||||
amisMake()->FieldSetControl()->title('智能关闭')->body([
|
\amisMake()->SwitchControl()->name('close_is_enable')->label('开关'),
|
||||||
\amisMake()->SwitchControl()->name('is_enable')->label('开关'),
|
\amisMake()->ConditionBuilderControl()->label('条件')->fields([
|
||||||
\amisMake()->ConditionBuilderControl()->label('条件')->fields([
|
[
|
||||||
[
|
'label' => '温度', 'type'=>'number','step'=>'0.01','name'=>'q',
|
||||||
'label' => '温度', 'type'=>'number','step'=>'0.01','name'=>'q',
|
'operators'=> [
|
||||||
'operators'=> [
|
'equal', 'not_equal', 'less', 'less_or_equal', 'greater', 'greater_or_equal', 'between', 'not_between',
|
||||||
'equal', 'not_equal', 'less', 'less_or_equal', 'greater', 'greater_or_equal', 'between', 'not_between',
|
// 'is_empty', 'is_not_empty'
|
||||||
// 'is_empty', 'is_not_empty'
|
]
|
||||||
]
|
],
|
||||||
],
|
[
|
||||||
[
|
'label' => '湿度', 'type'=>'number','step'=>'0.01','name'=>'x',
|
||||||
'label' => '湿度', 'type'=>'number','step'=>'0.01','name'=>'x',
|
'operators'=> [
|
||||||
'operators'=> [
|
'equal', 'not_equal', 'less', 'less_or_equal', 'greater', 'greater_or_equal', 'between', 'not_between',
|
||||||
'equal', 'not_equal', 'less', 'less_or_equal', 'greater', 'greater_or_equal', 'between', 'not_between',
|
// 'is_empty', 'is_not_empty'
|
||||||
// 'is_empty', 'is_not_empty'
|
]
|
||||||
]
|
],
|
||||||
],
|
]),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
])
|
])
|
||||||
|
|
@ -512,12 +513,14 @@ class DeviceController extends AdminController
|
||||||
->labelWidth(80)
|
->labelWidth(80)
|
||||||
->className('Panel--success')
|
->className('Panel--success')
|
||||||
->body([
|
->body([
|
||||||
amisMake()->FieldSetControl()->title('定时喷灌')->body([
|
\amisMake()->Form()->title('')->mode('horizontal')->body([
|
||||||
\amisMake()->SwitchControl()->name('is_enable')->label('开关'),
|
amisMake()->FieldSetControl()->title('定时喷灌')->body([
|
||||||
\amisMake()->ArrayControl()->name('config')->label('定时')->items([
|
\amisMake()->SwitchControl()->name('is_enable')->label('开关'),
|
||||||
amisMake()->ComboControl()->items([
|
\amisMake()->ArrayControl()->name('config')->label('定时')->items([
|
||||||
\amisMake()->InputTimeRange(),
|
amisMake()->ComboControl()->items([
|
||||||
\amisMake()->TextControl()->name('input')->label('喷灌量')->labelWidth(30),
|
\amisMake()->InputTimeRange(),
|
||||||
|
\amisMake()->TextControl()->name('input')->label('喷灌量')->labelWidth(30),
|
||||||
|
]),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue