<!doctype html>
|
<html class="no-js">
|
<head>
|
<meta charset="utf-8">
|
<title>等级协议</title>
|
[#include "/business/pages/include/static.html" /]
|
</head>
|
|
<body >
|
<input type="hidden" id="type" name="type" value=""/>
|
<div class="fs_main clearfix" style="margin-top:10px;">
|
<div class="fs_main fs_edit nopadding" style="border:1px solid #dadbdf ;" >
|
<div class="deal_switch">
|
<div class="dls_btn" id="dlsBtn">
|
<a class="basicinfo focus"><span>人员</span></a>
|
<a id="group" class="basicinfo"><span>角色</span></a>
|
</div>
|
</div>
|
<div class="deal_switch_wrap">
|
<div class="deal_switch_con iframecon" style="display:block;" >
|
<table id="selExecutors" class="pab_con">
|
[#if groupList??&&groupList?size>0]
|
[#list groupList as group]
|
<tr><th>${group.name}</th><td>
|
[#assign userList=group.dataList]
|
[#if userList??&&userList?size>0]
|
[#list userList as user]
|
<div class="pabitem" style="margin-right:10px;">
|
<input name="checkbox" value="${user.USER_ID}" type="radio" class="pos"/><span>${user.USER_NAME}</span>
|
</div>
|
[/#list]
|
[/#if]
|
</td></tr>
|
[/#list]
|
[/#if]
|
</table>
|
|
</div>
|
<div class="deal_switch_con iframecon" style="display:none;" >
|
|
</div>
|
</div>
|
</div>
|
</div>
|
<script type="text/javascript">
|
var projectId='${RequestParameters.projectId}';
|
var serivceListId='${RequestParameters.serivceListId}';
|
var shownum=$("#shownum").val();
|
$(function() {
|
|
$("#dlsBtn>a").click(function() {
|
var index = $("#dlsBtn>a").index(this);
|
$("#dlsBtn>a").removeClass("focus");
|
$(this).addClass("focus");
|
var $dom = $("div.deal_switch_con:eq("+index+")");
|
$("#type").val(index+1);
|
if($.util.isEmpty($.trim($dom.html()))) {
|
switch(index){
|
case 0:
|
$('div.deal_switch_con').eq(0).show();
|
break;
|
case 1:
|
$.get("${base}/business/pages/incident/selectGroup.html",{},function(data){
|
$('div.deal_switch_con').eq(1).html(data);
|
});
|
break;
|
}
|
}
|
|
$("div.deal_switch_con").hide();
|
$dom.show();
|
|
})
|
|
$('div.deal_switch_con').hide();
|
$('div.deal_switch_con').eq(0).show();
|
$("#type").val(1);
|
|
})
|
function radioAddClick() {
|
$('input.ropos').click( function() {
|
var id = $(this).val();
|
var text = $(this).next("span").text();
|
$('#name').val(text);
|
$('#userid').val(id);
|
});
|
}
|
function onDialogBtnClick(btnID, dialogID, config){
|
if(btnID == "btnSure"){
|
var typelx = $("#type").val();
|
var alluserid1 = "";
|
var allusername1 = "";
|
if(typelx == 1){
|
var checkUser = $(":radio:checked");
|
if(checkUser.length==0) {
|
popupTips("请选择人员");
|
return;
|
}
|
alluserid1 = checkUser.val()+"-"+checkUser.next("span").text();
|
allusername1 = checkUser.next("span").text();
|
}
|
if(typelx == 2){
|
var checkUser = $(":radio.pos:checked");
|
if(checkUser.length!=1) {
|
popupTips("请选择人员");
|
return;
|
}
|
alluserid1 = checkUser.val()+"-"+checkUser.next("span").text();
|
allusername1 = checkUser.next("span").text();
|
|
}
|
window.top.document.getElementById('dialogIframepersonList').contentWindow.selectUser(typelx,alluserid1,allusername1);
|
window.top.hideDialog("dealer");
|
|
|
}
|
}
|
|
</script>
|
</body>
|
</html>
|