Update index_m.html
This commit is contained in:
parent
f22a42320a
commit
f283da1202
@ -95,7 +95,7 @@
|
||||
var fields = [
|
||||
{name: 'deviceId' , title: _('deviceId'), type: 'text', width: '60px', sorter: 'number'},
|
||||
{name: 'ip' , title: _('ip'), type: 'text', width: '110px', sorter: 'number'},
|
||||
{name: 'port' , title: _('port'), type: 'text', width: '30px', sorter: 'number'},
|
||||
{name: 'port' , title: _('port'), type: 'text', width: '60px', sorter: 'number'},
|
||||
{name: 'name' , title: _('Name'), type: 'text', width: '*'},
|
||||
{name: 'description', title: _('Description'), type: 'text', width: '*'},
|
||||
{ type: 'control', width: '80px'}
|
||||
@ -216,7 +216,7 @@
|
||||
}
|
||||
|
||||
if (!obj.item.role && obj.item.type !== 'string' && obj.item.type !== 'stringle') {
|
||||
if (id === 'modbus_disInputs') {
|
||||
if (id === 'modbus_door') {
|
||||
obj.item.role = 'status';
|
||||
} else if (id === 'modbus_coils') {
|
||||
obj.item.role = 'button';
|
||||
@ -347,19 +347,11 @@
|
||||
}
|
||||
|
||||
var data = {
|
||||
disInputs: settings.disInputs || [],
|
||||
coils: settings.coils || []
|
||||
door: settings.door || []
|
||||
}
|
||||
|
||||
|
||||
|
||||
initTabs(onChange, data);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//end zhongjin
|
||||
|
||||
|
||||
@ -492,7 +484,7 @@
|
||||
<div id="tab-notification" class="col s12 page">
|
||||
|
||||
<div id="modbus_tab_dis_inputs" class="modbus-tab">
|
||||
<div id="modbus_disInputs" class="modbus-grid"></div>
|
||||
<div id="modbus_door" class="modbus-grid"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user