From ef3668bccac8e1a3ed171a16deaf456bc62eec6d Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期一, 02 十二月 2024 15:58:55 +0800 Subject: [PATCH] 修改查询条件显示 --- Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue index 8db65f5..f890ffe 100644 --- a/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue +++ b/Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-tree.vue @@ -179,9 +179,12 @@ } for (let i in this.sourceData) { const item = this.sourceData[i] - if (item && item.constructor === Object) continue; if (['type', 'context', 'content', 'querytemplate', 'querytype'].includes(i)) continue; - sourceDataMap['sourceData["' + i + '"]'] = item + if (item && item.constructor === Object) { + sourceDataMap['sourceData["' + i + '"]'] = JSON.stringify(item) + }else { + sourceDataMap['sourceData["' + i + '"]'] = item + } } } @@ -239,7 +242,7 @@ if (parentOid != 0 && parentOid.indexOf('@vcitreesep@') > -1) { parentOid = parentOid.split('@vcitreesep@')[1]; } - const parentBtmName = (node.level === 0) ? '' : node.data.attributes.btmname; + const parentBtmName = (node.level === 0) ? '' : (node.data.attributes.part.btmname || node.data.attributes.btmname); const params = this.params; let url=''; if (node.level === 0) { -- Gitblit v1.9.3