module.definition.json 4.9 KB

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