isdata-customer-sdk 0.1.72 → 0.1.73

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.
@@ -29578,7 +29578,7 @@ __webpack_require__.d(__webpack_exports__, {
29578
29578
  getLoginPageNotices: function() { return /* reexport */ getLoginPageNotices; },
29579
29579
  getMappingAppInfoByID: function() { return /* reexport */ getMappingAppInfoByID; },
29580
29580
  getMenuDatasByGroupID: function() { return /* reexport */ getMenuDatasByGroupID; },
29581
- getMenuDatasByRoleIDs: function() { return /* reexport */ getMenuDatasByRoleIDs; },
29581
+ getMenuMappingDatasByRoleIDs: function() { return /* reexport */ getMenuMappingDatasByRoleIDs; },
29582
29582
  getObjectUseTimes: function() { return /* reexport */ getObjectUseTimes; },
29583
29583
  getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
29584
29584
  getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
@@ -29596,7 +29596,6 @@ __webpack_require__.d(__webpack_exports__, {
29596
29596
  getThirdAppPathByKey: function() { return /* reexport */ getThirdAppPathByKey; },
29597
29597
  getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
29598
29598
  getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
29599
- getUserRoles: function() { return /* reexport */ getUserRoles; },
29600
29599
  hasListener: function() { return /* reexport */ hasListener; },
29601
29600
  initEventCenter: function() { return /* reexport */ initEventCenter; },
29602
29601
  initFrameWindowListener: function() { return /* reexport */ initFrameWindowListener; },
@@ -29875,16 +29874,20 @@ const getMenuDatasByGroupID = async (group_id, role_ids) => {
29875
29874
  }
29876
29875
  };
29877
29876
  let result = await request.post(`/dataservice/rest/orchestration/getMenuDatasByGroupID`, queryData_groupData);
29877
+ //所有的快捷访问菜单信息
29878
29878
  let portalMenuDatas = result.data.resultDatas;
29879
29879
  let menuTypes = result.data.menuTypes;
29880
29880
  if (role_ids && role_ids.length > 0) {
29881
- let result = await getMenuDatasByRoleIDs(role_ids, group_id);
29881
+ //获取当前角色下对应的角色快捷访问菜单的映射信息和快捷访问菜单的信息
29882
+ let result = await getMenuMappingDatasByRoleIDs(role_ids, group_id);
29883
+ //角色-快捷访问菜单映射信息
29882
29884
  let quickMenuMappingDatas = result.data.quickMenuMappingDatas || [];
29883
29885
  let filterObjectMap = {};
29884
29886
  for (const data of quickMenuMappingDatas) {
29885
29887
  let id = data.menu_mapping_id;
29886
29888
  filterObjectMap[id] = data;
29887
29889
  }
29890
+ //快捷菜单映射信息
29888
29891
  let menuMappingDatas = result.data.menuMappingDatas || [];
29889
29892
  for (const data of menuMappingDatas) {
29890
29893
  let id = data.id;
@@ -29897,11 +29900,11 @@ const getMenuDatasByGroupID = async (group_id, role_ids) => {
29897
29900
  };
29898
29901
 
29899
29902
  /**
29900
- * 查询对应角色的门户快捷菜单信息
29903
+ * 查询对应角色的门户快捷菜单映射信息
29901
29904
  * @param id GroupID
29902
29905
  *
29903
29906
  */
29904
- const getMenuDatasByRoleIDs = async (role_ids, group_id) => {
29907
+ const getMenuMappingDatasByRoleIDs = async (role_ids, group_id) => {
29905
29908
  let queryData_groupData = {
29906
29909
  "param": {
29907
29910
  "role_ids": role_ids,
@@ -29953,13 +29956,15 @@ const getRoleIDsByUserAndGroupID = async (user_id, app_id, group_id) => {
29953
29956
 
29954
29957
  /**
29955
29958
  * 转换门户菜单数据
29956
- * @param {*} datas
29957
- * @param {*} menuTypes
29958
- * @param {*} filterObjectMap
29959
+ * @param {*} datas 所有的快捷菜单访问信息
29960
+ * @param {*} menuTypes 快捷访问菜单类型
29961
+ * @param {*} filterObjectMap 角色快捷菜单访问映射信息
29959
29962
  * @returns
29960
29963
  */
29961
29964
  const transformPortalData = (datas, menuTypes, filterObjectMap) => {
29962
- // console.log(datas);
29965
+ console.log(datas);
29966
+ console.log(menuTypes);
29967
+ console.log(filterObjectMap);
29963
29968
  let menuMaps = {};
29964
29969
  let menuTypeMaps = {};
29965
29970
  for (const data of datas) {
@@ -30570,22 +30575,6 @@ const getIntegrateAppInfoByID = async appID => {
30570
30575
  let appInfo = result.data.appInfo;
30571
30576
  return appInfo;
30572
30577
  };
30573
-
30574
- /**
30575
- * getUserRoles
30576
- * @param {信息} userID
30577
- * @returns
30578
- */
30579
- const getUserRoles = async userID => {
30580
- let queryData = {
30581
- "param": {
30582
- "userID": userID
30583
- }
30584
- };
30585
- let responseData = await request.post(`/dataservice/rest/orchestration/getUserRoles`, queryData);
30586
- let role_ids = responseData.data.role_ids;
30587
- return role_ids;
30588
- };
30589
30578
  // EXTERNAL MODULE: ./node_modules/crypto-js/index.js
30590
30579
  var crypto_js = __webpack_require__(1396);
30591
30580
  var crypto_js_default = /*#__PURE__*/__webpack_require__.n(crypto_js);
@@ -31351,10 +31340,10 @@ const getDifyFileType = fileType => {
31351
31340
  return typeOptions[key] || "custom";
31352
31341
  };
31353
31342
 
31354
- /**
31355
- * 从 URL 中提取文件名(如 https://example.com/path/image.png → image.png)
31356
- * @param {string} url - 文件 URL
31357
- * @returns {string} - 提取的文件名
31343
+ /**
31344
+ * 从 URL 中提取文件名(如 https://example.com/path/image.png → image.png)
31345
+ * @param {string} url - 文件 URL
31346
+ * @returns {string} - 提取的文件名
31358
31347
  */
31359
31348
  const dify_extractFilenameFromUrl = url => {
31360
31349
  try {