Bugfix OLT Device SNMP Walk BUG
This commit is contained in:
@@ -711,7 +711,7 @@ foreach ($devicesall as $deviceall) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php if ($devices->devicetype->devicemanufactor->config_backup > count()):
|
<?php if ($devices->devicetype->devicemanufactor->config_backup):
|
||||||
|
|
||||||
$year = date("Y", time());
|
$year = date("Y", time());
|
||||||
$month = date("n", time());
|
$month = date("n", time());
|
||||||
@@ -883,7 +883,7 @@ foreach ($devicesall as $deviceall) {
|
|||||||
customername = "N/A";
|
customername = "N/A";
|
||||||
customerid = "N/A";
|
customerid = "N/A";
|
||||||
}
|
}
|
||||||
let orderPort = item['portshort'] + `/` + o;
|
let orderPort = item['portshort'] + `/` + ont.id;
|
||||||
let parts = orderPort.split('/');
|
let parts = orderPort.split('/');
|
||||||
let formattedParts = parts.map(num => {
|
let formattedParts = parts.map(num => {
|
||||||
let number = parseInt(num, 10);
|
let number = parseInt(num, 10);
|
||||||
@@ -894,12 +894,12 @@ foreach ($devicesall as $deviceall) {
|
|||||||
|
|
||||||
$('#datatable tbody').append(`
|
$('#datatable tbody').append(`
|
||||||
<tr>
|
<tr>
|
||||||
<td class="sp-ont-text" data-order="` + orderPort + `">` + item['portshort'] + `/` + o + `</td>
|
<td class="sp-ont-text" data-order="` + orderPort + `">` + item['portshort'] + `/` + ont.id + `</td>
|
||||||
<td class="sp-ont-text">` + customerid + `</td>
|
<td class="sp-ont-text">` + customerid + `</td>
|
||||||
<td class="sp-ont-text">` + customername + `</td>
|
<td class="sp-ont-text">` + customername + `</td>
|
||||||
<td class="sp-ont-text text-center">` + status + `</td>
|
<td class="sp-ont-text text-center">` + status + `</td>
|
||||||
|
|
||||||
<td class="sp-ont-text"><div class="text-decoration-underline" data-port="` + item['portsimple'] + `" data-ontid="` + o + `" data-portid="` + item['portindex'] + `" data-snr="` + ont['serial'] + `" data-toggle="modal" data-target="#ontDetailInfo">` + ont['serial'] + `</div></td>
|
<td class="sp-ont-text"><div class="text-decoration-underline" data-port="` + item['portsimple'] + `" data-ontid="` + ont.id + `" data-portid="` + item['portindex'] + `" data-snr="` + ont['serial'] + `" data-toggle="modal" data-target="#ontDetailInfo">` + ont['serial'] + `</div></td>
|
||||||
</tr>
|
</tr>
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
@@ -1146,11 +1146,11 @@ foreach ($devicesall as $deviceall) {
|
|||||||
status = '<i class="fa-regular fa-circle-xmark"></i></i>'
|
status = '<i class="fa-regular fa-circle-xmark"></i></i>'
|
||||||
}
|
}
|
||||||
$('#ont-table-body').append(`<tr>
|
$('#ont-table-body').append(`<tr>
|
||||||
<td class="sp-ont-text">` + o + `</td>
|
<td class="sp-ont-text">` + ont.id + `</td>
|
||||||
|
|
||||||
<td class="sp-ont-text">` + status + `</td>
|
<td class="sp-ont-text">` + status + `</td>
|
||||||
<td class="sp-ont-text text-center ont-equip"><i class="fas fa-spinner fa-spin spinner-ico text-info"></i></td>
|
<td class="sp-ont-text text-center ont-equip"><i class="fas fa-spinner fa-spin spinner-ico text-info"></i></td>
|
||||||
<td class="sp-ont-text"><div class="text-decoration-underline" data-port="` + thisspan.data('port') + `" data-ontid="` + o + `" data-portid="` + thisspan.data('portid') + `" data-snr=` + ont['serial'] + ` data-toggle="modal" data-target="#ontDetailInfo">` + ont['serial'] + `</div></td>
|
<td class="sp-ont-text"><div class="text-decoration-underline" data-port="` + thisspan.data('port') + `" data-ontid="` + ont.id + `" data-portid="` + thisspan.data('portid') + `" data-snr=` + ont['serial'] + ` data-toggle="modal" data-target="#ontDetailInfo">` + ont['serial'] + `</div></td>
|
||||||
<td class="sp-ont-text text-right">` + ont['len'] + ` (m)</td>
|
<td class="sp-ont-text text-right">` + ont['len'] + ` (m)</td>
|
||||||
<!-- <td class="sp-ont-text text-center ont-rxtx"><i class="fas fa-spinner fa-spin spinner-ico text-info"></i></td>-->
|
<!-- <td class="sp-ont-text text-center ont-rxtx"><i class="fas fa-spinner fa-spin spinner-ico text-info"></i></td>-->
|
||||||
<td class="sp-ont-text text-center ont-eth"><i class="fas fa-spinner fa-spin spinner-ico text-info"></i></td>
|
<td class="sp-ont-text text-center ont-eth"><i class="fas fa-spinner fa-spin spinner-ico text-info"></i></td>
|
||||||
@@ -1182,6 +1182,7 @@ foreach ($devicesall as $deviceall) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (thisspan.data('portid') == $('#ont-table').data('portid')) {
|
if (thisspan.data('portid') == $('#ont-table').data('portid')) {
|
||||||
|
var countont=0;
|
||||||
$.each(data.data, function (o, ont) {
|
$.each(data.data, function (o, ont) {
|
||||||
var eth = ont['eth'];
|
var eth = ont['eth'];
|
||||||
var rx = (ont['rx'] - 10000) / 100;
|
var rx = (ont['rx'] - 10000) / 100;
|
||||||
@@ -1199,12 +1200,13 @@ foreach ($devicesall as $deviceall) {
|
|||||||
} else {
|
} else {
|
||||||
eth = '<i class="fa-regular fa-circle-xmark"></i></i>'
|
eth = '<i class="fa-regular fa-circle-xmark"></i></i>'
|
||||||
}
|
}
|
||||||
|
console.log(countont);
|
||||||
$('#ont-table .ont-eth').eq(o).html(eth);
|
$('#ont-table .ont-eth').eq(countont).html(eth);
|
||||||
$('#ont-table .ont-ethspeed').eq(o).html(ont['ethspeed']);
|
$('#ont-table .ont-ethspeed').eq(countont).html(ont['ethspeed']);
|
||||||
$('#ont-table .ont-ethdpx').eq(o).html(ont['ethdpx']);
|
$('#ont-table .ont-ethdpx').eq(countont).html(ont['ethdpx']);
|
||||||
$('#ont-table .ont-rxtx').eq(o).text(rxdez + "/" + txdez);
|
$('#ont-table .ont-rxtx').eq(countont).text(rxdez + "/" + txdez);
|
||||||
$('#ont-table .ont-equip').eq(o).text(ont['equip']);
|
$('#ont-table .ont-equip').eq(countont).text(ont['equip']);
|
||||||
|
countont++;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$('.ont-refresh').show();
|
$('.ont-refresh').show();
|
||||||
|
|||||||
Reference in New Issue
Block a user