@zgfe/modules-dm 1.0.34-heyh.14 → 1.0.34-heyh.16
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.
|
@@ -76,6 +76,8 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
76
76
|
appId: getAppID(currentApp),
|
|
77
77
|
ids: ids
|
|
78
78
|
}
|
|
79
|
+
}).then(function () {
|
|
80
|
+
refresh();
|
|
79
81
|
});
|
|
80
82
|
}
|
|
81
83
|
setIsDragDisabled(false);
|
|
@@ -363,7 +365,8 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
363
365
|
componnetIndex: index,
|
|
364
366
|
groupId: item.groupId,
|
|
365
367
|
groupingData: groupingData,
|
|
366
|
-
setGroupingData: setGroupingData
|
|
368
|
+
setGroupingData: setGroupingData,
|
|
369
|
+
refresh: refresh
|
|
367
370
|
}))));
|
|
368
371
|
}));
|
|
369
372
|
});
|
|
@@ -15,7 +15,8 @@ var SortableComponnet = function SortableComponnet(props) {
|
|
|
15
15
|
componnetIndex = props.componnetIndex,
|
|
16
16
|
groupId = props.groupId,
|
|
17
17
|
groupingData = props.groupingData,
|
|
18
|
-
setGroupingData = props.setGroupingData
|
|
18
|
+
setGroupingData = props.setGroupingData,
|
|
19
|
+
refresh = props.refresh;
|
|
19
20
|
// 需要拖动的元素的容器
|
|
20
21
|
var SortableItem = SortableElement(function (data) {
|
|
21
22
|
var _data$value = data.value,
|
|
@@ -101,7 +102,9 @@ var SortableComponnet = function SortableComponnet(props) {
|
|
|
101
102
|
groupId: groupId,
|
|
102
103
|
ids: ids.join(',')
|
|
103
104
|
}
|
|
104
|
-
}).then(function () {
|
|
105
|
+
}).then(function () {
|
|
106
|
+
refresh();
|
|
107
|
+
});
|
|
105
108
|
};
|
|
106
109
|
return /*#__PURE__*/React.createElement(SortableList, {
|
|
107
110
|
distance: 5,
|
|
@@ -221,7 +221,7 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
221
221
|
key: 'lastInsertTime',
|
|
222
222
|
width: 187,
|
|
223
223
|
render: function render(text) {
|
|
224
|
-
return /*#__PURE__*/React.createElement("div", null, moment(text).format('YYYY-MM-DD HH:mm:ss'));
|
|
224
|
+
return /*#__PURE__*/React.createElement("div", null, text ? moment(text).format('YYYY-MM-DD HH:mm:ss') : '');
|
|
225
225
|
}
|
|
226
226
|
}, {
|
|
227
227
|
title: '描述',
|
package/es/utils/index.js
CHANGED
|
@@ -229,13 +229,13 @@ export var eventListHandle = function eventListHandle(data) {
|
|
|
229
229
|
item.checked = false;
|
|
230
230
|
item.open = false;
|
|
231
231
|
if (item.eventList.length > 0) {
|
|
232
|
-
if (!_open) {
|
|
233
|
-
_open = true;
|
|
234
|
-
item.open = true;
|
|
235
|
-
}
|
|
236
232
|
item.eventList = item.eventList.filter(function (_item) {
|
|
237
233
|
return _item.is_delete === 0;
|
|
238
234
|
});
|
|
235
|
+
if (item.eventList.length > 0 && !_open) {
|
|
236
|
+
_open = true;
|
|
237
|
+
item.open = true;
|
|
238
|
+
}
|
|
239
239
|
}
|
|
240
240
|
});
|
|
241
241
|
};
|
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.16",
|
|
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": "bd36e8d459d8fe9a60f17caa03944a8aef5e46a8",
|
|
56
56
|
"gitHooks": {
|
|
57
57
|
"pre-commit": "lint-staged"
|
|
58
58
|
}
|