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

森中灵 最后提交于11天前 替换为8.0.5版本
deptOperator.zml2KB
${ZmrMenuRule.check(request, "/"+zhiqim_manager+"/dept.htm")}
${zhiqim_manager_breadcrumb_parent("dept.htm", "部门管理", "部门 ["+dept.getDeptName()+"] 成员管理")}
${zhiqim_manager_content()}

<script>
function doSelectorDialog(deptId)
{//增加部门操作员对话框
    var dialog = new Z.Dialog();
    dialog.title = "成员增加";
    dialog.url = "deptOperatorSelector.htm?deptId="+deptId;
    dialog.width = 392;
    dialog.height = 423;
    dialog.fixed = true;
    dialog.execute();
}

function doSelectorCallback(deptId, operatorCodes)
{//增加部门操作员回调
    var ajax = new Z.Ajax();
    ajax.setClassName("ZmrDeptPresenter");
    ajax.setMethodName("doAddDeptOperators");
    ajax.addParam("deptId", deptId);
    ajax.addParam("operatorCodes", operatorCodes);
    ajax.setFailureAlert();
    ajax.setSuccessReload();
    ajax.setLoading(document);
    ajax.execute();
}

function doDeleteOperatorDept(operatorCode, deptId)
{//删除部门操作员
    var ajax = new Z.Ajax();
    ajax.setClassName("ZmrDeptPresenter");
    ajax.setMethodName("doDeleteOperatorDept");
    ajax.addParam("operatorCode", operatorCode);
    ajax.addParam("deptId", deptId);
    ajax.setFailureAlert();
    ajax.setSuccessReload();
    ajax.execute();
}
</script>

<#-- 导航 -->
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
<nav>
<ul class="z-mg-r10">
    <li onclick="Z.L.href('dept.htm');">返回部门管理</li>
    <li class="z-active">部门&nbsp;[#{dept.getDeptName()}]&nbsp;成员管理</li>
    <#if ZmrAdminRule.check(request)><li onclick="Z.L.href('deptRule.htm?deptId=${dept.getDeptId()}');">权限管理</li></#if>
</ul>
<div class="z-float-right z-mg-t10 z-mg-r5">
    <#if ZmrAdminRule.check(request)><button class="z-button ${zmr_color_class}" onclick="doSelectorDialog('${dept.getDeptId()}');"><i class="z-font z-add"></i>增加成员</button></#if>
</div>
</nav>
</div>

<#-- 列表 -->
<table class="z-table z-bordered z-pd5 z-bg-white z-text-center">
<tr valign="middle" class="z-text-center z-h40 z-bg-gray">
    <td width="20%">成员头像</td>
    <td width="20%">成员账号</td>
    <td width="*">成员姓名</td>
    <td width="150">操作</td>
</tr>
${zhiqim_manager_tr_no_record(operatorList, "暂时没有操作员信息")}
<#for item : operatorList>
<tr class="z-text-center z-h60" ${zhiqim_manager_tr_onmouse()}>
    <td><img src="${sessionUser.getAvatarUrl(item.getOperatorAvatar(), 50)}" class="z-w50 z-h50 z-bd-rd50p"></td>
    <td>${item.getOperatorCode()}</td>
    <td>${item.getOperatorName()}</td>
    <td>
    <#if ZmrAdminMutexRule.check(request, item)>
        <button type="button" class="z-button z-h25 z-red z-xsmall z-font z-delete" onclick="doDeleteOperatorDept('${item.getOperatorCode()}', '${dept.getDeptId()}')"></button>
    <#else>
        --
    </#if>
    </td>
</tr>
</#for>
</table>
${zhiqim_manager_list(operatorList.size())}
${zhiqim_manager_content_end()}