plan7 selector - добавлена админка для сохранения api данных
This commit is contained in:
parent
a1738ac8f7
commit
0c8080c332
@ -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;
|
||||
|
||||
@ -21,8 +21,9 @@
|
||||
@else
|
||||
Выбрать помещение
|
||||
@endif
|
||||
[{{ {{ $complexId }} }}]
|
||||
</button>
|
||||
{{ $complexId }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user