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