module.definition.json 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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. "selected": 1,
  39. "dataSource": "json",
  40. "option": [
  41. {
  42. "label": "ABCD",
  43. "value": 1
  44. },
  45. {
  46. "label": "DBCA",
  47. "value": 2
  48. }
  49. ]
  50. }
  51. },
  52. {
  53. "name": "byteOrder",
  54. "text": "字节序",
  55. "dataType": "integer",
  56. "readonly": false,
  57. "inputType": "dropDownList",
  58. "dataSource": {
  59. "selected": 1,
  60. "dataSource": "api",
  61. "apiUrl": "http://xxx.xxx/xxx/xxx"
  62. }
  63. },
  64. {
  65. "name": "decodeMethod",
  66. "text": "解析方式",
  67. "inputType": "table",
  68. "fields": [
  69. {
  70. "name": "serialNo",
  71. "text": "序号",
  72. "dataType": "intgeger",
  73. "inputType": "text"
  74. },
  75. {
  76. "name": "dataName",
  77. "text": "字段",
  78. "dataType": "string",
  79. "inputType": "text"
  80. },
  81. {
  82. "name": "dataType",
  83. "text": "数据类型",
  84. "dataType": "string",
  85. "inputType": "dropDownList",
  86. "dataSource": {
  87. "props": {
  88. "selected": 1,
  89. "dataSource": "json",
  90. "option": [
  91. {
  92. "label": "Int32",
  93. "value": 1
  94. },
  95. {
  96. "label": "UInt32",
  97. "value": 2
  98. }
  99. ]
  100. }
  101. }
  102. },
  103. {
  104. "name": "offset",
  105. "text": "偏移量",
  106. "dataType": "integer",
  107. "inputType": "text"
  108. },
  109. {
  110. "name": "length",
  111. "text": "长度",
  112. "dataType": "integer",
  113. "inputType": "text"
  114. }
  115. ],
  116. "operations": [
  117. {
  118. "name": "MoveUp",
  119. "icon": "up"
  120. },
  121. {
  122. "name": "MoveUp",
  123. "icon": "down"
  124. },
  125. {
  126. "name": "Edit",
  127. "icon": "edit"
  128. },
  129. {
  130. "name": "Delete",
  131. "icon": "delete"
  132. }
  133. ],
  134. "props": {
  135. "allowAdd": "true"
  136. }
  137. },
  138. {
  139. "name": "instructions",
  140. "text": "下发指令",
  141. "inputType": "table",
  142. "fields": [
  143. {
  144. "name": "serialNo",
  145. "text": "序号",
  146. "dataType": "integer",
  147. "inputType": "text"
  148. },
  149. {
  150. "name": "commandName",
  151. "text": "命令名",
  152. "dataType": "string",
  153. "inputType": "text"
  154. },
  155. {
  156. "name": "commandCode",
  157. "text": "命令代码",
  158. "dataType": "string",
  159. "inputType": "text"
  160. },
  161. {
  162. "name": "dataType",
  163. "text": "数据类型",
  164. "dataType": "string",
  165. "inputType": "dropDownList",
  166. "dataSource": {
  167. "selected": 1,
  168. "dataSource": "json",
  169. "option": [
  170. {
  171. "label": "int16",
  172. "value": 1
  173. },
  174. {
  175. "label": "uInt16",
  176. "value": 2
  177. },
  178. {
  179. "label": "int32",
  180. "value": 3
  181. },
  182. {
  183. "label": "uInt32",
  184. "value": 4
  185. }
  186. ]
  187. }
  188. },
  189. {
  190. "name": "offset",
  191. "text": "偏移量",
  192. "dataType": "integer",
  193. "inputType": "text"
  194. },
  195. {
  196. "name": "length",
  197. "text": "长度",
  198. "dataType": "integer",
  199. "inputType": "text"
  200. }
  201. ],
  202. "props": {
  203. "allowAdd": "true"
  204. }
  205. }
  206. ],
  207. "inputs": [
  208. "XXDevice.Data1",
  209. "XXDevice.Data2"
  210. ],
  211. "args": [
  212. {
  213. "name": "x",
  214. "value": 100
  215. },
  216. {
  217. "name": "y",
  218. "value": 200
  219. }
  220. ],
  221. "outputs": [
  222. {
  223. "name": "",
  224. "code": "",
  225. "display": "",
  226. "description": ""
  227. }
  228. ],
  229. "expression": ""
  230. }