diff --git a/tamguo-oms/src/main/java/com/tamguo/modules/sys/web/CorpAdminController.java b/tamguo-oms/src/main/java/com/tamguo/modules/sys/web/CorpAdminController.java new file mode 100644 index 0000000..a413eec --- /dev/null +++ b/tamguo-oms/src/main/java/com/tamguo/modules/sys/web/CorpAdminController.java @@ -0,0 +1,39 @@ +package com.tamguo.modules.sys.web; + +import java.util.Map; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; + +import com.baomidou.mybatisplus.plugins.Page; +import com.tamguo.modules.sys.model.SysUserEntity; +import com.tamguo.modules.sys.model.condition.SysUserCondition; +import com.tamguo.modules.sys.service.ISysUserService; +import com.tamguo.modules.sys.utils.Result; + +@Controller +@RequestMapping(path="sys/corpAdmin") +public class CorpAdminController { + + private final String CORPADMIN_INDEX_PAGE = "modules/sys/corpAdmin/index"; + + @Autowired + private ISysUserService iSysUserService; + + @RequestMapping(path="index") + public String index(ModelAndView model) { + return CORPADMIN_INDEX_PAGE; + } + + @RequestMapping(path="listData",method=RequestMethod.POST) + @ResponseBody + public Map listData(SysUserCondition condition) { + Page page = iSysUserService.listData(condition); + return Result.jqGridResult(page.getRecords(), page.getTotal(), page.getSize(), page.getCurrent(), page.getPages()); + } + +} diff --git a/tamguo-oms/src/main/java/com/tamguo/modules/sys/web/SecAdminController.java b/tamguo-oms/src/main/java/com/tamguo/modules/sys/web/SecAdminController.java new file mode 100644 index 0000000..f6f8167 --- /dev/null +++ b/tamguo-oms/src/main/java/com/tamguo/modules/sys/web/SecAdminController.java @@ -0,0 +1,38 @@ +package com.tamguo.modules.sys.web; + +import java.util.Map; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; + +import com.baomidou.mybatisplus.plugins.Page; +import com.tamguo.modules.sys.model.SysUserEntity; +import com.tamguo.modules.sys.model.condition.SysUserCondition; +import com.tamguo.modules.sys.service.ISysUserService; +import com.tamguo.modules.sys.utils.Result; + +@Controller +@RequestMapping(path="sys/secAdmin") +public class SecAdminController { + + private final String SECADMIN_INDEX_PAGE = "modules/sys/secAdmin/index"; + + @Autowired + private ISysUserService iSysUserService; + + @RequestMapping(path="index") + public String index(ModelAndView model) { + return SECADMIN_INDEX_PAGE; + } + + @RequestMapping(path="listData",method=RequestMethod.POST) + @ResponseBody + public Map listData(SysUserCondition condition) { + Page page = iSysUserService.listData(condition); + return Result.jqGridResult(page.getRecords(), page.getTotal(), page.getSize(), page.getCurrent(), page.getPages()); + } +} diff --git a/tamguo-oms/src/main/resources/templates/include/leftMenu.html b/tamguo-oms/src/main/resources/templates/include/leftMenu.html index f22f404..7ef11c2 100644 --- a/tamguo-oms/src/main/resources/templates/include/leftMenu.html +++ b/tamguo-oms/src/main/resources/templates/include/leftMenu.html @@ -28,8 +28,8 @@
  • 权限管理
  • 系统设置 diff --git a/tamguo-oms/src/main/resources/templates/modules/sys/corpAdmin/index.html b/tamguo-oms/src/main/resources/templates/modules/sys/corpAdmin/index.html new file mode 100644 index 0000000..13655ab --- /dev/null +++ b/tamguo-oms/src/main/resources/templates/modules/sys/corpAdmin/index.html @@ -0,0 +1,131 @@ + +系统管理员 - JeeSite Demo + + + + + + + + + + + + + +
    +
    +
    +
    + 系统管理员 +
    + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/index.html b/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/index.html new file mode 100644 index 0000000..96ff986 --- /dev/null +++ b/tamguo-oms/src/main/resources/templates/modules/sys/secAdmin/index.html @@ -0,0 +1,218 @@ + +二级管理员 - JeeSite Demo + + + + + + + + + + + + + +
    +
    +
    +
    + 二级管理员 +
    + +
    +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + + +
    +
    + + + + + + + + + + + + + + \ No newline at end of file