isdata-customer-sdk 0.1.25 → 0.1.27
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.
- package/dist/index.js +19 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +19 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -5100,10 +5100,25 @@ const getAppPortalMenuDatas = async (user_id, group_id, isPortalAction, appVaria
|
|
|
5100
5100
|
if (isPortalAction) {
|
|
5101
5101
|
return true;
|
|
5102
5102
|
} else {
|
|
5103
|
-
if (menuData.app_id ==
|
|
5103
|
+
if (menuData.app_id == portal_app_id) {
|
|
5104
5104
|
return true;
|
|
5105
5105
|
} else {
|
|
5106
|
-
|
|
5106
|
+
let types = menuData.children;
|
|
5107
|
+
let hasTargetMenu = false;
|
|
5108
|
+
if (types && types.length > 0) {
|
|
5109
|
+
types.forEach(type => {
|
|
5110
|
+
let children = type.children;
|
|
5111
|
+
if (children && children.length > 0) {
|
|
5112
|
+
let newTypeChilden = children.filter(child => {
|
|
5113
|
+
return child.app_id === app_id;
|
|
5114
|
+
});
|
|
5115
|
+
if (newTypeChilden && newTypeChilden.length > 0) {
|
|
5116
|
+
hasTargetMenu = true;
|
|
5117
|
+
}
|
|
5118
|
+
}
|
|
5119
|
+
});
|
|
5120
|
+
}
|
|
5121
|
+
return hasTargetMenu;
|
|
5107
5122
|
}
|
|
5108
5123
|
}
|
|
5109
5124
|
});
|
|
@@ -5323,13 +5338,13 @@ const queryGroupIDByOfficeId = async id => {
|
|
|
5323
5338
|
* @param {信息} userData
|
|
5324
5339
|
* @returns
|
|
5325
5340
|
*/
|
|
5326
|
-
const getCurrentUserPortalPageID = userData => {
|
|
5341
|
+
const getCurrentUserPortalPageID = async userData => {
|
|
5327
5342
|
let queryData = {
|
|
5328
5343
|
"param": {
|
|
5329
5344
|
"userData": userData
|
|
5330
5345
|
}
|
|
5331
5346
|
};
|
|
5332
|
-
let response = request.post(`/dataservice/rest/orchestration/getPortalPageID`, queryData);
|
|
5347
|
+
let response = await request.post(`/dataservice/rest/orchestration/getPortalPageID`, queryData);
|
|
5333
5348
|
let portal_id = response.data.portal_id;
|
|
5334
5349
|
return portal_id;
|
|
5335
5350
|
};
|