isdata-customer-sdk 0.2.32 → 0.2.34

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.
@@ -30085,7 +30085,8 @@ const getPlatformBortherMenusByMenuID = async (menu_id, role_ids, group_id) => {
30085
30085
  app_id: item.datapp_id,
30086
30086
  menu_id: item.id,
30087
30087
  url: item.url || "",
30088
- children: item.children || []
30088
+ children: item.children || [],
30089
+ sort: item.sort || 0
30089
30090
  };
30090
30091
  menuMaps[id] = tempItem;
30091
30092
  }
@@ -30107,6 +30108,12 @@ const getPlatformBortherMenusByMenuID = async (menu_id, role_ids, group_id) => {
30107
30108
  let item = menuMaps[key];
30108
30109
  if (item.children && item.children.length > 0) {
30109
30110
  menuDatas.push(item);
30111
+ let children = item.children;
30112
+ children.sort((data1, data2) => {
30113
+ if (Number.isNaN(data1.sort)) return 1;
30114
+ if (Number.isNaN(data2.sort)) return -1;
30115
+ return data1.sort - data2.sort;
30116
+ });
30110
30117
  }
30111
30118
  }
30112
30119
  //如果没有数据,说明只有一级节点父亲
@@ -30118,7 +30125,12 @@ const getPlatformBortherMenusByMenuID = async (menu_id, role_ids, group_id) => {
30118
30125
  }
30119
30126
  }
30120
30127
  }
30121
- console.log("getPlatformBortherMenusByMenuID", menuDatas);
30128
+ menuDatas.sort((data1, data2) => {
30129
+ if (Number.isNaN(data1.sort)) return 1;
30130
+ if (Number.isNaN(data2.sort)) return -1;
30131
+ return data1.sort - data2.sort;
30132
+ });
30133
+ // console.log("getPlatformBortherMenusByMenuID",menuDatas);
30122
30134
  //获取菜单数据
30123
30135
  return menuDatas;
30124
30136
  };
@@ -32594,7 +32606,7 @@ const check = element => {
32594
32606
  }
32595
32607
  }
32596
32608
  // 检查删除确认对话框按钮 取消 确认
32597
- if (classes.contains("ant-btn")) {
32609
+ if (classes.contains("ant-btn") && !classes.contains("saveBtn")) {
32598
32610
  let innerHTML = element.innerHTML;
32599
32611
  if (innerHTML.includes("Cancel") || innerHTML.includes("取消")) {
32600
32612
  // console.log("检查smardaten平台 Tip提问取消删除按钮:",innerHTML);