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.js
CHANGED
|
@@ -5090,10 +5090,25 @@ const getAppPortalMenuDatas = async (user_id, group_id, isPortalAction, appVaria
|
|
|
5090
5090
|
if (isPortalAction) {
|
|
5091
5091
|
return true;
|
|
5092
5092
|
} else {
|
|
5093
|
-
if (menuData.app_id ==
|
|
5093
|
+
if (menuData.app_id == portal_app_id) {
|
|
5094
5094
|
return true;
|
|
5095
5095
|
} else {
|
|
5096
|
-
|
|
5096
|
+
let types = menuData.children;
|
|
5097
|
+
let hasTargetMenu = false;
|
|
5098
|
+
if (types && types.length > 0) {
|
|
5099
|
+
types.forEach(type => {
|
|
5100
|
+
let children = type.children;
|
|
5101
|
+
if (children && children.length > 0) {
|
|
5102
|
+
let newTypeChilden = children.filter(child => {
|
|
5103
|
+
return child.app_id === app_id;
|
|
5104
|
+
});
|
|
5105
|
+
if (newTypeChilden && newTypeChilden.length > 0) {
|
|
5106
|
+
hasTargetMenu = true;
|
|
5107
|
+
}
|
|
5108
|
+
}
|
|
5109
|
+
});
|
|
5110
|
+
}
|
|
5111
|
+
return hasTargetMenu;
|
|
5097
5112
|
}
|
|
5098
5113
|
}
|
|
5099
5114
|
});
|
|
@@ -5313,13 +5328,13 @@ const queryGroupIDByOfficeId = async id => {
|
|
|
5313
5328
|
* @param {信息} userData
|
|
5314
5329
|
* @returns
|
|
5315
5330
|
*/
|
|
5316
|
-
const getCurrentUserPortalPageID = userData => {
|
|
5331
|
+
const getCurrentUserPortalPageID = async userData => {
|
|
5317
5332
|
let queryData = {
|
|
5318
5333
|
"param": {
|
|
5319
5334
|
"userData": userData
|
|
5320
5335
|
}
|
|
5321
5336
|
};
|
|
5322
|
-
let response = request.post(`/dataservice/rest/orchestration/getPortalPageID`, queryData);
|
|
5337
|
+
let response = await request.post(`/dataservice/rest/orchestration/getPortalPageID`, queryData);
|
|
5323
5338
|
let portal_id = response.data.portal_id;
|
|
5324
5339
|
return portal_id;
|
|
5325
5340
|
};
|