3996-fix(entry_summary): get entry.id #968
|
@ -1,6 +1,6 @@
|
||||||
<vn-crud-model
|
<vn-crud-model
|
||||||
vn-id="buysModel"
|
vn-id="buysModel"
|
||||||
url="Entries/{{$ctrl.$params.id}}/getBuys"
|
url="Entries/{{$ctrl.entry.id}}/getBuys"
|
||||||
limit="5"
|
limit="5"
|
||||||
data="buys"
|
data="buys"
|
||||||
auto-load="true">
|
auto-load="true">
|
||||||
|
|
|
@ -4,6 +4,9 @@ import Summary from 'salix/components/summary';
|
||||||
|
|
||||||
class Controller extends Summary {
|
class Controller extends Summary {
|
||||||
get entry() {
|
get entry() {
|
||||||
|
if (!this._entry)
|
||||||
|
return this.$params;
|
||||||
|
|
||||||
return this._entry;
|
return this._entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue