module-menu 0.2.12 → 0.2.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "module-menu",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main": "src/pages/index.jsx",
6
6
  "scripts": {
@@ -29,18 +29,26 @@ const ModuleMenu = ({ sysName, stash }) => {
29
29
  setCanOperatExchange(true);
30
30
  }
31
31
  } else {
32
- Axios('get', '/admin-api/system/user/getUserMenusList', '', {})
32
+ Axios(
33
+ 'get',
34
+ '/admin-api/system/user/get-user-menu-List?menuName=数据平台',
35
+ '',
36
+ {},
37
+ )
33
38
  .then((res) => {
34
39
  if (res.data.code === 0) {
35
40
  let menuGet =
36
- res.data.data &&
37
- res.data.data.map((item) => {
38
- return {
39
- ...item,
40
- path:
41
- item.path.indexOf('/') !== -1 ? item.path : '/' + item.path,
42
- };
43
- });
41
+ (res.data.data &&
42
+ res.data.data[0]?.routes?.map((item) => {
43
+ return {
44
+ ...item,
45
+ path:
46
+ item.path.indexOf('/') !== -1
47
+ ? item.path
48
+ : '/' + item.path,
49
+ };
50
+ })) ||
51
+ [];
44
52
  setSessionMenu(menuGet);
45
53
  const menuLists = getNewMenuList(menuGet);
46
54
  setMenuList(menuLists);
@@ -68,6 +76,7 @@ const ModuleMenu = ({ sysName, stash }) => {
68
76
  message.warning('没有获取到菜单列表,请联系管理员添加权限');
69
77
  return;
70
78
  }
79
+
71
80
  if (nameStr === '政务共享交换平台') {
72
81
  Axios('get', '/admin/social/logoutUri', '', {})
73
82
  .then((res) => {
@@ -128,6 +137,10 @@ const ModuleMenu = ({ sysName, stash }) => {
128
137
  case '资源管理':
129
138
  thirdPartyServiceJumpPath = '/admin-ui/resource/tableResource/list';
130
139
  break;
140
+ case '供需对接':
141
+ thirdPartyServiceJumpPath =
142
+ '/admin-ui/supply-and-demand-docking/dataRequirement/propose/list';
143
+ break;
131
144
  default:
132
145
  break;
133
146
  }