module.definition.json 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. {
  2. "name": "",
  3. "code": "",
  4. "model": "",
  5. "type": "",
  6. "props": [
  7. { "deviceId": "" }
  8. ],
  9. "settings": [
  10. {
  11. "name": "IPAddress",
  12. "text": "IP地址",
  13. "dataType": "string",
  14. "readonly": false,
  15. "inputType": "Text"
  16. },
  17. {
  18. "name": "Port",
  19. "text": "端口",
  20. "dataType": "integer",
  21. "readonly": false,
  22. "inputType": "Text"
  23. },
  24. {
  25. "name": "IdleTimeout",
  26. "text": "空闲超时时间(秒)",
  27. "dataType": "integer",
  28. "readonly": false,
  29. "inputType": "Text"
  30. },
  31. {
  32. "name": "ByteOrder",
  33. "text": "字节序",
  34. "dataType": "integer",
  35. "readonly": false,
  36. "inputType": "DropDownList",
  37. "dataSource": {
  38. "props": {
  39. "selected": 1,
  40. "dataSource": "json",
  41. "option": [
  42. {
  43. "label": "ABCD",
  44. "value": 1
  45. },
  46. {
  47. "label": "DBCA",
  48. "value": 2
  49. }
  50. ]
  51. }
  52. }
  53. },
  54. {
  55. "name": "ByteOrder",
  56. "text": "字节序",
  57. "dataType": "integer",
  58. "readonly": false,
  59. "inputType": "DropDownList",
  60. "dataSource": {
  61. "props": {
  62. "selected": 1,
  63. "dataSource": "api",
  64. "apiUrl": "http://xxx.xxx/xxx/xxx"
  65. }
  66. }
  67. },
  68. {
  69. "name": "decodeMethod",
  70. "text": "解析方式",
  71. "inputType": "Table",
  72. "fields": [
  73. {
  74. "name": "SerialNo",
  75. "text": "序号",
  76. "dataType": "intgeger",
  77. "inputType": "Text"
  78. },
  79. {
  80. "name": "DataName",
  81. "text": "字段",
  82. "dataType": "string",
  83. "inputType": "Text"
  84. },
  85. {
  86. "name": "DataType",
  87. "text": "数据类型",
  88. "dataType": "string",
  89. "inputType": "DropDownList",
  90. "dataSource": {
  91. "props": {
  92. "selected": 1,
  93. "dataSource": "json",
  94. "option": [
  95. {
  96. "label": "Int32",
  97. "value": 1
  98. },
  99. {
  100. "label": "UInt32",
  101. "value": 2
  102. }
  103. ]
  104. }
  105. }
  106. },
  107. {
  108. "name": "Offset",
  109. "text": "偏移量",
  110. "dataType": "integer",
  111. "inputType": "Text"
  112. },
  113. {
  114. "name": "Length",
  115. "text": "长度",
  116. "dataType": "integer",
  117. "inputType": "Text"
  118. },
  119. {
  120. "name": "DataItem",
  121. "text": "设备属性",
  122. "dataType": "string",
  123. "type": "DropDownList",
  124. "props": {
  125. "selected": 1,
  126. "dataSource": "api",
  127. "apiUrl": "http://xxx.xxx/xxx/xxx"
  128. }
  129. }
  130. ],
  131. "operations": [
  132. {
  133. "name": "MoveUp",
  134. "icon": "up"
  135. },
  136. {
  137. "name": "MoveUp",
  138. "icon": "down"
  139. },
  140. {
  141. "name": "Edit",
  142. "icon": "edit"
  143. },
  144. {
  145. "name": "Delete",
  146. "icon": "delete"
  147. }
  148. ],
  149. "props": {
  150. "allowAdd": "true"
  151. }
  152. }
  153. ],
  154. "inputs": [
  155. "XXDevice.Data1",
  156. "XXDevice.Data2"
  157. ],
  158. "args": [
  159. {
  160. "name": "x",
  161. "value": 100
  162. },
  163. {
  164. "name": "y",
  165. "value": 200
  166. }
  167. ],
  168. "outputs": [
  169. {
  170. "name": "",
  171. "code": "",
  172. "display": "",
  173. "description": ""
  174. }
  175. ],
  176. "expression": ""
  177. }