@zgfe/modules-dm 1.0.57-zhongyuan.60 → 1.0.57-zhongyuan.62

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.
@@ -12,6 +12,7 @@ interface PropsType {
12
12
  event_id: number;
13
13
  event_name: string;
14
14
  owner?: string;
15
+ newOwner?: string;
15
16
  attr_name: string;
16
17
  };
17
18
  isOpen: number;
@@ -139,7 +139,15 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
139
139
  var _temp = eventAttrsData === null || eventAttrsData === void 0 ? void 0 : eventAttrsData.event_attrs.map(function (item) {
140
140
  item.name = item.attr_name;
141
141
  item.type = item.prop_type;
142
- return item;
142
+ if (ownerWhiteListDataList.includes(item === null || item === void 0 ? void 0 : item.attr_name)) {
143
+ return _objectSpread(_objectSpread({}, item), {}, {
144
+ newOwner: 'zg_abp'
145
+ });
146
+ } else {
147
+ return _objectSpread(_objectSpread({}, item), {}, {
148
+ newOwner: 'zg'
149
+ });
150
+ }
143
151
  }) // 业务不展示
144
152
  .filter(function (item) {
145
153
  return item.attr_id != 31415926;
@@ -306,7 +314,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
306
314
  // }
307
315
  disabled: isDemo ||
308
316
  // !authority[1000004] ||
309
- eventWhiteList.includes(record.attr_name) || record.category === 'fixed',
317
+ record.newOwner == 'zg_abp' || record.category === 'fixed',
310
318
  defaultValue: record.alias_name,
311
319
  onFocus: aliasFocus,
312
320
  onBlur: function onBlur(e) {
@@ -334,9 +342,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
334
342
  // }
335
343
  disabled: isDemo ||
336
344
  // !authority[1000004] ||
337
- //
338
- // record.owner == 'zg_abp'
339
- eventWhiteList.includes(record.attr_name) || record.category === 'fixed',
345
+ record.newOwner == 'zg_abp' || record.category === 'fixed',
340
346
  defaultValue: record.alias_name,
341
347
  onFocus: aliasFocus,
342
348
  onBlur: function onBlur(e) {
@@ -432,7 +438,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
432
438
  width: 100
433
439
  },
434
440
  // disabled={isDemo || record.isIdMappingProp || record.category === 'fixed'}
435
- disabled: isDemo || !authority[1000004] || !record.canUpdate || record.category === 'fixed' || eventWhiteList.includes(record.attr_name),
441
+ disabled: isDemo || !authority[1000004] || !record.canUpdate || record.category === 'fixed' || record.newOwner == 'zg_abp',
436
442
  onChange: function onChange(e) {
437
443
  return attrChangeHandle(e, record, 'type');
438
444
  },
@@ -489,7 +495,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
489
495
  width: 100
490
496
  },
491
497
  // disabled={isDemo || record.isIdMappingProp || record.category === 'fixed'}
492
- disabled: isDemo || !authority[1000004] || record.category === 'fixed' || eventWhiteList.includes(record.attr_name),
498
+ disabled: isDemo || !authority[1000004] || record.category === 'fixed' || record.newOwner == 'zg_abp',
493
499
  onChange: function onChange(e) {
494
500
  return attrChangeHandle(e, record, 'hidden');
495
501
  },
@@ -551,7 +557,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
551
557
  width: 100
552
558
  },
553
559
  // disabled={isDemo || record.isIdMappingProp}
554
- disabled: isDemo || !authority[1000004] || record.category === 'fixed' || eventWhiteList.includes(record.attr_name),
560
+ disabled: isDemo || !authority[1000004] || record.category === 'fixed' || record.newOwner == 'zg_abp',
555
561
  onChange: function onChange(e) {
556
562
  return attrChangeHandle(e, record, 'encryption_type');
557
563
  },
@@ -677,14 +683,14 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
677
683
  }
678
684
  })
679
685
  })),
680
- dataIndex: 'attr_name',
686
+ dataIndex: 'newOwner',
681
687
  width: 120,
682
688
  render: function render(record) {
683
689
  var json = {
684
690
  zg_abp: '内置',
685
691
  zg: '自定义'
686
692
  };
687
- return /*#__PURE__*/React.createElement("div", null, ownerWhiteListDataList.includes(record) ? '内置' : '自定义');
693
+ return /*#__PURE__*/React.createElement("div", null, json[record]);
688
694
  }
689
695
  }]), [{
690
696
  title: '操作',
@@ -696,7 +702,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
696
702
  style: {
697
703
  padding: 0
698
704
  },
699
- disabled: source === 'event' ? eventWhiteList.includes(record.attr_name) || !authority[1000004] || !record.canUpdate : record.category == 'fixed' || isDemo || !authority[1000004],
705
+ disabled: source === 'event' ? record.newOwner == 'zg_abp' || !authority[1000004] || !record.canUpdate : record.category == 'fixed' || isDemo || !authority[1000004],
700
706
  onClick: function onClick() {
701
707
  if (isDemo || !authority[1000004]) {
702
708
  message.error('无删除权限');
@@ -1150,7 +1156,6 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
1150
1156
  //页面加载完成后才能获取到对应的元素及其位置
1151
1157
  useEffect(function () {
1152
1158
  var _Y = getTableScroll(60, 'dataManageAttrTable');
1153
- // console.log('_Y', _Y);
1154
1159
  setScrollY(_Y);
1155
1160
  }, []);
1156
1161
  return /*#__PURE__*/React.createElement("div", {
@@ -1219,7 +1224,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
1219
1224
  }).filter(function (item) {
1220
1225
  return category == '' || item.category === category;
1221
1226
  }).filter(function (item) {
1222
- return owner == '' || item.owner === owner;
1227
+ return owner == '' || item.newOwner === owner;
1223
1228
  }),
1224
1229
  pagination: false
1225
1230
  }), source == 'event' && (/*#__PURE__*/React.createElement(Button, {
@@ -1251,7 +1256,8 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
1251
1256
  name: '',
1252
1257
  aliasName: '',
1253
1258
  type: 1,
1254
- encryptionType: 0
1259
+ encryptionType: 0,
1260
+ newOwner: 'zg'
1255
1261
  }]));
1256
1262
  }
1257
1263
  }, /*#__PURE__*/React.createElement(IconFont, {
@@ -460,7 +460,7 @@ var CollectionEventList = function CollectionEventList(props) {
460
460
  fileName: "\u5143\u4E8B\u4EF6\u5217\u8868_".concat(moment().format('YYYYMMDD'))
461
461
  }).then(function (res) {});
462
462
  };
463
- var items = [{
463
+ var items = showProdDownload ? [{
464
464
  key: '2',
465
465
  disabled: !authority[1700636282],
466
466
  label: (/*#__PURE__*/React.createElement("a", {
@@ -475,7 +475,7 @@ var CollectionEventList = function CollectionEventList(props) {
475
475
  }), /*#__PURE__*/React.createElement("span", null, "\u4E8B\u4EF6\u5206\u7EC4\u7BA1\u7406")))
476
476
  }, {
477
477
  key: '3',
478
- disabled: isDemo || !authority[1722837260] || !showProdDownload,
478
+ disabled: isDemo || !authority[1722837260],
479
479
  label: (/*#__PURE__*/React.createElement("a", {
480
480
  className: "".concat(classPrefix, "-downItems"),
481
481
  onClick: function onClick() {
@@ -485,10 +485,10 @@ var CollectionEventList = function CollectionEventList(props) {
485
485
  type: "xiazai1",
486
486
  size: 16,
487
487
  className: "creditPopClickIcon"
488
- }), " ", /*#__PURE__*/React.createElement("span", null, "\u5BFC\u5165\u4E8B\u4EF6")))
488
+ }), ' ', /*#__PURE__*/React.createElement("span", null, "\u5BFC\u5165\u4E8B\u4EF6")))
489
489
  }, {
490
490
  key: '4',
491
- disabled: isDemo || !authority[1722837261] || !showProdDownload,
491
+ disabled: isDemo || !authority[1722837261],
492
492
  label: (/*#__PURE__*/React.createElement("a", {
493
493
  className: "".concat(classPrefix, "-downItems"),
494
494
  onClick: exportEvent
@@ -496,7 +496,7 @@ var CollectionEventList = function CollectionEventList(props) {
496
496
  type: "daochu1",
497
497
  size: 16,
498
498
  className: "creditPopClickIcon"
499
- }), " ", /*#__PURE__*/React.createElement("span", null, "\u5BFC\u51FA\u4E8B\u4EF6")))
499
+ }), ' ', /*#__PURE__*/React.createElement("span", null, "\u5BFC\u51FA\u4E8B\u4EF6")))
500
500
  }, {
501
501
  key: '5',
502
502
  label: (/*#__PURE__*/React.createElement("a", {
@@ -511,7 +511,6 @@ var CollectionEventList = function CollectionEventList(props) {
511
511
  }), ' ', /*#__PURE__*/React.createElement("span", null, "\u5F00\u53D1\u7BA1\u7406")))
512
512
  }, {
513
513
  key: '6',
514
- disabled: !showProdDownload,
515
514
  label: (/*#__PURE__*/React.createElement("a", {
516
515
  className: "".concat(classPrefix, "-downItems"),
517
516
  onClick: function onClick() {
@@ -524,7 +523,6 @@ var CollectionEventList = function CollectionEventList(props) {
524
523
  }), ' ', /*#__PURE__*/React.createElement("span", null, "\u751F\u6210\u6D4B\u8BD5\u62A5\u544A")))
525
524
  }, {
526
525
  key: '7',
527
- disabled: !showProdDownload,
528
526
  label: (/*#__PURE__*/React.createElement("a", {
529
527
  className: "".concat(classPrefix, "-downItems"),
530
528
  onClick: function onClick() {
@@ -535,6 +533,31 @@ var CollectionEventList = function CollectionEventList(props) {
535
533
  size: 16,
536
534
  className: "creditPopClickIcon"
537
535
  }), /*#__PURE__*/React.createElement("span", null, "\u5BFC\u51FA\u6570\u636E\u5305")))
536
+ }] : [{
537
+ key: '2',
538
+ disabled: !authority[1700636282],
539
+ label: (/*#__PURE__*/React.createElement("a", {
540
+ className: "".concat(classPrefix, "-downItems"),
541
+ onClick: function onClick() {
542
+ return setEventGroupingShow(true);
543
+ }
544
+ }, /*#__PURE__*/React.createElement(IconFont, {
545
+ type: "guanli",
546
+ size: 16,
547
+ className: "creditPopClickIcon"
548
+ }), /*#__PURE__*/React.createElement("span", null, "\u4E8B\u4EF6\u5206\u7EC4\u7BA1\u7406")))
549
+ }, {
550
+ key: '5',
551
+ label: (/*#__PURE__*/React.createElement("a", {
552
+ className: "".concat(classPrefix, "-downItems"),
553
+ onClick: function onClick() {
554
+ return setIsDevModalState(true);
555
+ }
556
+ }, /*#__PURE__*/React.createElement(IconFont, {
557
+ type: "icon-shishigailan",
558
+ size: 16,
559
+ className: "creditPopClickIcon"
560
+ }), ' ', /*#__PURE__*/React.createElement("span", null, "\u5F00\u53D1\u7BA1\u7406")))
538
561
  }];
539
562
  // 提交测试报告
540
563
  var _Form$useForm = Form.useForm(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.57-zhongyuan.60",
3
+ "version": "1.0.57-zhongyuan.62",
4
4
  "license": "ISC",
5
5
  "module": "es/index.js",
6
6
  "typings": "es/index.d.ts",
@@ -57,7 +57,7 @@
57
57
  "umi-request": "^1.4.0",
58
58
  "yorkie": "^2.0.0"
59
59
  },
60
- "gitHead": "d394203f85c3a1180e90cdfc2a8c315cbc20c3d2",
60
+ "gitHead": "b4dcdd7afa02e19c503b440dd7f34a73f84d2eba",
61
61
  "gitHooks": {
62
62
  "pre-commit": "lint-staged"
63
63
  }