改进组设置

This commit is contained in:
Wisp X 2022-01-24 15:58:42 +08:00
parent ed91764fd5
commit 035e1d140b
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ class GroupController extends Controller
\Illuminate\Support\Facades\View::share([
'default' => Group::getDefaultConfigs(),
'positions' => Group::POSITIONS,
'scanAliyunScenes' => Group::SCENES,
'scenes' => Group::SCENES,
]);
}

View File

@ -128,7 +128,7 @@
</div>
<div class="col-span-6 sm:col-span-3 mb-4">
<x-fieldset title="审核场景">
@foreach($scanAliyunScenes as $key => $scene)
@foreach($scenes as $key => $scene)
<x-fieldset-checkbox id="configs[scan_configs][drivers][aliyun][scenes][]_{{ $key }}" name="configs[scan_configs][drivers][aliyun][scenes][]" value="{{ $key }}">{{ $scene }}</x-fieldset-checkbox>
@endforeach
</x-fieldset>

View File

@ -137,7 +137,7 @@
</div>
<div class="col-span-6 sm:col-span-3 mb-4">
<x-fieldset title="审核场景">
@foreach($scanAliyunScenes as $key => $scene)
@foreach($scenes as $key => $scene)
<x-fieldset-checkbox id="configs[scan_configs][drivers][aliyun][scenes][]_{{ $key }}" name="configs[scan_configs][drivers][aliyun][scenes][]" value="{{ $key }}" :checked="in_array($key, $group->configs['scan_configs']['drivers']['aliyun']['scenes'])">{{ $scene }}</x-fieldset-checkbox>
@endforeach
</x-fieldset>