From 0c8080c332862bb1f98d7deb8f53b495412cf6a9 Mon Sep 17 00:00:00 2001 From: developer Date: Fri, 3 Apr 2026 11:50:10 +0800 Subject: [PATCH] =?UTF-8?q?plan7=20selector=20-=20=D0=B4=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=B0=D0=B4=D0=BC=D0=B8=D0=BD?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=B4=D0=BB=D1=8F=20=D1=81=D0=BE=D1=85=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20api=20=D0=B4=D0=B0=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php | 5 ++--- app/Modules/Plan7/Views/livewire/selector.blade.php | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php b/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php index 1f51c96..38b0170 100644 --- a/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php +++ b/app/Modules/Plan7/Http/Livewire/Plan7SelectorLivewire.php @@ -9,7 +9,7 @@ class Plan7SelectorLivewire extends Component { public $mode = 'new'; public $complexId; - public $containerId; + public $containerId = 'plan7__selector'; public $filter = []; public $allObjects; @@ -20,9 +20,8 @@ class Plan7SelectorLivewire extends Component public $objects = []; private $apiSummary; private $apiAll; - public function mount($containerId = 'plan7__selector') + public function mount() { - $this->containerId = $containerId; if ($plan7ApiData = Complex::find($this->complexId)->getPlan7ApiData()) { $this->apiSummary = 'https://plan7.ru/catalog/exp/json/summary/?token=' . $plan7ApiData->token . '&zk=' . $plan7ApiData->zk; $this->apiAll = 'https://plan7.ru/catalog/exp/json/?token=' . $plan7ApiData->token . '&zk=' . $plan7ApiData->zk; diff --git a/app/Modules/Plan7/Views/livewire/selector.blade.php b/app/Modules/Plan7/Views/livewire/selector.blade.php index e2a3da2..bdad764 100644 --- a/app/Modules/Plan7/Views/livewire/selector.blade.php +++ b/app/Modules/Plan7/Views/livewire/selector.blade.php @@ -21,8 +21,9 @@ @else Выбрать помещение @endif + [{{ {{ $complexId }} }}] - {{ $complexId }} +