refactor travel
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
b415adff41
commit
35966afad0
|
@ -1,4 +1,4 @@
|
|||
<mg-ajax path="api/Travels/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
||||
<mg-ajax path="Travels/{{patch.params.id}}" options="vnPatch"></mg-ajax>
|
||||
<vn-watcher
|
||||
vn-id="watcher"
|
||||
data="$ctrl.travel"
|
||||
|
@ -16,7 +16,7 @@
|
|||
<vn-autocomplete
|
||||
vn-one
|
||||
ng-model="$ctrl.travel.agencyModeFk"
|
||||
url="api/AgencyModes"
|
||||
url="AgencyModes"
|
||||
show-field="name"
|
||||
value-field="id"
|
||||
label="Agency">
|
||||
|
@ -38,7 +38,7 @@
|
|||
<vn-autocomplete
|
||||
vn-one
|
||||
ng-model="$ctrl.travel.warehouseOutFk"
|
||||
url="api/Warehouses"
|
||||
url="Warehouses"
|
||||
show-field="name"
|
||||
value-field="id"
|
||||
label="Warehouse Out">
|
||||
|
@ -46,7 +46,7 @@
|
|||
<vn-autocomplete
|
||||
vn-one
|
||||
ng-model="$ctrl.travel.warehouseInFk"
|
||||
url="api/Warehouses"
|
||||
url="Warehouses"
|
||||
show-field="name"
|
||||
value-field="id"
|
||||
label="Warehouse In">
|
||||
|
|
|
@ -30,7 +30,7 @@ export default class Controller {
|
|||
|
||||
getCard() {
|
||||
const params = {filter: this.filter};
|
||||
this.$http.get(`/api/Travels/${this.$stateParams.id}`, {params}).then(response => {
|
||||
this.$http.get(`Travels/${this.$stateParams.id}`, {params}).then(response => {
|
||||
this.travel = response.data;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
<vn-log url="api/TravelLogs" origin-id="$ctrl.$stateParams.id"></vn-log>
|
||||
<vn-log url="TravelLogs" origin-id="$ctrl.$stateParams.id"></vn-log>
|
Loading…
Reference in New Issue