wui-components-v2 1.2.50 → 1.2.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -132,7 +132,11 @@ function emitSubmit(fdata: { [key: string]: any }) {
|
|
|
132
132
|
function handleSubmit() {
|
|
133
133
|
if (!formControlRef.value) {
|
|
134
134
|
if (!showSearch.value || !searchCriterion.value?.sourceId) return
|
|
135
|
-
|
|
135
|
+
// 弹窗未挂载(从未打开或已关闭)时,entity 中仍保留着已选中的筛选条件,
|
|
136
|
+
// 不能只提交搜索框关键字,需把搜索框值与 entity 中的筛选值合并后一并提交
|
|
137
|
+
const merged = normalizeForEntity({ ...entity.value })
|
|
138
|
+
merged[searchCriterion.value.sourceId] = search.value
|
|
139
|
+
emitSubmit(merged)
|
|
136
140
|
return
|
|
137
141
|
}
|
|
138
142
|
formControlRef.value.submit().then((fdata: any) => {
|