bugs fixed with itemBotanical model
This commit is contained in:
parent
f1f8c74175
commit
a153005a79
|
@ -1,10 +1,12 @@
|
||||||
<mg-ajax
|
<mg-ajax
|
||||||
path="/item/api/ItemBotanicals/{{patch.params.id}}"
|
path="/item/api/ItemBotanicals"
|
||||||
options="vnPatch">
|
options="vnPatch">
|
||||||
</mg-ajax>
|
</mg-ajax>
|
||||||
<vn-watcher
|
<vn-watcher
|
||||||
vn-id="watcher"
|
vn-id="watcher"
|
||||||
data="$ctrl.botanical"
|
data="$ctrl.botanical"
|
||||||
|
id-field="itemFk"
|
||||||
|
required-field="itemFk"
|
||||||
form="form"
|
form="form"
|
||||||
save="patch">
|
save="patch">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
|
@ -30,7 +32,7 @@
|
||||||
url="/item/api/species"
|
url="/item/api/species"
|
||||||
show-field="latin_species_name"
|
show-field="latin_species_name"
|
||||||
value-field="specie_id"
|
value-field="specie_id"
|
||||||
label="Specie">
|
label="Species">
|
||||||
</vn-autocomplete>
|
</vn-autocomplete>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
</vn-vertical>
|
</vn-vertical>
|
||||||
|
|
|
@ -39,7 +39,6 @@ class ItemSummary {
|
||||||
};
|
};
|
||||||
this.$http.get(`/item/api/ItemNiches?filter=${JSON.stringify(filter)}`).then(response => {
|
this.$http.get(`/item/api/ItemNiches?filter=${JSON.stringify(filter)}`).then(response => {
|
||||||
this.niches = response.data;
|
this.niches = response.data;
|
||||||
this.setOldNiches(response);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue