File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
client/packages/lowcoder/src/comps/queries/sqlQuery Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff 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 ( ) ,
You can’t perform that action at this time.
0 commit comments