|
@@ -18,23 +18,12 @@ public class MobileController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private MobReportTypeService service;
|
|
private MobReportTypeService service;
|
|
|
|
|
|
- @RequestMapping(value="/MbIntro.action")
|
|
|
|
- public String intro() {
|
|
|
|
- return "mobile/MbIntro";
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
@RequestMapping(value="/typeTree.action")
|
|
@RequestMapping(value="/typeTree.action")
|
|
public @ResponseBody
|
|
public @ResponseBody
|
|
Object tree() {
|
|
Object tree() {
|
|
return service.listcataTree();
|
|
return service.listcataTree();
|
|
}
|
|
}
|
|
|
|
|
|
- @RequestMapping(value="/MobReportType.action")
|
|
|
|
- public String mReportType(ModelMap model) {
|
|
|
|
- model.addAttribute("str", JSONObject.toJSONString(service.listcataTree()));
|
|
|
|
- return "m/MobReportType";
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
@RequestMapping(value="/addType.action", method = RequestMethod.POST)
|
|
@RequestMapping(value="/addType.action", method = RequestMethod.POST)
|
|
public @ResponseBody
|
|
public @ResponseBody
|
|
Object addType(MobReportType type) {
|
|
Object addType(MobReportType type) {
|