@zgfe/modules-dm 1.0.34-heyh.27 → 1.0.34-heyh.29
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.
|
@@ -19,6 +19,7 @@ import { eventListHandle, groupListSort, eventCheckedAll, openChangeData, eventS
|
|
|
19
19
|
import React, { Fragment, useContext, useEffect, useState } from 'react';
|
|
20
20
|
import _ from 'lodash';
|
|
21
21
|
import SortableComponnet from './sortableComponnet';
|
|
22
|
+
var requestMove = false;
|
|
22
23
|
import { DmContext } from '../../../store';
|
|
23
24
|
var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
24
25
|
var classPrefix = 'event-grouping-drawer';
|
|
@@ -188,6 +189,10 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
188
189
|
}
|
|
189
190
|
};
|
|
190
191
|
var eventMoveChange = function eventMoveChange() {
|
|
192
|
+
if (requestMove) {
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
requestMove = true;
|
|
191
196
|
request(apis.operateGroupRelations, {
|
|
192
197
|
method: 'post',
|
|
193
198
|
data: {
|
|
@@ -205,6 +210,9 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
205
210
|
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
206
211
|
}
|
|
207
212
|
}).finally(function () {
|
|
213
|
+
setTimeout(function () {
|
|
214
|
+
requestMove = false;
|
|
215
|
+
}, 1000);
|
|
208
216
|
setEventMoveShow(undefined);
|
|
209
217
|
});
|
|
210
218
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.34-heyh.
|
|
3
|
+
"version": "1.0.34-heyh.29",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"umi-request": "^1.4.0",
|
|
53
53
|
"yorkie": "^2.0.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "92ccee8db67720a41f91b7c726641500990f6269",
|
|
56
56
|
"gitHooks": {
|
|
57
57
|
"pre-commit": "lint-staged"
|
|
58
58
|
}
|