@zgfe/modules-dm 1.0.2-dm.19 → 1.0.2-dm.20
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/collectionAttributeList.js +10 -0
- package/es/modules/dataCollection/collectionEventList.js +1 -0
- package/es/modules/dataCollection/tablePlus.js +19 -3
- package/es/modules/dataPlan/addPlan.js +7 -2
- package/es/modules/dataPlan/index.js +6 -0
- package/es/modules/dataPlan/search.d.ts +1 -0
- package/es/modules/dataPlan/search.js +1 -0
- package/package.json +3 -3
|
@@ -186,6 +186,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
186
186
|
return /*#__PURE__*/React.createElement(Input, {
|
|
187
187
|
className: "alias_name",
|
|
188
188
|
placeholder: "\u7F16\u8F91\u522B\u540D",
|
|
189
|
+
disabled: isDemo,
|
|
189
190
|
defaultValue: record.alias_name,
|
|
190
191
|
onFocus: aliasFocus,
|
|
191
192
|
onBlur: function onBlur(e) {
|
|
@@ -205,6 +206,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
205
206
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
206
207
|
className: "alias_name",
|
|
207
208
|
placeholder: "\u7F16\u8F91\u522B\u540D",
|
|
209
|
+
disabled: isDemo,
|
|
208
210
|
defaultValue: record.alias_name,
|
|
209
211
|
onFocus: aliasFocus,
|
|
210
212
|
onBlur: function onBlur(e) {
|
|
@@ -221,6 +223,11 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
221
223
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !rowRenderHandle(record.name) && /*#__PURE__*/React.createElement("span", {
|
|
222
224
|
className: "attr_alias_name",
|
|
223
225
|
onClick: function onClick() {
|
|
226
|
+
if (isDemo) {
|
|
227
|
+
message.error('demo环境,无法编辑');
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
|
|
224
231
|
setattrId(source == 'event' ? record.attr_id : record.id);
|
|
225
232
|
setAttrAliasNameShow(true);
|
|
226
233
|
}
|
|
@@ -241,6 +248,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
241
248
|
style: {
|
|
242
249
|
width: '100%'
|
|
243
250
|
},
|
|
251
|
+
disabled: isDemo,
|
|
244
252
|
onChange: function onChange(e) {
|
|
245
253
|
return attrChangeHandle(e, record, 'type');
|
|
246
254
|
},
|
|
@@ -266,6 +274,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
266
274
|
style: {
|
|
267
275
|
width: '100%'
|
|
268
276
|
},
|
|
277
|
+
disabled: isDemo,
|
|
269
278
|
onChange: function onChange(e) {
|
|
270
279
|
return attrChangeHandle(e, record, 'hidden');
|
|
271
280
|
},
|
|
@@ -293,6 +302,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
293
302
|
style: {
|
|
294
303
|
width: '100%'
|
|
295
304
|
},
|
|
305
|
+
disabled: isDemo,
|
|
296
306
|
onChange: function onChange(e) {
|
|
297
307
|
return attrChangeHandle(e, record, 'encryption_type');
|
|
298
308
|
},
|
|
@@ -436,6 +436,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
436
436
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
437
437
|
className: "alias_name",
|
|
438
438
|
placeholder: "\u7F16\u8F91\u522B\u540D",
|
|
439
|
+
disabled: isDemo,
|
|
439
440
|
defaultValue: record.alias_name,
|
|
440
441
|
onFocus: aliasFocus,
|
|
441
442
|
onBlur: function onBlur(e) {
|
|
@@ -496,7 +497,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
496
497
|
width: 150
|
|
497
498
|
},
|
|
498
499
|
value: record.event_hidden,
|
|
499
|
-
disabled: rowClassNameHandle(record) == 'error-row' ? true : false,
|
|
500
|
+
disabled: rowClassNameHandle(record) == 'error-row' || isDemo ? true : false,
|
|
500
501
|
onChange: function onChange(e) {
|
|
501
502
|
return eventHiddenChange(e, 'event_hidden', record.event_id);
|
|
502
503
|
},
|
|
@@ -542,7 +543,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
542
543
|
style: {
|
|
543
544
|
width: 150
|
|
544
545
|
},
|
|
545
|
-
disabled: rowClassNameHandle(record) == 'error-row' ? true : false,
|
|
546
|
+
disabled: rowClassNameHandle(record) == 'error-row' || isDemo ? true : false,
|
|
546
547
|
onChange: function onChange(e) {
|
|
547
548
|
return eventHiddenChange(e, 'is_stop', record.event_id);
|
|
548
549
|
},
|
|
@@ -583,6 +584,11 @@ var TablePlus = function TablePlus(props) {
|
|
|
583
584
|
className: "edit-del"
|
|
584
585
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
585
586
|
onClick: function onClick() {
|
|
587
|
+
if (isDemo) {
|
|
588
|
+
message.error('demo环境无法修改');
|
|
589
|
+
return;
|
|
590
|
+
}
|
|
591
|
+
|
|
586
592
|
setEventNameData({
|
|
587
593
|
groupName: record.groupName,
|
|
588
594
|
groupId: record.groupId
|
|
@@ -593,7 +599,12 @@ var TablePlus = function TablePlus(props) {
|
|
|
593
599
|
type: "bianji"
|
|
594
600
|
}), /*#__PURE__*/React.createElement(IconFont, {
|
|
595
601
|
onClick: function onClick() {
|
|
596
|
-
|
|
602
|
+
if (isDemo) {
|
|
603
|
+
message.error('demo环境无法删除');
|
|
604
|
+
return;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
eventNameDel(record.groupId);
|
|
597
608
|
},
|
|
598
609
|
type: "shanchu"
|
|
599
610
|
}));
|
|
@@ -601,6 +612,11 @@ var TablePlus = function TablePlus(props) {
|
|
|
601
612
|
return /*#__PURE__*/React.createElement("div", {
|
|
602
613
|
className: "set ".concat(record.owner == 'zg_abp' ? 'set-error' : ''),
|
|
603
614
|
onClick: function onClick() {
|
|
615
|
+
if (isDemo) {
|
|
616
|
+
message.error('demo环境无法删除');
|
|
617
|
+
return;
|
|
618
|
+
}
|
|
619
|
+
|
|
604
620
|
record.owner != 'zg_abp' ? eventItemDel(record.event_id) : message.error('内置事件无法删除');
|
|
605
621
|
}
|
|
606
622
|
}, "\u5220\u9664");
|
|
@@ -674,6 +674,7 @@ var AddPlan = function AddPlan(props) {
|
|
|
674
674
|
type: "bianji1"
|
|
675
675
|
})), detailNameShow == 'input' && /*#__PURE__*/React.createElement(Input, {
|
|
676
676
|
size: "small",
|
|
677
|
+
disabled: isDemo,
|
|
677
678
|
className: "plan-name",
|
|
678
679
|
placeholder: "\u8BF7\u8F93\u5165\u65B9\u6848\u540D\u79F0",
|
|
679
680
|
value: planName,
|
|
@@ -704,6 +705,7 @@ var AddPlan = function AddPlan(props) {
|
|
|
704
705
|
})), /*#__PURE__*/React.createElement("div", {
|
|
705
706
|
className: "handle-box"
|
|
706
707
|
}, selectedRowKeys.length > 0 && /*#__PURE__*/React.createElement(Button, {
|
|
708
|
+
disabled: isDemo,
|
|
707
709
|
onClick: batchDetele
|
|
708
710
|
}, "\u6279\u91CF\u5220\u9664"), props.detailId != -1 && /*#__PURE__*/React.createElement(Select, {
|
|
709
711
|
className: "export-data",
|
|
@@ -723,14 +725,17 @@ var AddPlan = function AddPlan(props) {
|
|
|
723
725
|
}
|
|
724
726
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
725
727
|
type: "xiazai1"
|
|
726
|
-
}), "\u4E0B\u8F7D\u6A21\u677F"), /*#__PURE__*/React.createElement(Upload, _objectSpread({}, uploadProps), /*#__PURE__*/React.createElement(Button,
|
|
728
|
+
}), "\u4E0B\u8F7D\u6A21\u677F"), /*#__PURE__*/React.createElement(Upload, _objectSpread({}, uploadProps), /*#__PURE__*/React.createElement(Button, {
|
|
729
|
+
disabled: isDemo
|
|
730
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
727
731
|
type: "daochu"
|
|
728
732
|
}), "\u6587\u4EF6\u4E0A\u4F20")))), /*#__PURE__*/React.createElement(Search, {
|
|
729
733
|
type: listTab == '1' ? 'event' : 'user',
|
|
730
734
|
total: searchTotal,
|
|
731
735
|
searchData: searchData,
|
|
732
736
|
setSearchData: setSearchData,
|
|
733
|
-
setVisible: setVisible
|
|
737
|
+
setVisible: setVisible,
|
|
738
|
+
isDemo: isDemo
|
|
734
739
|
}), listTab == '1' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("ul", {
|
|
735
740
|
className: "".concat(classPrefix, "-table-header")
|
|
736
741
|
}, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement(Checkbox, {
|
|
@@ -35,6 +35,11 @@ var PlanList = function PlanList(props) {
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var tableDel = function tableDel(data) {
|
|
38
|
+
if (isDemo) {
|
|
39
|
+
message.error('demo环境,无法删除');
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
|
|
38
43
|
Modal.confirm({
|
|
39
44
|
centered: true,
|
|
40
45
|
title: '是否确认删除方案?',
|
|
@@ -204,6 +209,7 @@ var PlanList = function PlanList(props) {
|
|
|
204
209
|
unCheckedChildren: "\u5173",
|
|
205
210
|
checked: isOpen
|
|
206
211
|
})), /*#__PURE__*/React.createElement(Button, {
|
|
212
|
+
disabled: isDemo,
|
|
207
213
|
onClick: function onClick() {
|
|
208
214
|
if (listData.length >= 10) {
|
|
209
215
|
return message.error('最多创建10个埋点方案');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.2-dm.
|
|
3
|
+
"version": "1.0.2-dm.20",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"license": "ISC",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@types/lodash": "^4.14.182",
|
|
42
42
|
"@umijs/fabric": "^2.8.1",
|
|
43
43
|
"@umijs/test": "^3.0.5",
|
|
44
|
-
"@zgfe/business-lib": "1.1.7-dmd2.
|
|
44
|
+
"@zgfe/business-lib": "1.1.7-dmd2.7",
|
|
45
45
|
"antd": "4.22.6",
|
|
46
46
|
"dumi": "^1.1.0",
|
|
47
47
|
"father-build": "^1.17.2",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"umi-request": "^1.4.0",
|
|
54
54
|
"yorkie": "^2.0.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "d0bf84e8a1b86247fd042fcca3c497f0e065e0a9",
|
|
57
57
|
"gitHooks": {
|
|
58
58
|
"pre-commit": "lint-staged"
|
|
59
59
|
}
|