@zgfe/modules-dm 1.0.34-heyh.22 → 1.0.34-heyh.23
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/es/modules/dataCollection/collectionEventList.js +3 -2
- package/es/modules/dataCollection/components/eventGroupingDrawer.js +13 -2
- package/es/modules/dataCollection/components/tablePlus.js +7 -3
- package/es/modules/dataCollection/components/virtualTablePlus.js +10 -10
- package/es/modules/dataCollection/index.js +1 -1
- package/es/modules/dataCollection/types.d.ts +1 -0
- package/es/modules/dataCollection/virtualEventList.js +5 -4
- package/package.json +2 -2
|
@@ -382,7 +382,7 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
382
382
|
}
|
|
383
383
|
}, "\u521B\u5EFA\u4E8B\u4EF6\u5206\u7EC4"), /*#__PURE__*/React.createElement(Button, {
|
|
384
384
|
shape: "round",
|
|
385
|
-
|
|
385
|
+
disabled: !authority[1700636282],
|
|
386
386
|
onClick: function onClick() {
|
|
387
387
|
return setEventGroupingShow(true);
|
|
388
388
|
}
|
|
@@ -425,7 +425,8 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
425
425
|
})), /*#__PURE__*/React.createElement(EventGroupingDrawer, {
|
|
426
426
|
eventGroupingShow: eventGroupingShow,
|
|
427
427
|
setEventGroupingShow: setEventGroupingShow,
|
|
428
|
-
refresh: refreshHandle
|
|
428
|
+
refresh: refreshHandle,
|
|
429
|
+
source: 'collection'
|
|
429
430
|
}), /*#__PURE__*/React.createElement(Modal, {
|
|
430
431
|
title: "\u521B\u5EFA\u5206\u7EC4",
|
|
431
432
|
className: "creact-group",
|
|
@@ -23,9 +23,11 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
23
23
|
var classPrefix = 'event-grouping-drawer';
|
|
24
24
|
var eventGroupingShow = props.eventGroupingShow,
|
|
25
25
|
setEventGroupingShow = props.setEventGroupingShow,
|
|
26
|
-
refresh = props.refresh
|
|
26
|
+
refresh = props.refresh,
|
|
27
|
+
source = props.source;
|
|
27
28
|
var _useContext = useContext(BizGlobalDataContext),
|
|
28
|
-
currentApp = _useContext.currentApp
|
|
29
|
+
currentApp = _useContext.currentApp,
|
|
30
|
+
authority = _useContext.authority;
|
|
29
31
|
var _useState = useState([]),
|
|
30
32
|
_useState2 = _slicedToArray(_useState, 2),
|
|
31
33
|
groupingData = _useState2[0],
|
|
@@ -100,6 +102,10 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
100
102
|
};
|
|
101
103
|
// 删除事件分组
|
|
102
104
|
var groupDelete = function groupDelete(groupId) {
|
|
105
|
+
if (!authority[source === "virtual" ? 1700636179 : 1700636359]) {
|
|
106
|
+
message.error('无操作权限');
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
103
109
|
Modal.confirm({
|
|
104
110
|
centered: true,
|
|
105
111
|
title: '提示',
|
|
@@ -297,6 +303,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
297
303
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
298
304
|
type: "primary",
|
|
299
305
|
size: "small",
|
|
306
|
+
disabled: !authority[source === "virtual" ? 1700636137 : 1000002],
|
|
300
307
|
onClick: function onClick() {
|
|
301
308
|
setCreateOrEditGrpup('create');
|
|
302
309
|
}
|
|
@@ -342,6 +349,10 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
342
349
|
}), /*#__PURE__*/React.createElement("div", null, item.groupName ? item.groupName : '未分组'), item.groupName && /*#__PURE__*/React.createElement(IconFont, {
|
|
343
350
|
type: "zhongmingming",
|
|
344
351
|
onClick: function onClick() {
|
|
352
|
+
if (!authority[source === "virtual" ? 1700636172 : 1700636344]) {
|
|
353
|
+
message.error('无操作权限');
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
345
356
|
setCreateOrEditGrpup('edit');
|
|
346
357
|
setGrpupNameInput(item.groupName ? item.groupName : '未分组');
|
|
347
358
|
setGrpupModalSelectGrpupId(item.groupId);
|
|
@@ -418,6 +418,10 @@ var TablePlus = function TablePlus(props) {
|
|
|
418
418
|
}, record.alias_name)), /*#__PURE__*/React.createElement(IconFont, {
|
|
419
419
|
className: "edit-alias-name",
|
|
420
420
|
onClick: function onClick() {
|
|
421
|
+
if (!authority[1000003]) {
|
|
422
|
+
message.error('无操作权限');
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
421
425
|
setAliasNameInput(record.alias_name);
|
|
422
426
|
setAliasNameId(record.event_id);
|
|
423
427
|
setaliasNameShow(true);
|
|
@@ -564,7 +568,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
564
568
|
className: "edit-del"
|
|
565
569
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
566
570
|
onClick: function onClick() {
|
|
567
|
-
if (!authority[
|
|
571
|
+
if (!authority[1700636344]) {
|
|
568
572
|
message.error('无修改权限');
|
|
569
573
|
return;
|
|
570
574
|
}
|
|
@@ -578,7 +582,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
578
582
|
type: "bianji"
|
|
579
583
|
}), /*#__PURE__*/React.createElement(IconFont, {
|
|
580
584
|
onClick: function onClick() {
|
|
581
|
-
if (!authority[
|
|
585
|
+
if (!authority[1700636359]) {
|
|
582
586
|
message.error('无修改权限');
|
|
583
587
|
return;
|
|
584
588
|
}
|
|
@@ -590,7 +594,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
590
594
|
return /*#__PURE__*/React.createElement("div", {
|
|
591
595
|
className: "set ".concat(record.owner == 'zg_abp' ? 'set-error' : ''),
|
|
592
596
|
onClick: function onClick() {
|
|
593
|
-
if (!authority[
|
|
597
|
+
if (!authority[1000004]) {
|
|
594
598
|
message.error('无修改权限');
|
|
595
599
|
return;
|
|
596
600
|
}
|
|
@@ -295,7 +295,7 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
295
295
|
className: "edit-del"
|
|
296
296
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
297
297
|
onClick: function onClick() {
|
|
298
|
-
if (!authority[
|
|
298
|
+
if (!authority[1700636172]) {
|
|
299
299
|
message.error('无修改权限');
|
|
300
300
|
return;
|
|
301
301
|
}
|
|
@@ -309,7 +309,7 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
309
309
|
type: "bianji"
|
|
310
310
|
}), /*#__PURE__*/React.createElement(IconFont, {
|
|
311
311
|
onClick: function onClick() {
|
|
312
|
-
if (!authority[
|
|
312
|
+
if (!authority[1700636179]) {
|
|
313
313
|
message.error('无修改权限');
|
|
314
314
|
return;
|
|
315
315
|
}
|
|
@@ -322,18 +322,18 @@ var VirtualTablePlus = function VirtualTablePlus(props) {
|
|
|
322
322
|
className: "set-box"
|
|
323
323
|
}, /*#__PURE__*/React.createElement("div", {
|
|
324
324
|
onClick: function onClick() {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
325
|
+
if (!authority[1700560669]) {
|
|
326
|
+
message.error('无修改权限');
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
329
|
editOrSeeVirtualEvent(record.eventName, 'edit');
|
|
330
330
|
}
|
|
331
331
|
}, "\u7F16\u8F91"), /*#__PURE__*/React.createElement("div", {
|
|
332
332
|
onClick: function onClick() {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
333
|
+
if (!authority[1700560634]) {
|
|
334
|
+
message.error('无修改权限');
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
337
|
eventItemDel(record.eventName);
|
|
338
338
|
}
|
|
339
339
|
}, "\u5220\u9664"));
|
|
@@ -85,7 +85,7 @@ var DataCollection = function DataCollection(props) {
|
|
|
85
85
|
})), listTab == 1 && authority[100020] && /*#__PURE__*/React.createElement(EventList, {
|
|
86
86
|
isOpen: isOpen,
|
|
87
87
|
queryPlanData: queryPlanData
|
|
88
|
-
}), listTab == 3 && /*#__PURE__*/React.createElement(VirtualEventList, null), listTab == 2 && authority[100021] && /*#__PURE__*/React.createElement(CollectionAttributeList, {
|
|
88
|
+
}), listTab == 3 && authority[1700559695] && /*#__PURE__*/React.createElement(VirtualEventList, null), listTab == 2 && authority[100021] && /*#__PURE__*/React.createElement(CollectionAttributeList, {
|
|
89
89
|
isOpen: isOpen,
|
|
90
90
|
queryPlanData: queryPlanData,
|
|
91
91
|
source: "user"
|
|
@@ -265,7 +265,7 @@ var VirtualEventList = function VirtualEventList() {
|
|
|
265
265
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
266
266
|
type: "primary",
|
|
267
267
|
shape: "round",
|
|
268
|
-
|
|
268
|
+
disabled: !authority[1700560606],
|
|
269
269
|
onClick: function onClick() {
|
|
270
270
|
setEditVirtualEventData({
|
|
271
271
|
eventJson: [{}]
|
|
@@ -275,13 +275,13 @@ var VirtualEventList = function VirtualEventList() {
|
|
|
275
275
|
}
|
|
276
276
|
}, "\u521B\u5EFA\u865A\u62DF\u4E8B\u4EF6"), /*#__PURE__*/React.createElement(Button, {
|
|
277
277
|
shape: "round",
|
|
278
|
-
|
|
278
|
+
disabled: !authority[1700636137],
|
|
279
279
|
onClick: function onClick() {
|
|
280
280
|
return setEventNameShow(true);
|
|
281
281
|
}
|
|
282
282
|
}, "\u521B\u5EFA\u4E8B\u4EF6\u5206\u7EC4"), /*#__PURE__*/React.createElement(Button, {
|
|
283
283
|
shape: "round",
|
|
284
|
-
|
|
284
|
+
disabled: !authority[1700636017],
|
|
285
285
|
onClick: function onClick() {
|
|
286
286
|
return setEventGroupingShow(true);
|
|
287
287
|
}
|
|
@@ -312,7 +312,8 @@ var VirtualEventList = function VirtualEventList() {
|
|
|
312
312
|
}), /*#__PURE__*/React.createElement(EventGroupingDrawer, {
|
|
313
313
|
eventGroupingShow: eventGroupingShow,
|
|
314
314
|
setEventGroupingShow: setEventGroupingShow,
|
|
315
|
-
refresh: queryList
|
|
315
|
+
refresh: queryList,
|
|
316
|
+
source: 'virtual'
|
|
316
317
|
}), /*#__PURE__*/React.createElement(Modal, {
|
|
317
318
|
title: "\u521B\u5EFA\u5206\u7EC4",
|
|
318
319
|
className: "creact-group",
|
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.23",
|
|
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": "9031cc305b8d4f92f0eb7dd5a90a95fcbea913d0",
|
|
56
56
|
"gitHooks": {
|
|
57
57
|
"pre-commit": "lint-staged"
|
|
58
58
|
}
|