From a6716edde43a23069d3afc56dfc60e9eafc2e699 Mon Sep 17 00:00:00 2001 From: dengbf Date: Tue, 9 Sep 2025 11:48:38 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E5=85=B3=E8=81=94]=20#[1506440093597696]?= =?UTF-8?q?=E7=BB=84=E5=90=88=E5=B7=A5=E5=85=B7=EF=BC=9A=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E5=8F=AF=E9=80=89=E7=9A=84=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=85=A8=20http:/?= =?UTF-8?q?/192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/93?= =?UTF-8?q?9050947543057/1506440093597696?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../autoexec/components/script/item/param/inputparam.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/pages/autoexec/components/script/item/param/inputparam.vue b/src/views/pages/autoexec/components/script/item/param/inputparam.vue index 9d4ab782..39f2c88a 100644 --- a/src/views/pages/autoexec/components/script/item/param/inputparam.vue +++ b/src/views/pages/autoexec/components/script/item/param/inputparam.vue @@ -234,6 +234,7 @@ export default { // textarea: ['text', 'textarea'], json: ['json', 'node'] }, + extendParamTypeList: ['text', 'textarea'], //排除不需要校验的参数类型 overrideProfileList: [] //覆盖参数集列表 }; }, @@ -447,7 +448,7 @@ export default { return function(list, type, mappingMode) { if (list && list.length) { let li = []; - if (mappingMode == 'prenodeoutputparamkey' || type === 'text' || type === 'textarea') { //引用上游参数名-选项不受限制, 文本框和文本域不设限制 + if (mappingMode == 'prenodeoutputparamkey' || this.extendParamTypeList.includes(type)) { //引用上游参数名-选项不受限制, 文本框和文本域不设限制 li = list; } else { li = list.filter(l => { @@ -482,7 +483,9 @@ export default { return function(list, type) { //需要过滤掉类型不同类的 if (list && list.length) { - if (this.paramTypeConfig.hasOwnProperty(type)) { + if (this.extendParamTypeList.includes(type)) { + return list; + } else if (this.paramTypeConfig.hasOwnProperty(type)) { let typelist = this.paramTypeConfig[type]; return list.filter(l => { return typelist.includes(l.type); -- Gitee