Zhiqim Console(管理控制台)是知启蒙框架中最简洁的管理控制台组件,没有数据库,只保留一个账号,非常适用于后端程序嵌入WEB控制台模式,包括首页、登录、主界面、左侧菜单和欢迎页功能,依赖该组件实现基本的账号验证,通过覆盖原则增加自有功能。

森中灵 最后提交于2月前 替换framework依赖包
config.xml3KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE zhiqim-context PUBLIC "-//ZHIQIM //DTD Zhiqim-Context Configuration 8.0.0//EN" "https://zhiqim.org/xmldtds/zhiqim_context_8_0_0.dtd">
<zhiqim-context>

    <!-- 属性配置 -->
    <attribute name="系统名称" key="name" value="知启蒙控制台"/>
    <attribute name="系统版本" key="version" value="V8.0.4"/>
    <attribute name="系统引导" key="bootstrap" value="org.zhiqim.manager.ZmrBootstrap"/>
    <attribute name="管理台路径" key="zhiqim_manager" value="manager"/>
    
    <!-- 拦截器 -->
    <interceptor name="检查登录" key="chkZmrLogin" class="org.zhiqim.manager.ZmrInterceptor"/>
    
    <!-- 基本内容 -->
    <action name="首页" path="/index.htm" view="/ztmpl/zhiqim_manager/index.htm" class="org.zhiqim.manager.action.IndexAction"/>
    <action name="管理页" path="/${zhiqim_manager}.htm" view="/ztmpl/zhiqim_manager/index.htm" class="org.zhiqim.manager.action.IndexAction"/>
    <action name="退出" path="/${zhiqim_manager}/logout.htm" redirect="/index.htm" class="org.zhiqim.manager.action.LogoutAction"/>
    <action name="头像" path="/${zhiqim_manager}/avatar/*/*.png" class="org.zhiqim.manager.action.AvatarAction" method="access"/>
    
    <action name="主页"  interceptor="chkZmrLogin" path="/${zhiqim_manager}/main.htm" view="/ztmpl/zhiqim_manager/template.htm"/>
    <action name="主页框架"  interceptor="chkZmrLogin" path="/${zhiqim_manager}/welcome.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/zhiqim_manager/main.zml" class="org.zhiqim.manager.action.MainAction"/>
    <action name="用户中心"  interceptor="chkZmrLogin" path="/${zhiqim_manager}/profile.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/zhiqim_manager/profile.zml" class="org.zhiqim.manager.action.ProfileAction"/>
    <action name="验证密码" interceptor="chkZmrLogin" path="/${zhiqim_manager}/validatePassword.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/zhiqim_manager/validatePassword.zml"/>

    <!-- 个人中心 -->
    <action name="修改账号" interceptor="chkZmrLogin" path="/${zhiqim_manager}/profileModifyCode.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/zhiqim_manager/profileModifyCode.zml"/>
    <action name="修改密码" interceptor="chkZmrLogin" path="/${zhiqim_manager}/profileModifyPassword.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/zhiqim_manager/profileModifyPassword.zml"/>
    <action name="更换头像" interceptor="chkZmrLogin" path="/${zhiqim_manager}/profileModifyAvatar.htm" view="/ztmpl/zhiqim_manager/inner.htm" include="/zview/zhiqim_manager/profileModifyAvatar.zml"/>
    
    <!-- 功能 -->
    <action name="系统配置管理" interceptor="chkZmrLogin" path="/${zhiqim_manager}/config.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/zhiqim_manager/config.zml" redirect="/${zhiqim_manager}/config.htm" class="org.zhiqim.manager.action.ConfigAction"/>
    <action name="系统参数管理" interceptor="chkZmrLogin" path="/${zhiqim_manager}/param.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/zhiqim_manager/param.zml" redirect="/${zhiqim_manager}/param.htm" class="org.zhiqim.manager.action.ParamAction"/>
    
    <!-- 示例 -->
    <action name="如何设置菜单" interceptor="chkZmrLogin" path="/example/menu.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/example/menu.zml"/>
    <action name="列表功能展示" interceptor="chkZmrLogin" path="/example/online.htm" view="/ztmpl/zhiqim_manager/template.htm" include="/zview/example/online.zml"/>
    
</zhiqim-context>