From 231897591c909b164defebfdb5936387ec2807d0 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 28 十一月 2024 11:10:10 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-model/iailab-module-model-biz/src/main/resources/template/menu.xml.vm |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/resources/template/menu.xml.vm b/iailab-module-model/iailab-module-model-biz/src/main/resources/template/menu.xml.vm
index a68f42b..e9d76e2 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/resources/template/menu.xml.vm
+++ b/iailab-module-model/iailab-module-model-biz/src/main/resources/template/menu.xml.vm
@@ -18,7 +18,9 @@
 #{if}($method.methodName=="train")
                     <tab-train class="${model.pkgName}.impl.${model.pyName}Impl" method="train"
                                params="#{foreach} ($column in [1..$method.dataLength])double[][],#{end}#{if}($method.model==1)java.util.HashMap,#{end}java.util.HashMap">
-                        <property key="data1" name="数据路径" type="file" valueType="file" min="" max=""/>
+#{foreach} ($column in [1..$method.dataLength])
+                        <property key="data${column}" name="数据${column}路径" type="file" valueType="file" min="" max=""/>
+#{end}
 #{foreach} ($setting in $method.methodSettings)
 #{if}($setting.type=="select")
                         <property key="${setting.settingKey}" name="${setting.name}" type="select" valueType="${setting.valueType}" min="$!{setting.min}" max="$!{setting.max}">
@@ -35,7 +37,9 @@
                     <tab-load class="${model.pkgName}.impl.${model.pyName}Impl" method="predict"
                               params="#{foreach} ($column in [1..$method.dataLength])double[][],#{end}#{if}($method.model==1)java.util.HashMap,#{end}java.util.HashMap" resultKey="$!{method.resultKey}"
                               modelRules="${model.pkgName}.impl.${model.pyName}Impl.predict">
-                        <property key="data1" name="数据路径" type="file" valueType="file" min="" max=""/>
+#{foreach} ($column in [1..$method.dataLength])
+                        <property key="data${column}" name="数据${column}路径" type="file" valueType="file" min="" max=""/>
+#{end}
 #{foreach} ($setting in $method.methodSettings)
 #{if}($setting.type=="select")
                         <property key="${setting.settingKey}" name="${setting.name}" type="select" valueType="${setting.valueType}" min="$!{setting.min}" max="$!{setting.max}">

--
Gitblit v1.9.3