rushfee/resource/html/authtask/addtaskpeople.html

81 lines
2.5 KiB
HTML
Raw Normal View History

2022-05-16 15:07:40 +00:00
<html login="false">
<head>
<title>分配人员</title>
</head>
<body >
<div widget="toolbar" showCloseButton="false">
<a widget="button" iconCls="icon-save" id="savebtn" onclick="save" linkToState="editold,editnew">保存</a>
<a widget="button" iconCls="icon-enabled" id="savebtn" onclick="quanxuan" linkToState="editold,editnew">全选</a>
<a widget="button" iconCls="icon-disable" id="savebtn" onclick="buxuan" linkToState="editold,editnew">全不选</a>
</div>
<div style="clear:both">
<div name="emp" label="人员结果" widget="checkboxlist"
repeatitems="5" repeatlayout="table" textfield="name" valuefield="name" url="aisinoha/rule/add">
</div>
</div>
<br/>
</body>
<script type="text/javascript">
var grid = aos.get('grid');
function init(param){
var pageState = param['pageState'];
var emp=param['emp'];
if(emp!=null){
aos.get('emp').setValue(emp);
}
}
function quanxuan(){
/* var data = "张熔熔,李海玲,魏帆,郭之芳,刘源,刘金帅,张孟迪,吴世秋,超级管理员,张敏,王腾,周宇飞,朱佳浩,郭鹏程,闫世杰,周娟,康怡清,赵娅含,刘鹏辉,杨成龙,万梦茹,郭廷一,杨世纪,程瑞月,康伟,巩莉,孟心如,申周鑫,李飞,王培培,测试,陈新,岳鑫浩,陈鹏,林佩宇,史晓莹,韩兴歌,徐康康,张良凯,刘鑫,禹智慧,申文莉,刘喜笑,李珊珊,司佳浩,李聪,高占琦,魏静茹,崔洺瑞,李燕1,耿晓静,付志强,申清清,张雨晴,汤婷婷,张阳阳,丁梦一,董小静,张凯文,张梦歌,申亚楠,张琦,姚丹丹,邱诗晴,应珂,王晨杰,鲁云鹏,周晓如,温家宝,梁儒娇,寿安琪,杨旭静,李鑫,李慧迪,姚康鑫,吴彩云,周雪莉,高一鸣,刘河森,徐璐可,张东梅,张永利,郭利妍,刘若林";
aos.get('feedback1').setValue(data); */
aos.post({
url:"aisinoha/rule/getuserlist",
success:function(data, textStatus, jqXHR){
//console.log(data);
//aos.alert(data.name);
aos.get('emp').setValue(data.name);
}
});
}
function buxuan(){
aos.get('emp').setValue();
}
function save(){
var params ={}
var emp = aos.get('emp').getValue();
if(emp== null || emp==''){
aos.alert('请添加人员!');
return ;
}
params['emp']=emp;
CloseWindow(params);
}
function RtnData(){
var RtnData ={}
var emp = aos.get('emp').getValue();
RtnData['emp']=emp;
return RtnData;}
</script>
</html>