@zgfe/modules-settings 1.2.20-role.12 → 1.2.20-role.13
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.
|
@@ -368,7 +368,7 @@ var RoleList = function RoleList(props) {
|
|
|
368
368
|
var _res$data7 = res.data,
|
|
369
369
|
_menuCodeMap = _res$data7.menuCodeMap,
|
|
370
370
|
authGroupList = _res$data7.authGroupList;
|
|
371
|
-
authGroupList.forEach(function (item) {
|
|
371
|
+
authGroupList === null || authGroupList === void 0 ? void 0 : authGroupList.forEach(function (item) {
|
|
372
372
|
item.data = JSON.stringify({
|
|
373
373
|
color: item.color || '#8db3e2',
|
|
374
374
|
name: item.name || '0',
|
|
@@ -376,7 +376,7 @@ var RoleList = function RoleList(props) {
|
|
|
376
376
|
json: JSON.parse(item.json)
|
|
377
377
|
});
|
|
378
378
|
});
|
|
379
|
-
setAPPCondition(authGroupList);
|
|
379
|
+
if (authGroupList === null || authGroupList === void 0 ? void 0 : authGroupList.length) setAPPCondition(authGroupList);
|
|
380
380
|
form.setFieldsValue(_objectSpread(_objectSpread({}, res === null || res === void 0 ? void 0 : res.data), {}, {
|
|
381
381
|
appIds: usListArr === null || usListArr === void 0 ? void 0 : usListArr.map(function (item) {
|
|
382
382
|
return {
|
|
@@ -673,7 +673,7 @@ var RoleList = function RoleList(props) {
|
|
|
673
673
|
setSelectAppId(appIdsList);
|
|
674
674
|
var delAppId = filterData(selectAppId, appIdsList);
|
|
675
675
|
var newAppCondition = appCondition;
|
|
676
|
-
var indexToRemove = newAppCondition.findIndex(function (item) {
|
|
676
|
+
var indexToRemove = newAppCondition === null || newAppCondition === void 0 ? void 0 : newAppCondition.findIndex(function (item) {
|
|
677
677
|
return item.appId === delAppId[0];
|
|
678
678
|
});
|
|
679
679
|
if (indexToRemove !== -1) {
|
|
@@ -824,7 +824,7 @@ var RoleList = function RoleList(props) {
|
|
|
824
824
|
})
|
|
825
825
|
};
|
|
826
826
|
var newAppCondition = appCondition;
|
|
827
|
-
var indexToRemove = newAppCondition.findIndex(function (item) {
|
|
827
|
+
var indexToRemove = newAppCondition === null || newAppCondition === void 0 ? void 0 : newAppCondition.findIndex(function (item) {
|
|
828
828
|
return item.appId === appId;
|
|
829
829
|
});
|
|
830
830
|
if (indexToRemove !== -1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "1.2.20-role.
|
|
3
|
+
"version": "1.2.20-role.13",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"umi-request": "^1.4.0",
|
|
52
52
|
"yorkie": "^2.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "3349b7d3976ef53eb5d022b50b084f6e4589a764",
|
|
55
55
|
"gitHooks": {
|
|
56
56
|
"pre-commit": "lint-staged"
|
|
57
57
|
}
|