更新 simpleadmin/www/index.html

This commit is contained in:
taotao 2024-10-15 10:43:56 +00:00
parent f17368ab90
commit 695f1a3b6d

View File

@ -203,6 +203,14 @@
<th scope="row">接入点APN</th> <th scope="row">接入点APN</th>
<td x-text="apn"></td> <td x-text="apn"></td>
</tr> </tr>
<tr>
<th scope="row">签约速率Mbps</th>
<td x-text="ambr"></td>
</tr>
<tr>
<th scope="row">签约QCI</th>
<td x-text="qci"></td>
</tr>
<tr> <tr>
<th scope="row">网络模式</th> <th scope="row">网络模式</th>
<td x-text="networkMode"></td> <td x-text="networkMode"></td>
@ -626,8 +634,8 @@
mccmnc: "00000", mccmnc: "00000",
apn: "未知", apn: "未知",
networkMode: "已断开", networkMode: "已断开",
bands: "未知频段", bands: "未知",
bandwidth: "未知带宽", bandwidth: "未知",
earfcns: "000", earfcns: "000",
pccPCI: "0", pccPCI: "0",
sccPCI: "-", sccPCI: "-",
@ -652,7 +660,7 @@
sinrNRPercentage: "0%", sinrNRPercentage: "0%",
signalPercentage: "0", signalPercentage: "0",
signalAssessment: "未知", signalAssessment: "未知",
uptime: "未知", uptime: "Unknown",
lastUpdate: new Date().toLocaleString(), lastUpdate: new Date().toLocaleString(),
newRefreshRate: null, newRefreshRate: null,
refreshRate: 3, refreshRate: 3,
@ -662,10 +670,13 @@
nonNrUpload: "0", nonNrUpload: "0",
downloadStat: "0", downloadStat: "0",
uploadStat: "0", uploadStat: "0",
mccmncNumber: "未知",
ambr: "未知",
qci: "未知",
fetchAllInfo() { fetchAllInfo() {
this.atcmd = this.atcmd =
'AT+QTEMP;+QUIMSLOT?;+QSPN;+CGCONTRDP=1;+QMAP="WWANIP";+QENG="servingcell";+QCAINFO;+QSIMSTAT?;+CSQ;+QGDNRCNT?;+QGDCNT?'; 'AT+QTEMP;+QUIMSLOT?;+QSPN;+CGCONTRDP=1;+QMAP="WWANIP";+QENG="servingcell";+QCAINFO;+QSIMSTAT?;+CSQ;+QGDNRCNT?;+QGDCNT?;+QNWCFG="nr5g_ambr"';
fetch( fetch(
"/cgi-bin/get_atcommand?" + "/cgi-bin/get_atcommand?" +
@ -779,6 +790,12 @@
.split(",")[3] .split(",")[3]
.replace(/"/g, ""); .replace(/"/g, "");
const network_ambr = lines
.find((line) => line.includes('+QNWCFG: "nr5g_ambr"'))
.split(",");
this.ambr = network_ambr[3].replace(/"/g, "") + " / " + network_ambr[5].replace(/"/g, "") ;
this.qci = network_ambr[2].replace(/"/g, "");
if (network_mode == "NR5G-SA") { if (network_mode == "NR5G-SA") {
if (duplex_mode == "TDD") { if (duplex_mode == "TDD") {
this.networkMode = "5G SA TDD"; this.networkMode = "5G SA TDD";