@zgfe/modules-dm 1.0.57-zhongyuan.12 → 1.0.57-zhongyuan.14
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.
|
@@ -414,7 +414,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
414
414
|
width: 100
|
|
415
415
|
},
|
|
416
416
|
// disabled={isDemo || record.isIdMappingProp || record.category === 'fixed'}
|
|
417
|
-
disabled: isDemo || !authority[1000004] || record.category === 'fixed' || record.owner == 'zg_abp',
|
|
417
|
+
disabled: isDemo || !authority[1000004] || !record.canUpdate || record.category === 'fixed' || record.owner == 'zg_abp',
|
|
418
418
|
onChange: function onChange(e) {
|
|
419
419
|
return attrChangeHandle(e, record, 'type');
|
|
420
420
|
},
|
|
@@ -678,7 +678,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
678
678
|
style: {
|
|
679
679
|
padding: 0
|
|
680
680
|
},
|
|
681
|
-
disabled: source === 'event' ? record.owner == 'zg_abp' || !authority[1000004] : record.category == 'fixed' || isDemo || !authority[1000004],
|
|
681
|
+
disabled: source === 'event' ? record.owner == 'zg_abp' || !authority[1000004] || !record.canUpdate : record.category == 'fixed' || isDemo || !authority[1000004],
|
|
682
682
|
onClick: function onClick() {
|
|
683
683
|
if (isDemo || !authority[1000004]) {
|
|
684
684
|
message.error('无删除权限');
|
|
@@ -105,7 +105,7 @@ var FormulateRule = function FormulateRule() {
|
|
|
105
105
|
}
|
|
106
106
|
}).then(function (res) {
|
|
107
107
|
if (!res) return;
|
|
108
|
-
if ((res === null || res === void 0 ? void 0 : res.code) == '
|
|
108
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == '100001') {
|
|
109
109
|
if (res.data.data == 1) {
|
|
110
110
|
UseModal({
|
|
111
111
|
onOk: function onOk() {
|
|
@@ -151,6 +151,7 @@ var FormulateRule = function FormulateRule() {
|
|
|
151
151
|
});
|
|
152
152
|
return;
|
|
153
153
|
}
|
|
154
|
+
} else if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
154
155
|
endOpen(ruleObj);
|
|
155
156
|
} else {
|
|
156
157
|
message.error(res.msg);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.57-zhongyuan.
|
|
3
|
+
"version": "1.0.57-zhongyuan.14",
|
|
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": "e88f576663dcf1ac01bba04d6645e060efa1f0d5",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|