Ver código fonte

算法自定义脚本初版

luoshaopeng 10 meses atrás
pai
commit
ebf2fb5689
1 arquivos alterados com 187 adições e 0 exclusões
  1. 187 0
      config/算法自定义脚本Def.json

+ 187 - 0
config/算法自定义脚本Def.json

@@ -0,0 +1,187 @@
+{
+    "name":"",
+    "code":"",
+    "model":"",
+    "type":"",
+    "props":[
+        {
+            "algorithmId":""
+        }
+    ],
+    "settings":[
+        {
+            "name":"ipAddress",
+            "text":"IP地址",
+            "dataType":"string",
+            "readonly":false,
+            "inputType":"text"
+        },
+        {
+            "name":"port",
+            "text":"端口",
+            "dataType":"integer",
+            "readonly":false,
+            "inputType":"text"
+        },
+        {
+            "name":"computescript",
+            "text":"计算脚本",
+            "dataType":"string",
+            "readonly":false,
+            "inputType":"text"
+        }
+    ],
+    "inputs":[
+        {
+            "name":"inputsitems",
+            "text":"输入数据项",
+            "inputType":"table",
+            "fields":[
+                {
+                    "name":"id",
+                    "text":"序号",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"step",
+                    "text":"源步骤",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"dataitem",
+                    "text":"数据项",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"code",
+                    "text":"数据标识",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"unit",
+                    "text":"数据单位",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"discription",
+                    "text":"变量名",
+                    "dataType":"string",
+                    "inputType":"text"
+                }
+            ],
+            "props":{
+                "allowAdd":"true"
+            }
+        }
+    ],
+    "args":[
+        {
+            "name":"inputargs",
+            "text":"输入参数",
+            "inputType":"table",
+            "fields":[
+                {
+                    "name":"id",
+                    "text":"序号",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"argsname",
+                    "text":"参数名",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"argsvalue",
+                    "text":"参数值",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"argsunit",
+                    "text":"参数单位",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"argsunit",
+                    "text":"变量名",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"discription",
+                    "text":"说明",
+                    "dataType":"string",
+                    "inputType":"text"
+                }
+            ],
+            "props":{
+                "allowAdd":"true"
+            }
+        }
+    ],
+    "outputs":[
+        {
+            "name":"outputsitems",
+            "text":"输出数据项",
+            "inputType":"table",
+            "fields":[
+                {
+                    "name":"id",
+                    "text":"序号",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"name",
+                    "text":"名称",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"code",
+                    "text":"标识",
+                    "dataType":"string",
+                    "inputType":"text"
+                },
+                {
+                    "name":"display",
+                    "text":"是否展示",
+                    "dataType":"string",
+                    "inputType":"dropDownList",
+                    "dataSource":{
+                        "selected":1,
+                        "dataSource":"json",
+                        "option":[
+                            {
+                                "label":"显示",
+                                "value":1
+                            },
+                            {
+                                "label":"隐藏",
+                                "value":2
+                            }
+                        ]
+                    }
+                },
+                {
+                    "name":"discription",
+                    "text":"描述",
+                    "dataType":"string",
+                    "inputType":"text"
+                }
+            ],
+            "props":{
+                "allowAdd":"true"
+            }
+        }
+    ],
+    "expression":""
+}