From cb91cde8cc3276c1f8c1daae06ac5976c571f62e Mon Sep 17 00:00:00 2001 From: linbangquan <1437892690@qq.com> Date: Mon, 20 Nov 2023 17:45:37 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E8=A7=86=E5=9B=BE?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE-=E5=A2=9E=E5=8A=A0=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E6=95=B0=E6=8D=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1023682900623360]视图设置-增加显示视图数据功能 http://192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/939050947543042/1023682900623360 --- .../autoexec/script/paramtype/IScriptParamType.java | 2 +- .../autoexec/script/paramtype/ScriptParamTypeBase.java | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/neatlogic/framework/autoexec/script/paramtype/IScriptParamType.java b/src/main/java/neatlogic/framework/autoexec/script/paramtype/IScriptParamType.java index 68bbd158..3ffba55d 100644 --- a/src/main/java/neatlogic/framework/autoexec/script/paramtype/IScriptParamType.java +++ b/src/main/java/neatlogic/framework/autoexec/script/paramtype/IScriptParamType.java @@ -62,7 +62,7 @@ public interface IScriptParamType { * 根据参数值获取对应的text * @return text */ - Object getTextByValue(Object value); + Object getTextByValue(Object value, JSONObject config); /** * 根据参数值获取对应给autoexec执行的参数 diff --git a/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java b/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java index e250b043..c17e5661 100755 --- a/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java +++ b/src/main/java/neatlogic/framework/autoexec/script/paramtype/ScriptParamTypeBase.java @@ -16,6 +16,8 @@ limitations under the License. package neatlogic.framework.autoexec.script.paramtype; +import com.alibaba.fastjson.JSONObject; + /** * @author lvzk * @since 2021/11/18 12:22 @@ -41,11 +43,11 @@ public abstract class ScriptParamTypeBase implements IScriptParamType{ * @return text */ @Override - public Object getTextByValue(Object value) { - return getMyTextByValue(value); + public Object getTextByValue(Object value, JSONObject config) { + return getMyTextByValue(value, config); } - protected Object getMyTextByValue(Object value){ + protected Object getMyTextByValue(Object value, JSONObject config){ return value; } -- Gitee