83 line
2.9 KiB
Plaintext
83 line
2.9 KiB
Plaintext
<script>
|
|
function doSelectorDialog(roleId)
|
|
{//添加角色操作员对话框
|
|
var dialog = new Z.Dialog();
|
|
dialog.title = "成员增加";
|
|
dialog.url = "roleOperatorSelector.htm?roleId="+roleId;
|
|
dialog.width = 392;
|
|
dialog.height = 423;
|
|
dialog.fixed = true;
|
|
dialog.execute();
|
|
}
|
|
|
|
function doSelectorCallback(roleId, operatorCodes)
|
|
{//添加角色操作员
|
|
var ajax = new Z.Ajax();
|
|
ajax.setContextPath("${context.getContextPath()}");
|
|
ajax.setClassName("ZmrOperatorPresenter");
|
|
ajax.setMethodName("doAddRoleOperator");
|
|
ajax.addParam("roleId", roleId);
|
|
ajax.addParam("operatorCodes", operatorCodes);
|
|
ajax.setFailureAlert();
|
|
ajax.setSuccessReload();
|
|
ajax.setLoading(document);
|
|
ajax.execute();
|
|
}
|
|
|
|
function doDeleteOperatorRole(operatorCode, roleId)
|
|
{//删除角色操作员
|
|
var ajax = new Z.Ajax();
|
|
ajax.setContextPath("${context.getContextPath()}");
|
|
ajax.setClassName("ZmrOperatorPresenter");
|
|
ajax.setMethodName("doDeleteOperatorRole");
|
|
ajax.addParam("operatorCode", operatorCode);
|
|
ajax.addParam("roleId", roleId);
|
|
ajax.setFailureAlert();
|
|
ajax.setSuccessReload();
|
|
ajax.execute();
|
|
}
|
|
</script>
|
|
${zhiqim_manager_breadcrumb("部门成员")}
|
|
${zhiqim_manager_content()}
|
|
|
|
<#-- 导航 -->
|
|
<div class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
|
<nav>
|
|
<ul>
|
|
<#if ZmrPathRule.check(request, "/"+zhiqim_manager+"/operator.htm")><li onclick="Z.L.href('operator.htm');">操作员管理</li></#if>
|
|
<#if ZmrPathRule.check(request, "/"+zhiqim_manager+"/role.htm")><li onclick="Z.L.href('role.htm');">操作员角色</li></#if>
|
|
<li class="z-active">[${role.getRoleName()}] 成员管理</li>
|
|
</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('${role.getRoleId()}');"><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="30%">成员头像</td>
|
|
<td width="*">成员姓名</td>
|
|
<td width="150">操作</td>
|
|
</tr>
|
|
${zhiqim_manager_tr_no_record(operatorList, 4, "暂时没有操作员信息")}
|
|
<#for item : operatorList>
|
|
<tr class="z-text-center z-h60" ${zhiqim_manager_tr_onmouse()}>
|
|
<td>${item.getOperatorCode()}</td>
|
|
<td><img src="${sessionUser.getAvatarUrl(item.getOperatorAvatar(), 50)}" class="z-w50 z-h50 z-bd-rd50p"></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="doDeleteOperatorRole('${item.getOperatorCode()}', '${role.getRoleId()}')"></button>
|
|
<#else>
|
|
--
|
|
</#if>
|
|
</td>
|
|
</tr>
|
|
</#for>
|
|
</table>
|
|
${zhiqim_manager_list(operatorList.size())}
|
|
|
|
${zhiqim_manager_content_end()} |