fix(salix): redirect from travel to addEntry
gitea/salix/pipeline/pr-master This commit looks good
Details
gitea/salix/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
486c7f4fa3
commit
b85989105b
|
@ -76,7 +76,7 @@ export default class App {
|
||||||
newRoute = newRoute.concat(`?table=${tableValue}`);
|
newRoute = newRoute.concat(`?table=${tableValue}`);
|
||||||
} else if (!hasId && this.logger.$params.id && newRoute.indexOf(this.logger.$params.id) < 0)
|
} else if (!hasId && this.logger.$params.id && newRoute.indexOf(this.logger.$params.id) < 0)
|
||||||
newRoute = newRoute.concat(`${this.logger.$params.id}`);
|
newRoute = newRoute.concat(`${this.logger.$params.id}`);
|
||||||
|
|
||||||
return this.logger.$http.get('Urls/findOne', {filter})
|
return this.logger.$http.get('Urls/findOne', {filter})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res && res.data)
|
if (res && res.data)
|
||||||
|
|
|
@ -75,7 +75,8 @@ class Controller extends Section {
|
||||||
|
|
||||||
async redirectToCreateEntry() {
|
async redirectToCreateEntry() {
|
||||||
this.$state.go('home');
|
this.$state.go('home');
|
||||||
window.location.href = await this.vnApp.getUrl(`entry/create?travelFk=${this.travelId}`);
|
const createForm = JSON.stringify({travelFk: this.travelId});
|
||||||
|
window.location.href = await this.vnApp.getUrl(`entry/list?createForm=${createForm}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
onCloneWithEntriesAccept() {
|
onCloneWithEntriesAccept() {
|
||||||
|
|
Loading…
Reference in New Issue