Variable names conflicts in body of datagrid causing view action to producce exception is fixed
This commit is contained in:
parent
6f4aebe423
commit
ca95d1d595
|
|
@ -20,6 +20,7 @@ abstract class AbsGrid
|
||||||
protected $massActions = [];
|
protected $massActions = [];
|
||||||
protected $request;
|
protected $request;
|
||||||
protected $parse;
|
protected $parse;
|
||||||
|
// protected $enableMassAction = false;
|
||||||
// protected $gridName = null;
|
// protected $gridName = null;
|
||||||
|
|
||||||
abstract public function prepareMassActions();
|
abstract public function prepareMassActions();
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<span class="checkbox">
|
<span class="checkbox">
|
||||||
<input type="checkbox" v-model="dataIds" @change="select" :value="{{ $record->{$index} }}">
|
<input type="checkbox" v-model="dataIds" @change="select" value="{{ $record->{$index} }}">
|
||||||
|
|
||||||
<label class="checkbox-view" for="checkbox1"></label>
|
<label class="checkbox-view" for="checkbox1"></label>
|
||||||
</span>
|
</span>
|
||||||
|
|
@ -11,9 +11,9 @@
|
||||||
|
|
||||||
@foreach($columns as $column)
|
@foreach($columns as $column)
|
||||||
@php
|
@php
|
||||||
$index = explode('.', $column['index']);
|
$indexName = explode('.', $column['index']);
|
||||||
|
|
||||||
$index = end($index);
|
$indexName = end($indexName);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if(isset($column['wrapper']))
|
@if(isset($column['wrapper']))
|
||||||
|
|
|
||||||
|
|
@ -583,8 +583,6 @@
|
||||||
|
|
||||||
//triggered when any select box is clicked in the datagrid
|
//triggered when any select box is clicked in the datagrid
|
||||||
select() {
|
select() {
|
||||||
console.log(this.dataIds);
|
|
||||||
|
|
||||||
this.allSelected = false;
|
this.allSelected = false;
|
||||||
|
|
||||||
this.massActionsToggle = true;
|
this.massActionsToggle = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue