@zgfe/modules-dm 1.0.34-heyh.24 → 1.0.34-heyh.26
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
|
+
import { DmContext } from '../../../store';
|
|
22
23
|
var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
23
24
|
var classPrefix = 'event-grouping-drawer';
|
|
24
25
|
var eventGroupingShow = props.eventGroupingShow,
|
|
@@ -32,7 +33,8 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
32
33
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33
34
|
groupingData = _useState2[0],
|
|
34
35
|
setGroupingData = _useState2[1];
|
|
35
|
-
|
|
36
|
+
var _useContext2 = useContext(DmContext),
|
|
37
|
+
state = _useContext2.state;
|
|
36
38
|
var _useState3 = useState(false),
|
|
37
39
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
38
40
|
isDragDisabled = _useState4[0],
|
|
@@ -129,6 +131,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
129
131
|
message.success('删除成功');
|
|
130
132
|
queryList();
|
|
131
133
|
refresh();
|
|
134
|
+
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
132
135
|
}
|
|
133
136
|
});
|
|
134
137
|
}
|
|
@@ -147,6 +150,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
147
150
|
}
|
|
148
151
|
}).then(function () {
|
|
149
152
|
refresh();
|
|
153
|
+
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
150
154
|
});
|
|
151
155
|
}
|
|
152
156
|
};
|
|
@@ -198,6 +202,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
198
202
|
if (res.code == '00') {
|
|
199
203
|
queryList();
|
|
200
204
|
refresh();
|
|
205
|
+
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
201
206
|
}
|
|
202
207
|
}).finally(function () {
|
|
203
208
|
setEventMoveShow(undefined);
|
|
@@ -266,9 +271,11 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
266
271
|
queryList();
|
|
267
272
|
refresh();
|
|
268
273
|
GrpupModalClose();
|
|
274
|
+
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
269
275
|
}
|
|
270
276
|
});
|
|
271
277
|
};
|
|
278
|
+
|
|
272
279
|
var GrpupModalClose = function GrpupModalClose() {
|
|
273
280
|
setCreateOrEditGrpup(null);
|
|
274
281
|
setGrpupModalSelectGrpupId(-1);
|
|
@@ -12,6 +12,7 @@ import React, { useEffect, useState, useContext } from 'react';
|
|
|
12
12
|
import '../styles/index.less';
|
|
13
13
|
import { getAppID, getTableScroll } from '../../../utils';
|
|
14
14
|
import moment from 'moment';
|
|
15
|
+
import { DmContext } from '../../../store';
|
|
15
16
|
var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
16
17
|
var classPrefix = 'table-plus';
|
|
17
18
|
var tableRenderData = props.tableRenderData,
|
|
@@ -20,6 +21,8 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
20
21
|
var _useContext = useContext(BizGlobalDataContext),
|
|
21
22
|
currentApp = _useContext.currentApp,
|
|
22
23
|
authority = _useContext.authority;
|
|
24
|
+
var _useContext2 = useContext(DmContext),
|
|
25
|
+
state = _useContext2.state;
|
|
23
26
|
// 是否筛选收藏
|
|
24
27
|
var _useState = useState(false),
|
|
25
28
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -52,6 +55,7 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
52
55
|
message.success('修改成功');
|
|
53
56
|
refresh();
|
|
54
57
|
setEventNameShow(false);
|
|
58
|
+
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
55
59
|
}
|
|
56
60
|
});
|
|
57
61
|
};
|
|
@@ -74,6 +78,7 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
74
78
|
if (res) {
|
|
75
79
|
message.success('删除成功');
|
|
76
80
|
refresh();
|
|
81
|
+
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
77
82
|
}
|
|
78
83
|
});
|
|
79
84
|
}
|
|
@@ -99,6 +104,7 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
99
104
|
if (res) {
|
|
100
105
|
message.success('删除成功');
|
|
101
106
|
refresh();
|
|
107
|
+
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
102
108
|
}
|
|
103
109
|
});
|
|
104
110
|
}
|
|
@@ -116,6 +122,7 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
116
122
|
}).then(function (res) {
|
|
117
123
|
message.success('修改成功');
|
|
118
124
|
refresh();
|
|
125
|
+
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
119
126
|
});
|
|
120
127
|
};
|
|
121
128
|
// 复制事件名称
|
|
@@ -479,8 +479,9 @@
|
|
|
479
479
|
background: #fff;
|
|
480
480
|
border-top: 1px solid #f2f3f4;
|
|
481
481
|
}
|
|
482
|
-
.ant-drawer-content
|
|
483
|
-
|
|
482
|
+
.ant-drawer-content,
|
|
483
|
+
.ant-drawer-wrapper-body {
|
|
484
|
+
overflow: hidden !important;
|
|
484
485
|
}
|
|
485
486
|
}
|
|
486
487
|
|
|
@@ -578,8 +579,9 @@
|
|
|
578
579
|
border: none;
|
|
579
580
|
}
|
|
580
581
|
}
|
|
581
|
-
.ant-drawer-content
|
|
582
|
-
|
|
582
|
+
.ant-drawer-content,
|
|
583
|
+
.ant-drawer-wrapper-body {
|
|
584
|
+
overflow: hidden !important;
|
|
583
585
|
}
|
|
584
586
|
.ant-drawer-title {
|
|
585
587
|
span {
|
|
@@ -708,22 +710,22 @@
|
|
|
708
710
|
}
|
|
709
711
|
}
|
|
710
712
|
&-select {
|
|
711
|
-
margin-top: 16px;
|
|
712
713
|
display: flex;
|
|
713
|
-
justify-content: flex-start;
|
|
714
|
-
align-items: center;
|
|
715
714
|
gap: 10px;
|
|
716
|
-
|
|
715
|
+
align-items: center;
|
|
716
|
+
justify-content: flex-start;
|
|
717
|
+
margin-top: 16px;
|
|
718
|
+
> :nth-child(1) {
|
|
717
719
|
width: 32px;
|
|
718
|
-
color: #
|
|
720
|
+
color: #5f6085;
|
|
719
721
|
}
|
|
720
722
|
}
|
|
721
723
|
&-modal-box {
|
|
722
|
-
.ant-modal-header{
|
|
723
|
-
padding-bottom: 0!important;
|
|
724
|
+
.ant-modal-header {
|
|
725
|
+
padding-bottom: 0 !important;
|
|
724
726
|
}
|
|
725
|
-
.ant-modal-body{
|
|
726
|
-
|
|
727
|
+
.ant-modal-body {
|
|
728
|
+
> :nth-child(1) {
|
|
727
729
|
color: #021429;
|
|
728
730
|
}
|
|
729
731
|
}
|
|
@@ -744,7 +746,7 @@
|
|
|
744
746
|
}
|
|
745
747
|
}
|
|
746
748
|
}
|
|
747
|
-
#select-attributes-select{
|
|
749
|
+
#select-attributes-select {
|
|
748
750
|
.ant-select-dropdown {
|
|
749
751
|
display: none !important;
|
|
750
752
|
}
|
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.26",
|
|
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": "e0eabbe9365f2536eb02a13a40460f3657fbfecc",
|
|
56
56
|
"gitHooks": {
|
|
57
57
|
"pre-commit": "lint-staged"
|
|
58
58
|
}
|