кучка мелких фиксов + добавление перезагрузки модема и сброса настроек

This commit is contained in:
2024-11-14 16:42:24 +03:00
parent 6d076f03cd
commit ccc7766e88
5 changed files with 58 additions and 11 deletions

View File

@@ -167,7 +167,7 @@
<h3>Параметры передачи</h3>
<label>
<span>Центральная частота, КГц</span>
<input v-model="param.tx.centerFreq" type="number"/>
<input v-model="param.tx.centerFreq" type="number" step="0.001"/>
</label>
<label>
<span>Символьная скорость, Бод</span>
@@ -316,7 +316,7 @@
</label>
<label>
<span>Центральная частота, кГц</span>
<input v-model="param.rx.centerFreq" type="number"/>
<input v-model="param.rx.centerFreq" type="number" step="0.001"/>
</label>
<label>
<span>Символьная скорость, Бод</span>
@@ -349,15 +349,15 @@
<h3 v-show="param.cinc.mode === 'positional'">Настройки позиционирования</h3>
<label v-show="param.cinc.mode === 'positional'">
<span>Широта станции</span>
<input v-model="param.cinc.position.station.latitude" type="number"/>
<input v-model="param.cinc.position.station.latitude" type="number" step="0.0001"/>
</label>
<label v-show="param.cinc.mode === 'positional'">
<span>Долгота станции</span>
<input v-model="param.cinc.position.station.longitude" type="number"/>
<input v-model="param.cinc.position.station.longitude" type="number" step="0.0001"/>
</label>
<label v-show="param.cinc.mode === 'positional'">
<span>Подспутниковая точка</span>
<input v-model="param.cinc.position.satelliteLongitude" type="number"/>
<input v-model="param.cinc.position.satelliteLongitude" type="number" step="0.0001"/>
</label>
<h3 v-show="param.cinc.mode === 'delay'">Задержка до спутника</h3>
@@ -589,15 +589,15 @@
</label>
<label v-if="param.debugSend.en">
<span>IP адрес получателя</span>
<input v-model="param.debugSend.receiverIp" required type="text" pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]{1,2}$">
<input v-model="param.debugSend.receiverIp" required type="text" pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}">
</label>
<label>
<span>Порт для CinC</span>
<input v-model="param.debugSend.portCinC" type="number" pattern="^[0-9]{1,5}$">
<input v-model="param.debugSend.portCinC" type="number" min="0" max="65535">
</label>
<label>
<span>Порт для CinC</span>
<input v-model="param.debugSend.portData" type="number" pattern="^[0-9]{1,5}$">
<input v-model="param.debugSend.portData" type="number" min="0" max="65535">
</label>
<label>
<span>Таймаут</span>
@@ -617,10 +617,10 @@
</tbody>
</table>
<div>
<button class="dangerous-button">Перезагрузить модем</button>
<button class="dangerous-button" @click="fetch('/api/reboot', { method: 'POST' }).then((r) => { window.location.reload(); })">Перезагрузить модем</button>
</div>
<div>
<button class="dangerous-button">Сбросить модем до заводских настроек</button>
<button class="dangerous-button" @click="fetch('/api/resetSettings', { method: 'POST' }).then((r) => { window.location.reload(); })">Сбросить модем до заводских настроек</button>
</div>
<h3>Обновление ПО</h3>