@zgfe/modules-dm 1.0.56-zhongyuan.25 → 1.0.56-zhongyuan.26
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.
|
@@ -286,7 +286,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
286
286
|
// record.isIdMappingProp ||
|
|
287
287
|
// record.category === 'fixed'
|
|
288
288
|
// }
|
|
289
|
-
disabled:
|
|
289
|
+
disabled: isDemo || !authority[1000004] || record.category === 'fixed' || record.owner == 'zg_abp',
|
|
290
290
|
defaultValue: record.alias_name,
|
|
291
291
|
onFocus: aliasFocus,
|
|
292
292
|
onBlur: function onBlur(e) {
|
|
@@ -312,7 +312,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
312
312
|
// record.isIdMappingProp ||
|
|
313
313
|
// record.category === 'fixed'
|
|
314
314
|
// }
|
|
315
|
-
disabled:
|
|
315
|
+
disabled: isDemo || !authority[1000004] || record.category === 'fixed' || record.owner == 'zg_abp',
|
|
316
316
|
defaultValue: record.alias_name,
|
|
317
317
|
onFocus: aliasFocus,
|
|
318
318
|
onBlur: function onBlur(e) {
|
|
@@ -335,7 +335,25 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
335
335
|
width: 120,
|
|
336
336
|
render: function render(record) {
|
|
337
337
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !rowRenderHandle(record.name) && (/*#__PURE__*/React.createElement("span", {
|
|
338
|
-
className: "attr_alias_name 'disabled'
|
|
338
|
+
className: "attr_alias_name ".concat(isDemo || record.category === 'fixed' || !authority[1000004] ? 'disabled' : ''),
|
|
339
|
+
// className={`attr_alias_name ${
|
|
340
|
+
// isDemo || record.isIdMappingProp || record.category === 'fixed'
|
|
341
|
+
// ? 'disabled'
|
|
342
|
+
// : ''
|
|
343
|
+
// }`}
|
|
344
|
+
onClick: function onClick() {
|
|
345
|
+
if (!authority[1000004]) {
|
|
346
|
+
message.error('暂无权限,无法编辑');
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
if (record.isIdMappingProp || record.category === 'fixed') return;
|
|
350
|
+
if (isDemo) {
|
|
351
|
+
message.error('Demo环境,无法编辑');
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
setattrId(record.attr_id);
|
|
355
|
+
setAttrAliasNameShow(true);
|
|
356
|
+
}
|
|
339
357
|
}, record.value_dict ? '已编辑' : '编辑')));
|
|
340
358
|
}
|
|
341
359
|
}] : []), [{
|
|
@@ -381,7 +399,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
381
399
|
width: 100
|
|
382
400
|
},
|
|
383
401
|
// disabled={isDemo || record.isIdMappingProp || record.category === 'fixed'}
|
|
384
|
-
disabled:
|
|
402
|
+
disabled: isDemo || !authority[1000004] || record.category === 'fixed' || record.owner == 'zg_abp',
|
|
385
403
|
onChange: function onChange(e) {
|
|
386
404
|
return attrChangeHandle(e, record, 'type');
|
|
387
405
|
},
|
|
@@ -438,7 +456,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
438
456
|
width: 100
|
|
439
457
|
},
|
|
440
458
|
// disabled={isDemo || record.isIdMappingProp || record.category === 'fixed'}
|
|
441
|
-
disabled:
|
|
459
|
+
disabled: isDemo || !authority[1000004] || record.category === 'fixed' || record.owner == 'zg_abp',
|
|
442
460
|
onChange: function onChange(e) {
|
|
443
461
|
return attrChangeHandle(e, record, 'hidden');
|
|
444
462
|
},
|
|
@@ -500,7 +518,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
500
518
|
width: 100
|
|
501
519
|
},
|
|
502
520
|
// disabled={isDemo || record.isIdMappingProp}
|
|
503
|
-
disabled:
|
|
521
|
+
disabled: isDemo || !authority[1000004] || record.category === 'fixed' || record.owner == 'zg_abp',
|
|
504
522
|
onChange: function onChange(e) {
|
|
505
523
|
return attrChangeHandle(e, record, 'encryption_type');
|
|
506
524
|
},
|
|
@@ -527,7 +545,25 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
527
545
|
width: 120,
|
|
528
546
|
render: function render(record) {
|
|
529
547
|
return /*#__PURE__*/React.createElement(React.Fragment, null, !rowRenderHandle(record.name) && (/*#__PURE__*/React.createElement("span", {
|
|
530
|
-
className: "attr_alias_name disabled
|
|
548
|
+
className: "attr_alias_name ".concat(isDemo || record.category === 'fixed' || !authority[1000004] ? 'disabled' : ''),
|
|
549
|
+
// className={`attr_alias_name ${
|
|
550
|
+
// isDemo || record.isIdMappingProp || record.category === 'fixed'
|
|
551
|
+
// ? 'disabled'
|
|
552
|
+
// : ''
|
|
553
|
+
// }`}
|
|
554
|
+
onClick: function onClick() {
|
|
555
|
+
if (!authority[1000004]) {
|
|
556
|
+
message.error('无编辑权限');
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
559
|
+
if (record.isIdMappingProp || record.category === 'fixed') return;
|
|
560
|
+
if (isDemo) {
|
|
561
|
+
message.error('demo环境,无法编辑');
|
|
562
|
+
return;
|
|
563
|
+
}
|
|
564
|
+
setattrId(record.id);
|
|
565
|
+
setAttrAliasNameShow(true);
|
|
566
|
+
}
|
|
531
567
|
}, record.value_dict ? '已编辑' : '编辑')));
|
|
532
568
|
}
|
|
533
569
|
}] : []), _toConsumableArray(source === 'user' ? [{
|
|
@@ -627,7 +663,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
627
663
|
style: {
|
|
628
664
|
padding: 0
|
|
629
665
|
},
|
|
630
|
-
disabled: source === 'event' ? record.owner == 'zg_abp'
|
|
666
|
+
disabled: source === 'event' ? record.owner == 'zg_abp' || !authority[1000004] : record.category == 'fixed' || isDemo || !authority[1000004],
|
|
631
667
|
onClick: function onClick() {
|
|
632
668
|
if (isDemo || !authority[1000004]) {
|
|
633
669
|
message.error('无删除权限');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.56-zhongyuan.
|
|
3
|
+
"version": "1.0.56-zhongyuan.26",
|
|
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": "
|
|
60
|
+
"gitHead": "b0352952aeb706b899cc36ea38f937ff533b0c45",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|