@zgfe/modules-dm 1.0.56-zhongyuan.23 → 1.0.56-zhongyuan.24

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.
@@ -280,7 +280,13 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
280
280
  return /*#__PURE__*/React.createElement(Input, {
281
281
  className: "alias_name",
282
282
  placeholder: "\u7F16\u8F91\u522B\u540D",
283
- disabled: isDemo || !authority[1722838507] || record.isIdMappingProp || record.category === 'fixed',
283
+ // disabled={
284
+ // isDemo ||
285
+ // !authority[1722838507] ||
286
+ // record.isIdMappingProp ||
287
+ // record.category === 'fixed'
288
+ // }
289
+ disabled: true,
284
290
  defaultValue: record.alias_name,
285
291
  onFocus: aliasFocus,
286
292
  onBlur: function onBlur(e) {
@@ -300,7 +306,13 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
300
306
  }, /*#__PURE__*/React.createElement(Input, {
301
307
  className: "alias_name",
302
308
  placeholder: "\u7F16\u8F91\u522B\u540D",
303
- disabled: isDemo || !authority[1722838507] || record.isIdMappingProp || record.category === 'fixed',
309
+ // disabled={
310
+ // isDemo ||
311
+ // !authority[1722838507] ||
312
+ // record.isIdMappingProp ||
313
+ // record.category === 'fixed'
314
+ // }
315
+ disabled: true,
304
316
  defaultValue: record.alias_name,
305
317
  onFocus: aliasFocus,
306
318
  onBlur: function onBlur(e) {
@@ -323,16 +335,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
323
335
  width: 120,
324
336
  render: function render(record) {
325
337
  return /*#__PURE__*/React.createElement(React.Fragment, null, !rowRenderHandle(record.name) && (/*#__PURE__*/React.createElement("span", {
326
- className: "attr_alias_name ".concat(isDemo || record.isIdMappingProp || record.category === 'fixed' ? 'disabled' : ''),
327
- onClick: function onClick() {
328
- if (record.isIdMappingProp || record.category === 'fixed') return;
329
- if (isDemo) {
330
- message.error('demo环境,无法编辑');
331
- return;
332
- }
333
- setattrId(record.attr_id);
334
- setAttrAliasNameShow(true);
335
- }
338
+ className: "attr_alias_name 'disabled'"
336
339
  }, record.value_dict ? '已编辑' : '编辑')));
337
340
  }
338
341
  }] : []), [{
@@ -377,7 +380,8 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
377
380
  style: {
378
381
  width: 100
379
382
  },
380
- disabled: isDemo || record.isIdMappingProp || record.category === 'fixed',
383
+ // disabled={isDemo || record.isIdMappingProp || record.category === 'fixed'}
384
+ disabled: true,
381
385
  onChange: function onChange(e) {
382
386
  return attrChangeHandle(e, record, 'type');
383
387
  },
@@ -433,7 +437,8 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
433
437
  style: {
434
438
  width: 100
435
439
  },
436
- disabled: isDemo || record.isIdMappingProp || record.category === 'fixed',
440
+ // disabled={isDemo || record.isIdMappingProp || record.category === 'fixed'}
441
+ disabled: true,
437
442
  onChange: function onChange(e) {
438
443
  return attrChangeHandle(e, record, 'hidden');
439
444
  },
@@ -494,7 +499,8 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
494
499
  style: {
495
500
  width: 100
496
501
  },
497
- disabled: isDemo || record.isIdMappingProp,
502
+ // disabled={isDemo || record.isIdMappingProp}
503
+ disabled: true,
498
504
  onChange: function onChange(e) {
499
505
  return attrChangeHandle(e, record, 'encryption_type');
500
506
  },
@@ -521,20 +527,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
521
527
  width: 120,
522
528
  render: function render(record) {
523
529
  return /*#__PURE__*/React.createElement(React.Fragment, null, !rowRenderHandle(record.name) && (/*#__PURE__*/React.createElement("span", {
524
- className: "attr_alias_name ".concat(isDemo || record.isIdMappingProp || record.category === 'fixed' ? 'disabled' : ''),
525
- onClick: function onClick() {
526
- if (!authority[1722838507]) {
527
- message.error('无编辑权限');
528
- return;
529
- }
530
- if (record.isIdMappingProp || record.category === 'fixed') return;
531
- if (isDemo) {
532
- message.error('demo环境,无法编辑');
533
- return;
534
- }
535
- setattrId(record.id);
536
- setAttrAliasNameShow(true);
537
- }
530
+ className: "attr_alias_name disabled"
538
531
  }, record.value_dict ? '已编辑' : '编辑')));
539
532
  }
540
533
  }] : []), _toConsumableArray(source === 'user' ? [{
@@ -634,9 +627,9 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
634
627
  style: {
635
628
  padding: 0
636
629
  },
637
- disabled: record.category === 'fixed' || !authority[1722838563],
630
+ disabled: record.category === 'fixed' || isDemo || !authority[1000004],
638
631
  onClick: function onClick() {
639
- if (!authority[1722838563]) {
632
+ if (isDemo || !authority[1000004]) {
640
633
  message.error('无删除权限');
641
634
  return;
642
635
  }
@@ -909,7 +902,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
909
902
  setExportAliasTmp(false);
910
903
  });
911
904
  }
912
- }, "\u6A21\u677F\u4E0B\u8F7D")), attrExcelData.length > 0 && (/*#__PURE__*/React.createElement("div", {
905
+ }, "\u6A21\u677F\u4E0B\u8F7D")), (attrExcelData === null || attrExcelData === void 0 ? void 0 : attrExcelData.length) > 0 && (/*#__PURE__*/React.createElement("div", {
913
906
  className: "clearData",
914
907
  onClick: clearData
915
908
  }, /*#__PURE__*/React.createElement(IconFont, {
@@ -690,19 +690,15 @@ var TablePlus = function TablePlus(props) {
690
690
  placement: "top"
691
691
  }, /*#__PURE__*/React.createElement("div", {
692
692
  className: "alias_name_text"
693
- }, record.alias_name)), /*#__PURE__*/React.createElement(IconFont, {
693
+ }, record.alias_name)), record.groupId && (/*#__PURE__*/React.createElement(IconFont, {
694
694
  className: "edit-alias-name",
695
695
  onClick: function onClick() {
696
- if (!authority[1000003]) {
697
- message.error('无操作权限');
698
- return;
699
- }
700
696
  setAliasNameInput(record.alias_name);
701
697
  setAliasNameId(record.event_id);
702
698
  setaliasNameShow(true);
703
699
  },
704
700
  type: "zhongmingming"
705
- }));
701
+ })));
706
702
  }
707
703
  }, {
708
704
  title: '触发时机',
@@ -723,7 +719,7 @@ var TablePlus = function TablePlus(props) {
723
719
  placement: "top"
724
720
  }, /*#__PURE__*/React.createElement("div", {
725
721
  className: "alias_name_text"
726
- }, record.triggeringOccasion)), /*#__PURE__*/React.createElement(IconFont, {
722
+ }, record.triggeringOccasion)), record.groupId && (/*#__PURE__*/React.createElement(IconFont, {
727
723
  className: "edit-alias-name",
728
724
  onClick: function onClick() {
729
725
  setTriggeringInput(record.triggeringOccasion);
@@ -731,7 +727,7 @@ var TablePlus = function TablePlus(props) {
731
727
  setTriggeringShow(true);
732
728
  },
733
729
  type: "zhongmingming"
734
- }));
730
+ })));
735
731
  }
736
732
  },
737
733
  // {
@@ -757,14 +753,14 @@ var TablePlus = function TablePlus(props) {
757
753
  }, maidianList.filter(function (obj) {
758
754
  return obj.value == item;
759
755
  })[0].label);
760
- }), /*#__PURE__*/React.createElement(IconFont, {
756
+ }), record.groupId && (/*#__PURE__*/React.createElement(IconFont, {
761
757
  type: "bianji1",
762
758
  onClick: function onClick() {
763
759
  setIsMaidianModal(true);
764
760
  text && setCurrentMaidian(text.split(','));
765
761
  setCurrentRow(record);
766
762
  }
767
- }));
763
+ })));
768
764
  }
769
765
  }, {
770
766
  title: '末次上报时间',
@@ -787,10 +783,10 @@ var TablePlus = function TablePlus(props) {
787
783
  }).length, /*#__PURE__*/React.createElement(IconFont, {
788
784
  type: "bianji1",
789
785
  onClick: function onClick() {
790
- if (!authority[1000003]) {
791
- message.error('无修改权限');
792
- return;
793
- }
786
+ // if (!authority[1000003]) {
787
+ // message.error('无修改权限');
788
+ // return;
789
+ // }
794
790
  props.eventAttrDataHandle(record);
795
791
  }
796
792
  }));
@@ -936,7 +932,7 @@ var TablePlus = function TablePlus(props) {
936
932
  ellipsis: {
937
933
  tooltip: text
938
934
  }
939
- }, text), /*#__PURE__*/React.createElement(IconFont, {
935
+ }, text), record.groupId && (/*#__PURE__*/React.createElement(IconFont, {
940
936
  type: "bianji1",
941
937
  onClick: function onClick() {
942
938
  if (!authority[1000003]) {
@@ -947,7 +943,7 @@ var TablePlus = function TablePlus(props) {
947
943
  setCurrentRemark(text);
948
944
  setCurrentRow(record);
949
945
  }
950
- }));
946
+ })));
951
947
  }
952
948
  }, {
953
949
  title: '操作',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.56-zhongyuan.23",
3
+ "version": "1.0.56-zhongyuan.24",
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": "2d032212777acf8610651a5bb151075b36fec1cf",
60
+ "gitHead": "593562e5a36c98ac63ebadac674e55010e39a606",
61
61
  "gitHooks": {
62
62
  "pre-commit": "lint-staged"
63
63
  }