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

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, {
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.61",
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": "905ecff762ea92767eb01747faa2f261e947fde5",
61
61
  "gitHooks": {
62
62
  "pre-commit": "lint-staged"
63
63
  }