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 = {
128
128
. setPropertyViewFn ( ( children ) => < > { children . records . getPropertyView ( ) } </ > )
129
129
. build ( ) ,
130
130
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 } )
133
138
)
134
139
. setPropertyViewFn ( ( children ) => (
135
140
< >
@@ -140,8 +145,15 @@ const CommandMap = {
140
145
placement = { "bottom" }
141
146
label = { trans ( "sqlQuery.primaryKeyColumn" ) }
142
147
/>
143
- { children . records . getPropertyView ( ) }
144
148
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 ( ) }
145
157
</ >
146
158
) )
147
159
. build ( ) ,
You can’t perform that action at this time.
0 commit comments