From 9f3200005a2109cf1c7dc6242ae4cc925ffa2461 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Mon, 13 May 2024 18:46:09 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E5=89=8D=E7=AB=AF-?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A4=8D=E5=88=B6=E5=BE=97=E5=88=B0=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E5=8F=82=E6=95=B0=E7=9A=84key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1155858279399424]前端-优化复制得到脚本参数的key http://192.168.0.96:8090/demo/rdm.html#/task-detail/939050947543040/939050947543050/1155858279399424 --- .../flow/flowedit/components/condition-attr-list.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/pages/process/flow/flowedit/components/condition-attr-list.vue b/src/views/pages/process/flow/flowedit/components/condition-attr-list.vue index db422456..baa34c66 100644 --- a/src/views/pages/process/flow/flowedit/components/condition-attr-list.vue +++ b/src/views/pages/process/flow/flowedit/components/condition-attr-list.vue @@ -68,14 +68,14 @@ export default { }, getScriptParam(attr) { let str = ''; - if (this.parentAttr) { - const ps = this.parentAttr.split('\.'); + if (this.parentAttrLabel) { + const ps = this.parentAttrLabel.split('\.'); ps.forEach(p => { str += "['" + p + "'][?]"; }); } - return '/*' + (this.parentAttrLabel ? this.parentAttrLabel + '.' : '') + attr.label + '*/ data' + str + "['" + attr.name + "']"; + return '/*' + (this.parentAttrLabel ? this.parentAttrLabel + '.' : '') + attr.label + '*/ data' + str + "['" + attr.label + "']"; } }, filter: {}, -- Gitee