Merge branch 'Cpeprovisioning/add-radius-link' into 'master'
added radius link to cpeprovisioning See merge request fronk/thetool!2070
This commit is contained in:
@@ -56,6 +56,9 @@ Vue.component('Cpeprovisioning', {
|
|||||||
<a target="_blank" :href="window.TT_CONFIG.CPE_PROV_PRINT_PDF_URL + '?order_id=' + item.order_id">
|
<a target="_blank" :href="window.TT_CONFIG.CPE_PROV_PRINT_PDF_URL + '?order_id=' + item.order_id">
|
||||||
<tt-tooltip text="Label drucken" position="top"><i class="fas fa-print"></i></tt-tooltip>
|
<tt-tooltip text="Label drucken" position="top"><i class="fas fa-print"></i></tt-tooltip>
|
||||||
</a>
|
</a>
|
||||||
|
<a target="_blank" :href="getRadiusSearchUrl(item)">
|
||||||
|
<tt-tooltip text="Radius User suchen" position="top"><i class="fas fa-wifi"></i></tt-tooltip>
|
||||||
|
</a>
|
||||||
<tt-tooltip v-if="item.vot" text="Vorortinstallation" position="top"><i class="fas fa-tools text-purple"></i></tt-tooltip>
|
<tt-tooltip v-if="item.vot" text="Vorortinstallation" position="top"><i class="fas fa-tools text-purple"></i></tt-tooltip>
|
||||||
<tt-tooltip v-if="item.hw" :text="item.hw" position="top"><i class="fas fa-shopping-bag text-purple"></i></tt-tooltip>
|
<tt-tooltip v-if="item.hw" :text="item.hw" position="top"><i class="fas fa-shopping-bag text-purple"></i></tt-tooltip>
|
||||||
<tt-tooltip v-if="item.voip" text="Voice Produkt vorhanden" position="top"><i class="fas fa-phone text-purple"></i></tt-tooltip>
|
<tt-tooltip v-if="item.voip" text="Voice Produkt vorhanden" position="top"><i class="fas fa-phone text-purple"></i></tt-tooltip>
|
||||||
@@ -253,6 +256,16 @@ Vue.component('Cpeprovisioning', {
|
|||||||
.then(() => window.notify('success', 'Kopiert!'))
|
.then(() => window.notify('success', 'Kopiert!'))
|
||||||
.catch(() => window.notify('error', 'Fehler beim Kopieren'));
|
.catch(() => window.notify('error', 'Fehler beim Kopieren'));
|
||||||
},
|
},
|
||||||
|
getRadiusSearchUrl(item) {
|
||||||
|
const custNum = item.owner_customer_number || '';
|
||||||
|
const basePath = window.TT_CONFIG.BASE_PATH || '';
|
||||||
|
// If customer number starts with 7000, use ESTMK search mode
|
||||||
|
if (custNum.startsWith('7000')) {
|
||||||
|
return `${basePath}/Radius?estmk_nr=${encodeURIComponent(custNum)}`;
|
||||||
|
}
|
||||||
|
// Otherwise use autocomplete search with custnum
|
||||||
|
return `${basePath}/Radius?custnum=${encodeURIComponent(custNum)}`;
|
||||||
|
},
|
||||||
handleKeydown(e) {
|
handleKeydown(e) {
|
||||||
// CTRL + ALT + E to open Extension Config
|
// CTRL + ALT + E to open Extension Config
|
||||||
if (e.code === 'KeyE' && e.ctrlKey && e.altKey) {
|
if (e.code === 'KeyE' && e.ctrlKey && e.altKey) {
|
||||||
|
|||||||
@@ -251,8 +251,25 @@ const RadiusUsers = {
|
|||||||
mounted() {
|
mounted() {
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
const infoParam = urlParams.get('info');
|
const infoParam = urlParams.get('info');
|
||||||
|
const custnumParam = urlParams.get('custnum');
|
||||||
|
const estmkParam = urlParams.get('estmk_nr');
|
||||||
|
|
||||||
if (infoParam) {
|
if (infoParam) {
|
||||||
this.info = 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.loadRadiusUsers();
|
||||||
}
|
}
|
||||||
this.observer = new IntersectionObserver(([e]) => {
|
this.observer = new IntersectionObserver(([e]) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user