From 2097395d4864c5eaa400321de44706f336e13bf5 Mon Sep 17 00:00:00 2001 From: dengbf Date: Mon, 12 May 2025 12:25:28 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=20=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E6=90=9C=E7=B4=A2=E6=8A=A5=E9=94=99=20=20-?= =?UTF-8?q?=20[=E5=85=B3=E8=81=94]=20#[1415960299274240]IT=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1-=E5=AE=9A=E5=88=B6=E8=A1=A8=E5=8D=95=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E7=AC=AC=E4=B8=80=E5=B1=82=E5=B8=B8=E8=A7=84?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=94=AF=E6=8C=81=E6=A3=80=E7=B4=A2=20http:/?= =?UTF-8?q?/192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/?= =?UTF-8?q?939050947543042/1415960299274240?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProcessTaskSearcher/handlers/channelselect.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/resources/components/ProcessTaskSearcher/handlers/channelselect.vue b/src/resources/components/ProcessTaskSearcher/handlers/channelselect.vue index bf31b5c1..ad7da395 100644 --- a/src/resources/components/ProcessTaskSearcher/handlers/channelselect.vue +++ b/src/resources/components/ProcessTaskSearcher/handlers/channelselect.vue @@ -256,7 +256,16 @@ export default { } catch (e) { console.error(e); } - this.formConditionList.push(newD); + //如果有相同的属性,就不添加了,避免重复添加 + let findItem = this.formConditionList.find(f => f.handler === newD.handler); + if (findItem) { + if (findItem.formHandler === newD.formHandler && !this.$utils.isEmpty(newD.config)) { + let newConfig = Object.assign({}, findItem.config || {}, newD.config); + this.$set(findItem, 'config', newConfig); + } + } else { + this.formConditionList.push(newD); + } }); } }); -- Gitee