From 49d5ea2ade80097d92c31a6bdea2cfe3adb3154d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Mon, 27 Nov 2023 14:14:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80form=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=8C=E5=96=84=20=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=20=E4=B8=8D=E6=BB=A1=E8=B6=B3=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=88=97=E8=A1=A8=E5=B1=95=E7=8E=B0=E8=A6=81=E7=A9=BA?= =?UTF-8?q?=E8=80=8C=E9=9D=9E=E5=85=A8=E9=83=A8=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BasicForm/src/BasicForm.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 82bfc2b64..91fe34606 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -181,14 +181,15 @@ const opensearchTable = ( let filters:any[] = [] searchCondition.forEach((item) => { // 查询条件为主表某字段,需要赋值主表数据,数据来源是详情的,赋值需要从row中获取 + // 20231127 row[item.value]?row[item.value] 修改为 row?row[item.value] 返回'null' 为了查询不到任何数据 if (item.isMainValue) { _searchCondition[item.key] = formRef.value.formModel[item.value] ? formRef.value.formModel[item.value] : props.detailData ? props.detailData[item.value] - : row[item.value] + : row ? row[item.value] - : '' + : 'null' } else { // 扩展 转换为筛选条件进行查询 if (item.isSearch) {