| | |
| | | import com.example.client.Main; |
| | | import com.example.server.menu.model.Menu; |
| | | import com.example.server.menu.service.SysMenuService; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | node.setMenuName("默认根节点"); |
| | | DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(node); |
| | | |
| | | String site = (String) CacheUtils.get("site", "site"); |
| | | String site = (String) UserAndSiteUtils.get("site", "site"); |
| | | List<Menu> list = menuService.getList(site); |
| | | |
| | | createSubNode(rootNode, list); |
| | |
| | | } |
| | | } else if (nodeName.equals("数据导入")) { |
| | | JPanel dataImport = dataImportManageService.createTable(width, height, frame); |
| | | main.showTab("数据导入", dataImport, tree); |
| | | if(dataImport!=null){ |
| | | main.showTab("数据导入", dataImport, tree); |
| | | } |
| | | } else if (nodeName.equals("数据导出")) { |
| | | JPanel dataExport = dataExportManageService.createTable(width, height, frame); |
| | | main.showTab("数据导出", dataExport, tree); |