module.definition.json 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. "inputs": [
  140. "XXDevice.Data1",
  141. "XXDevice.Data2"
  142. ],
  143. "args": [
  144. {
  145. "name": "x",
  146. "value": 100
  147. },
  148. {
  149. "name": "y",
  150. "value": 200
  151. }
  152. ],
  153. "outputs": [
  154. {
  155. "name": "",
  156. "code": "",
  157. "display": "",
  158. "description": ""
  159. }
  160. ],
  161. "expression": ""
  162. }