tntd 1.4.5 → 1.4.6
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.
- package/components/QueryListScene/QueryForm.js +7 -4
- package/dist/stats.json +68 -68
- package/dist/tntd.js +1 -1
- package/es/QueryListScene/QueryForm.js +15 -25
- package/lib/QueryListScene/QueryForm.js +15 -25
- package/package.json +1 -1
|
@@ -45,31 +45,21 @@ function (_React$PureComponent) {
|
|
|
45
45
|
|
|
46
46
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(QueryForm).call(this, props));
|
|
47
47
|
|
|
48
|
-
_this.onSearch = function
|
|
49
|
-
var _this$props
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
case 5:
|
|
64
|
-
// memory 与 url解析setForm时 监听事件异步
|
|
65
|
-
onSearch && onSearch(params);
|
|
66
|
-
actions.emit('search', params);
|
|
67
|
-
|
|
68
|
-
case 7:
|
|
69
|
-
case "end":
|
|
70
|
-
return _context.stop();
|
|
71
|
-
}
|
|
72
|
-
}
|
|
48
|
+
_this.onSearch = function () {
|
|
49
|
+
var _this$props = _this.props,
|
|
50
|
+
onSearch = _this$props.onSearch,
|
|
51
|
+
actions = _this$props.actions;
|
|
52
|
+
var values = actions.getFormData();
|
|
53
|
+
|
|
54
|
+
var params = _objectSpread({}, values, {
|
|
55
|
+
current: 1
|
|
56
|
+
}); // memory 与 url解析setForm时 监听事件异步
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
actions.setData('formData', values);
|
|
60
|
+
Promise.resolve().then(function () {
|
|
61
|
+
onSearch && onSearch(params);
|
|
62
|
+
actions.emit('search', params);
|
|
73
63
|
});
|
|
74
64
|
};
|
|
75
65
|
|
|
@@ -57,31 +57,21 @@ function (_React$PureComponent) {
|
|
|
57
57
|
|
|
58
58
|
_this = _possibleConstructorReturn(this, _getPrototypeOf(QueryForm).call(this, props));
|
|
59
59
|
|
|
60
|
-
_this.onSearch = function
|
|
61
|
-
var _this$props
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
case 5:
|
|
76
|
-
// memory 与 url解析setForm时 监听事件异步
|
|
77
|
-
onSearch && onSearch(params);
|
|
78
|
-
actions.emit('search', params);
|
|
79
|
-
|
|
80
|
-
case 7:
|
|
81
|
-
case "end":
|
|
82
|
-
return _context.stop();
|
|
83
|
-
}
|
|
84
|
-
}
|
|
60
|
+
_this.onSearch = function () {
|
|
61
|
+
var _this$props = _this.props,
|
|
62
|
+
onSearch = _this$props.onSearch,
|
|
63
|
+
actions = _this$props.actions;
|
|
64
|
+
var values = actions.getFormData();
|
|
65
|
+
|
|
66
|
+
var params = _objectSpread({}, values, {
|
|
67
|
+
current: 1
|
|
68
|
+
}); // memory 与 url解析setForm时 监听事件异步
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
actions.setData('formData', values);
|
|
72
|
+
Promise.resolve().then(function () {
|
|
73
|
+
onSearch && onSearch(params);
|
|
74
|
+
actions.emit('search', params);
|
|
85
75
|
});
|
|
86
76
|
};
|
|
87
77
|
|