added radius link to cpeprovisioning

This commit is contained in:
Luca Haid
2026-02-02 10:10:48 +01:00
parent 4c2a4ed0b6
commit 5169fdfbc7
2 changed files with 30 additions and 0 deletions
+17
View File
@@ -251,8 +251,25 @@ const RadiusUsers = {
mounted() {
const urlParams = new URLSearchParams(window.location.search);
const infoParam = urlParams.get('info');
const custnumParam = urlParams.get('custnum');
const estmkParam = urlParams.get('estmk_nr');
if (infoParam) {
this.info = infoParam;
}
// Handle customer number search from URL (e.g., from Cpeprovisioning)
if (estmkParam) {
// ESTMK search mode (for 7000* customer numbers)
this.searchMode = 'text';
this.billAddrDisplay = estmkParam;
this.loadRadiusUsers();
} else if (custnumParam) {
// Autocomplete mode - set custnum directly and search
this.billAddrCustnum = custnumParam;
this.billAddrDisplay = custnumParam;
this.loadRadiusUsers();
} else if (infoParam) {
this.loadRadiusUsers();
}
this.observer = new IntersectionObserver(([e]) => {