|
@@ -611,9 +611,9 @@ class SystemEventFu {
|
|
|
}
|
|
|
]
|
|
|
})
|
|
|
- showWidget(widgetUrl, lookup) {
|
|
|
+ showWidget(widgetUrl, lookup, otherParams) {
|
|
|
return function (sender, queryValue) {
|
|
|
- showWidget(widgetUrl, lookup, sender, queryValue)
|
|
|
+ showWidget(widgetUrl, lookup, otherParams, sender, queryValue)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -681,7 +681,7 @@ export function clearViewModelByLookup(sender, lookup) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-export function showWidget(widgetUrl, lookup, sender, queryValue, vjson = {}) {
|
|
|
+export function showWidget(widgetUrl, lookup, otherParams, sender, queryValue, vjson = {}) {
|
|
|
const parentScope = lookupScope(sender)
|
|
|
const me = sender
|
|
|
|
|
@@ -695,6 +695,11 @@ export function showWidget(widgetUrl, lookup, sender, queryValue, vjson = {}) {
|
|
|
queryValue: queryValue,
|
|
|
...parentScope.viewModel.data
|
|
|
}, lookup)
|
|
|
+
|
|
|
+ _.map(otherParams, (value, key) => {
|
|
|
+ widgetDialogData[key] = value
|
|
|
+ })
|
|
|
+
|
|
|
widgetScope.parentScope = parentScope
|
|
|
widgetScope.searchWidgetSuccess = (data) => {
|
|
|
if (typeof lookup === 'string') {
|