model.addAttribute("page", page);
}
@RequestMapping(value = "/{tag}/item/{id}")
public String item(@PathVariable String tag,@PathVariable int id,Model model) {
Project project = projectBO.getProjectByTag(tag);
model.addAttribute("project", project);
model.addAttribute("view", "modfiy");
//item
model.addAttribute("item", projectBO.getItem(project,id));
//所有的字段名
model.addAttribute("customFieldList", fieldsBO.customFieldList(project.getId()));
model.addAttribute("layout", fieldsBO.getLayout(project.getId()));
Main main = getMain(model);
projectBO.setMainMenu(main, tag);
main.setAction("/project/"+tag+"/items");
return "/project/items_new";