luoyifan 3 anni fa
parent
commit
cfdf90f66d
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      src/controls/input/combogrid.js

+ 5 - 2
src/controls/input/combogrid.js

@@ -89,7 +89,7 @@ export default function () {
                                 return
                             }
 
-                            if(!that.allowCustomInput) {
+                            if (!that.allowCustomInput) {
                                 // 取消 keyup 事件,让 ext 不要吧当前输入的值记录到 value 中
                                 stopEvent(e)
                             }
@@ -255,8 +255,11 @@ export default function () {
 
         onExpand() {
             // 展开时,根据 lookup 带入查询参数
-            const reloadParam = calcObjectFlat(this.getExpressData(), this.param)
+            const expressData = this.getExpressData()
+            const reloadParam = calcObjectFlat(expressData, this.param)
 
+            // 每个 combogrid 默认带上 __queryValue 属性
+            reloadParam["__queryValue"] = expressData.queryValue
             this.grid.reload(reloadParam)
         },