算法自定义脚本Def.json 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. {
  2. "name":"",
  3. "code":"",
  4. "model":"",
  5. "type":"",
  6. "props":[
  7. {
  8. "algorithmId":""
  9. }
  10. ],
  11. "settings":[
  12. {
  13. "name":"ipAddress",
  14. "text":"IP地址",
  15. "dataType":"string",
  16. "readonly":false,
  17. "inputType":"text"
  18. },
  19. {
  20. "name":"port",
  21. "text":"端口",
  22. "dataType":"integer",
  23. "readonly":false,
  24. "inputType":"text"
  25. },
  26. {
  27. "name":"computescript",
  28. "text":"计算脚本",
  29. "dataType":"string",
  30. "readonly":false,
  31. "inputType":"text"
  32. }
  33. ],
  34. "inputs":[
  35. {
  36. "name":"inputsitems",
  37. "text":"输入数据项",
  38. "inputType":"table",
  39. "fields":[
  40. {
  41. "name":"id",
  42. "text":"序号",
  43. "dataType":"string",
  44. "inputType":"text"
  45. },
  46. {
  47. "name":"step",
  48. "text":"源步骤",
  49. "dataType":"string",
  50. "inputType":"text"
  51. },
  52. {
  53. "name":"dataitem",
  54. "text":"数据项",
  55. "dataType":"string",
  56. "inputType":"text"
  57. },
  58. {
  59. "name":"code",
  60. "text":"数据标识",
  61. "dataType":"string",
  62. "inputType":"text"
  63. },
  64. {
  65. "name":"unit",
  66. "text":"数据单位",
  67. "dataType":"string",
  68. "inputType":"text"
  69. },
  70. {
  71. "name":"discription",
  72. "text":"变量名",
  73. "dataType":"string",
  74. "inputType":"text"
  75. }
  76. ],
  77. "props":{
  78. "allowAdd":"true"
  79. }
  80. }
  81. ],
  82. "args":[
  83. {
  84. "name":"inputargs",
  85. "text":"输入参数",
  86. "inputType":"table",
  87. "fields":[
  88. {
  89. "name":"id",
  90. "text":"序号",
  91. "dataType":"string",
  92. "inputType":"text"
  93. },
  94. {
  95. "name":"argsname",
  96. "text":"参数名",
  97. "dataType":"string",
  98. "inputType":"text"
  99. },
  100. {
  101. "name":"argsvalue",
  102. "text":"参数值",
  103. "dataType":"string",
  104. "inputType":"text"
  105. },
  106. {
  107. "name":"argsunit",
  108. "text":"参数单位",
  109. "dataType":"string",
  110. "inputType":"text"
  111. },
  112. {
  113. "name":"argsunit",
  114. "text":"变量名",
  115. "dataType":"string",
  116. "inputType":"text"
  117. },
  118. {
  119. "name":"discription",
  120. "text":"说明",
  121. "dataType":"string",
  122. "inputType":"text"
  123. }
  124. ],
  125. "props":{
  126. "allowAdd":"true"
  127. }
  128. }
  129. ],
  130. "outputs":[
  131. {
  132. "name":"outputsitems",
  133. "text":"输出数据项",
  134. "inputType":"table",
  135. "fields":[
  136. {
  137. "name":"id",
  138. "text":"序号",
  139. "dataType":"string",
  140. "inputType":"text"
  141. },
  142. {
  143. "name":"name",
  144. "text":"名称",
  145. "dataType":"string",
  146. "inputType":"text"
  147. },
  148. {
  149. "name":"code",
  150. "text":"标识",
  151. "dataType":"string",
  152. "inputType":"text"
  153. },
  154. {
  155. "name":"display",
  156. "text":"是否展示",
  157. "dataType":"string",
  158. "inputType":"dropDownList",
  159. "dataSource":{
  160. "selected":1,
  161. "dataSource":"json",
  162. "option":[
  163. {
  164. "label":"显示",
  165. "value":1
  166. },
  167. {
  168. "label":"隐藏",
  169. "value":2
  170. }
  171. ]
  172. }
  173. },
  174. {
  175. "name":"discription",
  176. "text":"描述",
  177. "dataType":"string",
  178. "inputType":"text"
  179. }
  180. ],
  181. "props":{
  182. "allowAdd":"true"
  183. }
  184. }
  185. ],
  186. "expression":""
  187. }