Zhiqim Master(运营管理台)是在ZhiqimManager基础上改造成用于运营思路的管理系统,增加余额,和组织结构等,开放组织管理员,可以添加组织内的部门和角色和操作员。并增加该管理台上的一些组件,如充值支付等组件。适用于二级代理管理或该大型组织机构

森中灵 最后提交于11天前 替换为8.0.5版本
dept.zml4KB
${zhiqim_manager_breadcrumb("部门管理")}
${zhiqim_manager_content()}

<#-- 显示子部门,并递归显示下级子部门 -->
<#function showChildDept(self, parent)>
<tr class="z-h30 z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
    <td align="center">
    <#if ZmrAdminRule.check(request)>
        <input name="deptId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${self.self().getDeptId()}">
    </#if>
    </td>
    <td>${self.self().getDeptId()}</td>
    <td>
    <#var level = self.self().getDeptLevel()/>
    <#if level == 0>
        <i class="z-ico z-tree z-30 z-normal z-root z-mg-r3"></i>
    <#else>
        <#for i : 1..(level-1)>
        <#if self.isLastNode(level-i)>
        <i class="z-ico z-tree z-30 z-normal z-blank"></i>
        <#else>
        <i class="z-ico z-tree z-30 z-normal z-vertline"></i>
        </#if>
        </#for>
        <#if self.isLastNode()>
        <i class="z-ico z-tree z-30 z-normal z-lastnode"></i>
        <#else>
        <i class="z-ico z-tree z-30 z-normal z-node"></i>
        </#if>
        <i class="z-ico z-tree z-item z-mg-r3"></i>
    </#if>
        #{self.self().getDeptName()}
    </td>
    <td class="z-text-center"><#if self.self().isDeptValid()>正常<#else><span class="z-color-red">停用</span></#if></td>
    <td class="z-text-center">${self.self().getDeptLevel()}</td>
    <td>${self.self().getDeptManager()}</td>
    <td>${self.self().getDeptSubManager()}</td>
    <#if ZmrAdminRule.check(request)>
    <td class="z-text-center">
        <button class="z-button z-cyan z-small zi-bd-rd0" onclick="Z.L.href('deptOperator.htm?deptId=${self.self().getDeptId()}');">成员管理</button>
        <button class="z-button z-purple z-small zi-bd-rd0" onclick="Z.L.href('deptRule.htm?deptId=${self.self().getDeptId()}');">权限管理</button>
    </td>
    </#if>
</tr>
<#for child : self.children()>
${showChildDept(child, self)}
</#for>
</#function>

<#-- 导航 -->
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul class="z-mg-r10">
    ${zhiqim_manager_tabnav("操作员", "/"+zhiqim_manager+"/operator.htm", true)}
    <li class="z-active">部门</li>
    ${zhiqim_manager_tabnav("角色", "/"+zhiqim_manager+"/role.htm", true)}
    ${zhiqim_manager_tabnav("日志", "/"+zhiqim_manager+"/operateLog.htm", true)}
    ${zhiqim_manager_tabnav("在线", "/"+zhiqim_manager+"/operatorOnline.htm", true)}
</ul>
<div class="z-float-right z-mg-t10 z-mg-r5">
<#if ZmrAdminRule.check(request)>
    <button class="z-button z-purple" onclick="Z.L.href('deptType.htm');"><i class="z-font z-add"></i>部门类型管理</button>
    <button class="z-button ${zmr_color_class}" onclick="Z.L.check('deptAdd.htm', 'deptId');"><i class="z-font z-add"></i>增加下级部门</button>
    <button class="z-button ${zmr_color_class}" onclick="Z.L.check('deptModify.htm', 'deptId');"><i class="z-font z-modify"></i>修改部门</button>
    <button class="z-button z-red" onclick="Z.L.confirm('deptDelete.htm', '确认要删除该部门?', 'deptId', zCallFrame);"><i class="z-font z-delete"></i>删除部门</button>
</#if>
</div>
</nav>
</div>

<#-- 列表 -->
<table class="z-table z-bordered z-h30-tr z-pd-l10 z-pd-r10 z-text-left z-bg-white">
<tr class="zi-h40" bgcolor="${zmr_thead_bgcolor}">
    <#if ZmrAdminRule.check(request)>
    <td width="50" class="z-text-center">选择</td>
    </#if>
    <td width="140">部门编号</td>
    <td width="*">部门名称</td>
    <td width="80" class="z-text-center">部门状态</td>
    <td width="80" class="z-text-center">部门级别</td>
    <td width="10%">部门负责人</td>
    <td width="16%">部门副负责人</td>
    <#if ZmrAdminRule.check(request)>
    <td width="200" class="z-text-center">操作</td>
    </#if>
</tr>
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
    <#if ZmrAdminRule.check(request)>
    <td align="center"><input name="deptId" type="radio" data-role="z-radio" data-class="${zmr_color_class}" value="${tree.self().getDeptId()}"></td>
    </#if>
    <td>${tree.self().getDeptId()}</td>
    <td><i class="z-ico z-tree z-normal <#if tree.hasChildren()>z-30 z-root<#else>zi-h22</#if> z-mg-r3"></i> #{tree.self().getDeptName()}</td>
    <td align="center"><#if tree.self().isDeptValid()>正常<#else><span class="z-color-red">停用</span></#if></td>
    <td align="center">${tree.self().getDeptLevel()}</td>
    <td>${tree.self().getDeptManager()}</td>
    <td>${tree.self().getDeptSubManager()}</td>
    <#if ZmrAdminRule.check(request)>
    <td align="center">
        <button class="z-button z-cyan z-small zi-bd-rd0" onclick="Z.L.href('deptOperator.htm?deptId=${tree.self().getDeptId()}');">成员管理</button>
        <button class="z-button z-purple z-small zi-bd-rd0" onclick="Z.L.href('deptRule.htm?deptId=${tree.self().getDeptId()}');">权限管理</button>
    </td>
    </#if>
</tr>
<#for child : tree.children()>
${showChildDept(child, tree)}
</#for>
</table>
${zhiqim_manager_list(tree.size())}
${zhiqim_manager_content_end()}