From f283da12023504b44ac9ecdcc35c1387bbd66c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Wed, 26 Sep 2018 12:11:52 +0800 Subject: [PATCH] Update index_m.html --- admin/index_m.html | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/admin/index_m.html b/admin/index_m.html index 48e772d..fbf3e00 100644 --- a/admin/index_m.html +++ b/admin/index_m.html @@ -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 @@
-
+