isdata-customer-sdk 0.2.60 → 0.2.62
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.common.js +25 -3
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +25 -3
- 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.common.js
CHANGED
|
@@ -29597,6 +29597,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29597
29597
|
getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
|
|
29598
29598
|
getPortalAppCustomConfig: function() { return /* reexport */ getPortalAppCustomConfig; },
|
|
29599
29599
|
getPortalDocmentInfo: function() { return /* reexport */ getPortalDocmentInfo; },
|
|
29600
|
+
getPortalInfosByID: function() { return /* reexport */ getPortalInfosByID; },
|
|
29600
29601
|
getPortalNotices: function() { return /* reexport */ getPortalNotices; },
|
|
29601
29602
|
getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
|
|
29602
29603
|
getPortalPageMenuID: function() { return /* reexport */ getPortalPageMenuID; },
|
|
@@ -30279,9 +30280,12 @@ const transformPortalData = (datas, menuTypes, filterObjectMap) => {
|
|
|
30279
30280
|
break;
|
|
30280
30281
|
}
|
|
30281
30282
|
}
|
|
30282
|
-
|
|
30283
|
-
if (
|
|
30284
|
-
|
|
30283
|
+
//如果不是默认菜单,并且没有快捷访问权限,并且孩子没有快捷访问权限,则不显示
|
|
30284
|
+
if (data.is_app_defalut != "1") {
|
|
30285
|
+
// 如果没有权限,也没有子菜单时 则跳过
|
|
30286
|
+
if (filterObjectMap && !filterObjectMap[data.id] && count == 0) {
|
|
30287
|
+
continue;
|
|
30288
|
+
}
|
|
30285
30289
|
}
|
|
30286
30290
|
menuList.push(tempMenuData);
|
|
30287
30291
|
let types = tempMenuData.children;
|
|
@@ -30461,6 +30465,24 @@ const getCurrentUserPortalMapping = async userData => {
|
|
|
30461
30465
|
return portal_id;
|
|
30462
30466
|
};
|
|
30463
30467
|
|
|
30468
|
+
/**
|
|
30469
|
+
* 获取当前用户默认的门户页面ID
|
|
30470
|
+
*
|
|
30471
|
+
* 该方法用于获取当前用户在门户中的默认页面ID
|
|
30472
|
+
* @param {信息} userData
|
|
30473
|
+
* @returns
|
|
30474
|
+
*/
|
|
30475
|
+
const getPortalInfosByID = async id => {
|
|
30476
|
+
let queryData = {
|
|
30477
|
+
param: {
|
|
30478
|
+
id: id
|
|
30479
|
+
}
|
|
30480
|
+
};
|
|
30481
|
+
let response = await request.post(`/dataservice/rest/orchestration/getPortalInfosByID`, queryData);
|
|
30482
|
+
let portalInfo = response.data.portalInfo;
|
|
30483
|
+
return portalInfo;
|
|
30484
|
+
};
|
|
30485
|
+
|
|
30464
30486
|
/**
|
|
30465
30487
|
* 获取当前用户在门户中的所有映射数据
|
|
30466
30488
|
* @param {信息} data
|