@zgfe/modules-settings 1.2.16-role.11 → 1.2.16-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.
|
@@ -263,10 +263,10 @@ var RoleList = function RoleList(props) {
|
|
|
263
263
|
});
|
|
264
264
|
});
|
|
265
265
|
if (res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.roleAuthStatus) {
|
|
266
|
-
var _res$data6, _arr$, _arr$2
|
|
266
|
+
var _res$data6, _arr$, _arr$2;
|
|
267
267
|
var arr = [res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.authGroupList];
|
|
268
|
-
setCondition(
|
|
269
|
-
console.log('detail arr
|
|
268
|
+
setCondition(arr.length && ((_arr$ = arr[0]) === null || _arr$ === void 0 ? void 0 : _arr$.json) ? JSON.parse((_arr$2 = arr[0]) === null || _arr$2 === void 0 ? void 0 : _arr$2.json) : []);
|
|
269
|
+
console.log('detail arr ===', arr);
|
|
270
270
|
setIsRoleAuthStatus(true);
|
|
271
271
|
}
|
|
272
272
|
onChangeAppIds(usListArr, params === null || params === void 0 ? void 0 : params.id, res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.menuCodeMap, res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.settingMenuList);
|
|
@@ -298,9 +298,9 @@ var RoleList = function RoleList(props) {
|
|
|
298
298
|
systemVersion: systemVersion
|
|
299
299
|
}).then(function (res) {
|
|
300
300
|
if (res === null || res === void 0 ? void 0 : res.data) {
|
|
301
|
-
var _arr$
|
|
301
|
+
var _arr$3;
|
|
302
302
|
var arr = util.menuTreeData([res === null || res === void 0 ? void 0 : res.data]);
|
|
303
|
-
setFunctionList(((_arr$
|
|
303
|
+
setFunctionList(((_arr$3 = arr[0]) === null || _arr$3 === void 0 ? void 0 : _arr$3.children) ? arr : []);
|
|
304
304
|
}
|
|
305
305
|
}).catch(function (err) {
|
|
306
306
|
setFunctionList([]);
|