更新 simpleadmin/www/network.html

This commit is contained in:
taotao 2024-10-12 05:05:21 +00:00
parent 98e7fbf39d
commit 17dc68162c

View File

@ -122,7 +122,7 @@
class="btn btn-info m-2" class="btn btn-info m-2"
id="uncheckAll" id="uncheckAll"
> >
取消全部勾选 取消勾选
</button> </button>
<button <button
type="button" type="button"
@ -147,7 +147,7 @@
</div> </div>
</div> </div>
<div class="card-footer"> <div class="card-footer">
<p x-text="'频段: ' + bands"></p> <p x-text="'Active bands: ' + bands"></p>
</div> </div>
</div> </div>
</div> </div>
@ -168,13 +168,13 @@
id="APN" id="APN"
x-model="newApn" x-model="newApn"
aria-describedby="APN" aria-describedby="APN"
x-bind:placeholder="apn === '-' ? '获取...' : apn" x-bind:placeholder="apn === '-' ? 'Fetching...' : apn"
/> />
</div> </div>
<div class="mb-4"> <div class="mb-4">
<label for="ipForAPN" class="form-label" <label for="ipForAPN" class="form-label"
>选择APN PDP类型</label >Choose APN PDP Type</label
> >
<select <select
class="form-select" class="form-select"
@ -184,7 +184,7 @@
> >
<option <option
selected selected
x-text="apnIP === '-' ? '获取...' : '当前 ' + apnIP" x-text="apnIP === '-' ? 'Fetching...' : 'Current: ' + apnIP"
></option> ></option>
<option value="1">IPv4 Only</option> <option value="1">IPv4 Only</option>
<option value="2">IPv6 Only</option> <option value="2">IPv6 Only</option>
@ -194,7 +194,7 @@
</div> </div>
<div class="mb-4 input-group grid gap-3"> <div class="mb-4 input-group grid gap-3">
<label for="SIM1" class="form-label"> SIM卡选择</label> <label for="SIM1" class="form-label"> Change SIM</label>
<div class="form-check form-check-inline"> <div class="form-check form-check-inline">
<input <input
class="form-check-input" class="form-check-input"
@ -207,7 +207,7 @@
x-on:click="newSim = '1'" x-on:click="newSim = '1'"
/> />
<label class="form-check-label" for="inlineRadio1" <label class="form-check-label" for="inlineRadio1"
>SIM1</label >1</label
> >
</div> </div>
<div class="form-check form-check-inline"> <div class="form-check form-check-inline">
@ -222,7 +222,7 @@
x-on:click="newSim = '2'" x-on:click="newSim = '2'"
/> />
<label class="form-check-label" for="inlineRadio2" <label class="form-check-label" for="inlineRadio2"
>SIM2</label >2</label
> >
</div> </div>
</div> </div>
@ -241,7 +241,7 @@
> >
<option <option
selected selected
x-text="prefNetwork === '-' ? '获取...' : '当前 ' + prefNetwork" x-text="prefNetwork === '-' ? 'Fetching...' : 'Current: ' + prefNetwork"
></option> ></option>
<option value="AUTO">AUTO</option> <option value="AUTO">AUTO</option>
<option value="LTE">LTE Only</option> <option value="LTE">LTE Only</option>
@ -251,7 +251,7 @@
</div> </div>
<div class="mb-4"> <div class="mb-4">
<label for="prefNetwork" class="form-label" <label for="prefNetwork" class="form-label"
>NR5G模式控制</label >NR5G Mode Control</label
> >
<select <select
class="form-select" class="form-select"
@ -261,11 +261,11 @@
> >
<option <option
selected selected
x-text="nrModeControl === '-' ? '获取...' : '当前 ' + nrModeControl" x-text="nrModeControl === '-' ? 'Fetching...' : 'Current: ' + nrModeControl"
></option> ></option>
<option value="0">启用全部</option> <option value="0">Enable All</option>
<option value="2">禁用NR5G-NSA</option> <option value="2">Disable NR5G-NSA</option>
<option value="1">禁用NR5G-SA</option> <option value="1">Disable NR5G-SA</option>
</select> </select>
</div> </div>
</div> </div>
@ -276,7 +276,7 @@
class="btn btn-primary" class="btn btn-primary"
@click="saveChanges()" @click="saveChanges()"
> >
保存 Save Changes
</button> </button>
</div> </div>
</div> </div>
@ -285,7 +285,7 @@
<div class="col-md-4"> <div class="col-md-4">
<div class="card"> <div class="card">
<div class="card-header">Cell Locking</div> <div class="card-header">频段锁定</div>
<div class="card-body"> <div class="card-body">
<select <select
class="form-select" class="form-select"
@ -351,6 +351,7 @@
x-model="pci1" x-model="pci1"
/> />
</div> </div>
<div <div
class="input-group mb-3" class="input-group mb-3"
x-show="networkModeCell == 'NR5G-SA'" x-show="networkModeCell == 'NR5G-SA'"
@ -373,6 +374,7 @@
class="form-control" class="form-control"
x-model="band" x-model="band"
/> />
</div>
</div> </div>
<button <button
@ -381,7 +383,7 @@
x-show="networkModeCell == 'LTE'" x-show="networkModeCell == 'LTE'"
@click="cellLockEnableLTE()" @click="cellLockEnableLTE()"
> >
锁定LTE Lock LTE Cells
</button> </button>
<button <button
@ -390,7 +392,7 @@
x-show="networkModeCell == 'NR5G-SA'" x-show="networkModeCell == 'NR5G-SA'"
@click="cellLockEnableNR()" @click="cellLockEnableNR()"
> >
锁定NR5G Lock NR5G-SA Cells
</button> </button>
<button <button
@ -399,7 +401,7 @@
x-show="networkModeCell == 'Unlock LTE'" x-show="networkModeCell == 'Unlock LTE'"
@click="cellLockDisableLTE()" @click="cellLockDisableLTE()"
> >
解锁LTE Unlock LTE Cells
</button> </button>
<button <button
@ -408,12 +410,13 @@
x-show="networkModeCell == 'Unlock NR5G-SA'" x-show="networkModeCell == 'Unlock NR5G-SA'"
@click="cellLockDisableNR()" @click="cellLockDisableNR()"
> >
解锁NR5G Unlock NR5G-SA Cells
</button> </button>
</div> </div>
</div> </div>
<div class="card-footer"> <div class="card-footer">
小区锁定仅适用于主小区,并且在重启后不会保持。 Cell Locking only works for the primary cell and is not
persistent across reboots.
</div> </div>
</div> </div>
</div> </div>
@ -490,8 +493,8 @@
updatedLockedBands: null, updatedLockedBands: null,
sim: "-", sim: "-",
newSim: null, newSim: null,
cellLockStatus: "未知", cellLockStatus: "Unknown",
bands: "获取 Bands...", bands: "Fetching Bands...",
isGettingBands: false, isGettingBands: false,
rawdata: null, rawdata: null,
@ -860,12 +863,12 @@
scs === null || scs === null ||
band === null band === null
) { ) {
alert("请填写所有必填字段"); alert("Please enter all the required fields");
return; // Exit the function early if any of the fields are null return; // Exit the function early if any of the fields are null
} }
// Construct the AT command using the valid pairs // Construct the AT command using the valid pairs
let atcmd = `AT+QNWLOCK="common/5g",${pci},${earfcn},${scs},${band}`; let atcmd = `AT+QNWLOCK="common/5g",${earfcn},${pci},${scs},${band}`;
// Mock data // Mock data
this.showModal = true; this.showModal = true;
@ -900,7 +903,7 @@
}, },
cellLockDisableNR() { cellLockDisableNR() {
// Send the atcmd command to reset the locked bands // Send the atcmd command to reset the locked bands
const atcmd = 'AT+QNWLOCK="common/5g",0'; const atcmd = 'AT+QNWLOCK="common/5g,0"';
this.showModal = true; this.showModal = true;