53 lines
1.7 KiB
HTML
53 lines
1.7 KiB
HTML
|
<html login="false">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<title>分配人员</title>
|
||
|
<style>
|
||
|
body{
|
||
|
height:70%;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body >
|
||
|
<div style="margin-top:30px;">
|
||
|
<input widget="autocomplete" name="searchpeople" label="选择人员" url="rush/search/gettaskpeople"
|
||
|
popupEmptyText="请选择" textfield="cname" valuefield="cguid"
|
||
|
|
||
|
style="margin-left:-16px;width: 226px;" showClose="true" oncloseclick ="conCloseClick"/>
|
||
|
|
||
|
<input name="tasknum" widget="edit"
|
||
|
textfield="text" style="margin-left:-16px;width: 226px;" label="任务数量">
|
||
|
|
||
|
<div style="text-align:center;margin-top:30px;">
|
||
|
<a class="aos-button aos-btn-primary" style="width: 60px; margin-right: 20px;" onclick="save()"><span class="aos-button-text ">保存</span></a>
|
||
|
<a class="aos-button aos-btn-primary" style="width: 60px;" hidefocus="" onclick="CloseWindow()"><span class="aos-button-text ">退出</span></a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
<script type="text/javascript">
|
||
|
function save(){
|
||
|
if(!aos.get('searchpeople').getValue())
|
||
|
{aos.alert('请选择人员!');}
|
||
|
else if(!aos.get('tasknum').getValue())
|
||
|
{aos.alert('请输入任务数量!');}
|
||
|
else{
|
||
|
var rtnData={};
|
||
|
rtnData['userid']=aos.get('searchpeople').getValue();
|
||
|
rtnData['username']=aos.get('searchpeople').getText();
|
||
|
rtnData['tasknum']=aos.get('tasknum').getValue();
|
||
|
aos.alert('保存成功!');
|
||
|
//alert(rtnData['tasknum']);
|
||
|
CloseWindow(rtnData);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
function conCloseClick (e){
|
||
|
var obj =e.sender;
|
||
|
obj.setText("");
|
||
|
obj.setValue("");
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</html>
|
||
|
|