Skip to content

Commit 2bfc45f

Browse files
committed
[Feat]: #1641 add bulk-update filters
1 parent 096a7d2 commit 2bfc45f

File tree

1 file changed

+15
-3
lines changed
  • client/packages/lowcoder/src/comps/queries/sqlQuery

1 file changed

+15
-3
lines changed

client/packages/lowcoder/src/comps/queries/sqlQuery/SQLQuery.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,13 @@ const CommandMap = {
128128
.setPropertyViewFn((children) => <>{children.records.getPropertyView()}</>)
129129
.build(),
130130
BULK_UPDATE: new MultiCompBuilder(
131-
{ table: TableNameComp, primaryKey: valueComp<string>(""), records: RecordsComp },
132-
(props) => props.records
131+
{
132+
table: TableNameComp,
133+
primaryKey: valueComp<string>(""),
134+
records: RecordsComp,
135+
filterBy: FilterComp,
136+
},
137+
(props) => ({ ...props.records, ...props.filterBy })
133138
)
134139
.setPropertyViewFn((children) => (
135140
<>
@@ -140,8 +145,15 @@ const CommandMap = {
140145
placement={"bottom"}
141146
label={trans("sqlQuery.primaryKeyColumn")}
142147
/>
143-
{children.records.getPropertyView()}
144148

149+
<QueryConfigWrapper>
150+
<QueryConfigLabel>{trans("sqlQuery.filterRule")}</QueryConfigLabel>
151+
<QueryConfigItemWrapper>
152+
{children.filterBy.propertyView({ table: children.table.value, placement: "bottom" })}
153+
</QueryConfigItemWrapper>
154+
</QueryConfigWrapper>
155+
156+
{children.records.getPropertyView()}
145157
</>
146158
))
147159
.build(),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy