@zgfe/modules-interval 1.0.0-interval.42 → 1.0.0-interval.44
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.
|
@@ -26,6 +26,7 @@ var CancelToken = Request.CancelToken;
|
|
|
26
26
|
var cancel;
|
|
27
27
|
var classPrefix = 'interval-content';
|
|
28
28
|
var EventContent = function EventContent(props) {
|
|
29
|
+
console.log(7777777, props);
|
|
29
30
|
// 最后的查询数据(防止图表在还没查询时就改变了类型)
|
|
30
31
|
var _useState = useState(props.value),
|
|
31
32
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -118,12 +119,12 @@ var EventContent = function EventContent(props) {
|
|
|
118
119
|
setLoading(false);
|
|
119
120
|
return;
|
|
120
121
|
}
|
|
121
|
-
setLoading(true);
|
|
122
122
|
setEventData(undefined);
|
|
123
|
+
setLoading(true);
|
|
123
124
|
// 取消上次未完成的请求
|
|
124
|
-
if (typeof cancel === 'function') {
|
|
125
|
-
|
|
126
|
-
}
|
|
125
|
+
// if (typeof cancel === 'function') {
|
|
126
|
+
// cancel();
|
|
127
|
+
// }
|
|
127
128
|
if (searchData !== null && searchData !== void 0 && (_searchData$associate = searchData.associatedNextAttr) !== null && _searchData$associate !== void 0 && _searchData$associate.type && (searchData === null || searchData === void 0 ? void 0 : (_searchData$associate2 = searchData.associatedPreAttr) === null || _searchData$associate2 === void 0 ? void 0 : _searchData$associate2.type) !== (searchData === null || searchData === void 0 ? void 0 : (_searchData$associate3 = searchData.associatedNextAttr) === null || _searchData$associate3 === void 0 ? void 0 : _searchData$associate3.type)) {
|
|
128
129
|
setLoading(false);
|
|
129
130
|
return message.error('您查询的属性不一致,暂不支持查询');
|