Update index.html
This commit is contained in:
parent
75feefb312
commit
789f605938
126
admin/index.html
126
admin/index.html
@ -828,36 +828,6 @@
|
||||
|
||||
settings.params.type = settings.params.type || 'tcp';
|
||||
|
||||
$('#modbus_type').on('change', function () {
|
||||
if ($(this).val() === 'tcp' || $(this).val() === 'tcprtu') {
|
||||
$('.tcp').show();
|
||||
$('.serial').hide();
|
||||
if ($(this).val() === 'tcprtu') {
|
||||
$('#modbus_slave').val(0).prop('disabled', true).trigger('change');
|
||||
} else {
|
||||
$('#modbus_slave').prop('disabled', false);
|
||||
}
|
||||
} else {
|
||||
$('.tcp').hide();
|
||||
$('.serial').show();
|
||||
$('#modbus_slave').val(0).prop('disabled', true).trigger('change');
|
||||
}
|
||||
initTabs(onchange);
|
||||
}).trigger('change');
|
||||
|
||||
$('#modbus_slave').on('change', function () {
|
||||
if ($(this).val() === '0') {
|
||||
$('#multiDeviceId').show();
|
||||
} else {
|
||||
$('#multiDeviceId').hide();
|
||||
$('#modbus_multiDeviceId').prop('checked', false);
|
||||
}
|
||||
initTabs(onchange);
|
||||
}).trigger('change');
|
||||
|
||||
$('#multiDeviceId').on('change', function () {
|
||||
initTabs(onchange);
|
||||
});
|
||||
|
||||
getIsAdapterAlive(function (isAlive) {
|
||||
if (isAlive || common.enabled) {
|
||||
@ -999,102 +969,6 @@
|
||||
<div class="logo">智慧园区配置信息</div>
|
||||
<img src="img/plc_back.png" class="back_image">
|
||||
|
||||
<table class="ui-widget-content" style="z-index: 2;margin-top: 60px; border: 1px solid black; border-collapse: collapse; ">
|
||||
<tr style="border-bottom: 1px solid black;text-align: center " class="ui-widget-header">
|
||||
<td colspan="2" class="translate">Connection parameters:</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 200px"><label class="translate" for="modbus_type">TCP/Serial RTU:</label></td>
|
||||
<td style="width: 200px">
|
||||
<select class="modbus-params" id="modbus_type" style="width: 100%;">
|
||||
<option value="tcp" class="translate">TCP</option>
|
||||
<option value="serial" class="translate">Serial</option>
|
||||
<option value="tcprtu" class="translate">RTU over TCP</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="tcp tcprtu">
|
||||
<td style="width: 200px"><label class="translate" for="modbus_bind">Partner IP Address:</label></td>
|
||||
<td style="width: 200px"><input class="modbus-params" id="modbus_bind" style="width: 100%;"/></td>
|
||||
</tr>
|
||||
<tr class="tcp tcprtu">
|
||||
<td><label class="translate" for="modbus_port">Port:</label></td>
|
||||
<td><input class="modbus-params" id="modbus_port" type="text" style="width: 100%;"/></td>
|
||||
</tr>
|
||||
<tr class="serial">
|
||||
<td><label class="translate" for="modbus_comName">Port:</label></td>
|
||||
<td><select class="modbus-params" id="modbus_comName" style="width: 100%;"></select></td>
|
||||
</tr>
|
||||
<tr class="serial">
|
||||
<td><label for="modbus_baudRate" class="translate">Baud rate:</label></td>
|
||||
<td><select class="modbus-params" id="modbus_baudRate" style="width: 100%;">
|
||||
<option value="110">110</option>
|
||||
<option value="150">150</option>
|
||||
<option value="300">300</option>
|
||||
<option value="600">600</option>
|
||||
<option value="1200">1200</option>
|
||||
<option value="2400">2400</option>
|
||||
<option value="4800">4800</option>
|
||||
<option value="9600">9600</option>
|
||||
<option value="19200">19200</option>
|
||||
<option value="38400">38400</option>
|
||||
<option value="56000">56000</option>
|
||||
<option value="57600">57600</option>
|
||||
<option value="115200">115200</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="serial">
|
||||
<td><label for="modbus_dataBits" class="translate">Data bits:</label></td>
|
||||
<td><select class="modbus-params" id="modbus_dataBits" style="width: 100%;">
|
||||
<option value="8">8</option>
|
||||
<option value="7">7</option>
|
||||
<option value="6">6</option>
|
||||
<option value="5">5</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="serial">
|
||||
<td><label for="modbus_stopBits" class="translate">Stop bits:</label></td>
|
||||
<td><select class="modbus-params" id="modbus_stopBits" style="width: 100%;">
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="serial">
|
||||
<td><label for="modbus_parity" class="translate">Parity:</label></td>
|
||||
<td><select class="modbus-params" id="modbus_parity" style="width: 100%;">
|
||||
<option value="none">none</option>
|
||||
<option value="even">even</option>
|
||||
<option value="mark">mark</option>
|
||||
<option value="odd">odd</option>
|
||||
<option value="space">space</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><label class="translate" for="modbus_deviceId">Device ID:</label></td>
|
||||
<td><input class="modbus-params" id="modbus_deviceId" type="text" style="width: 100%;"/></td>
|
||||
</tr>
|
||||
<tr id="multiDeviceId">
|
||||
<td><label class="translate" for="modbus_multiDeviceId">Multi device IDs:</label></td>
|
||||
<td><input class="modbus-params" id="modbus_multiDeviceId" type="checkbox"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label class="translate" for="modbus_slave">Type:</label></td>
|
||||
<td>
|
||||
<select class="modbus-params" id="modbus_slave" style="width: 100%;">
|
||||
<option value="0" class="translate">Master</option>
|
||||
<option value="1" class="translate">Slave</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="height: 10px"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<div id="modbus_tab_dis_inputs" class="modbus-tab">
|
||||
|
Loading…
Reference in New Issue
Block a user