Lines 435-446
export default {
Link Here
|
435 |
}, |
435 |
}, |
436 |
beforeRouteEnter(to, from, next) { |
436 |
beforeRouteEnter(to, from, next) { |
437 |
next(vm => { |
437 |
next(vm => { |
438 |
if (to.params.usage_data_provider_id) { |
438 |
if (to.params.erm_usage_data_provider_id) { |
439 |
vm.getDataProvider(to.params.usage_data_provider_id) |
439 |
vm.getDataProvider(to.params.erm_usage_data_provider_id) |
440 |
} else { |
440 |
} else { |
441 |
vm.initialized = true |
441 |
vm.initialized = true |
442 |
} |
442 |
} |
443 |
if (from.params.usage_data_provider_id) { |
443 |
if (from.params.erm_usage_data_provider_id) { |
444 |
vm.previous_route = "data_provider_show" |
444 |
vm.previous_route = "data_provider_show" |
445 |
} else { |
445 |
} else { |
446 |
vm.previous_route = "data_provider_list" |
446 |
vm.previous_route = "data_provider_list" |
Lines 592-598
export default {
Link Here
|
592 |
this.$router.push({ |
592 |
this.$router.push({ |
593 |
name: "UsageStatisticsDataProvidersShow", |
593 |
name: "UsageStatisticsDataProvidersShow", |
594 |
params: { |
594 |
params: { |
595 |
usage_data_provider_id: |
595 |
erm_usage_data_provider_id: |
596 |
erm_usage_data_provider_id, |
596 |
erm_usage_data_provider_id, |
597 |
}, |
597 |
}, |
598 |
}) |
598 |
}) |
Lines 608-614
export default {
Link Here
|
608 |
this.$router.push({ |
608 |
this.$router.push({ |
609 |
name: "UsageStatisticsDataProvidersShow", |
609 |
name: "UsageStatisticsDataProvidersShow", |
610 |
params: { |
610 |
params: { |
611 |
usage_data_provider_id: |
611 |
erm_usage_data_provider_id: |
612 |
erm_usage_data_provider_id, |
612 |
erm_usage_data_provider_id, |
613 |
}, |
613 |
}, |
614 |
}) |
614 |
}) |