king
2022-04-18 5706228a119361a22618f4565bb21c274584a6a3
src/views/pcdesign/index.jsx
@@ -248,7 +248,7 @@
      let homeId = MenuID || ''
      let appViewList = []
      if (!homeId && res.data && res.data.length > 0) {
      if (res.data && res.data.length > 0) {
        appViewList = res.data
        appViewList.forEach(item => {
          if (item.keys_type === 'index') {
@@ -1144,30 +1144,34 @@
                title: item.name,
                children: []
              }
              roles.children = item.menus.map(fst => {
                if (fst.property === 'classify' && fst.sublist.length > 0) {
                  return {
                    key: fst.MenuID,
                    title: fst.name,
                    children: fst.sublist.map(scd => {
                      if (scd.property === 'classify' && scd.sublist.length > 0) {
                        return {
                          key: scd.MenuID,
                          title: scd.name,
                          children: scd.sublist.map(thd => {
                            return { key: thd.MenuID, title: thd.name }
                          })
              if (item.wrap.permission === 'true') {
                roles.children = item.menus.map(fst => {
                  if (fst.property === 'classify' && fst.sublist.length > 0) {
                    return {
                      key: fst.MenuID,
                      title: fst.name,
                      children: fst.sublist.map(scd => {
                        if (scd.property === 'classify' && scd.sublist.length > 0) {
                          return {
                            key: scd.MenuID,
                            title: scd.name,
                            children: scd.sublist.map(thd => {
                              return { key: thd.MenuID, title: thd.name }
                            })
                          }
                        } else {
                          return { key: scd.MenuID, title: scd.name }
                        }
                      } else {
                        return { key: scd.MenuID, title: scd.name }
                      }
                    })
                      })
                    }
                  } else {
                    return { key: fst.MenuID, title: fst.name }
                  }
                } else {
                  return { key: fst.MenuID, title: fst.name }
                }
              })
                })
              } else {
                roles.pass = true
              }
              let _param = {
                func: 'sPC_TrdMenu_AddUpt',