rushfee/resource/html/authtask/countadd.html

61 lines
1.5 KiB
HTML

<html login="false">
<head>
<meta charset="UTF-8">
<title>每日工作量</title>
</head>
<body>
<div widget="toolbar">
<a widget="button" iconCls="icon-save" onclick="save()">保存</a>
<a widget="button" iconCls="icon-exit" onclick="closewindow()">退出</a>
</div>
<input widget="edit" name="u_id" visible="false" />
<input widget="edit" name="u_name" visible="false" />
<input widget="edit" name="logo" visible="false" />
<input widget="edit" name="newfile" visible="false" />
<input widget="edit" name="url" visible="false" />
<input widget="edit" name="count" label="今日工作量" required="true"
vtype="maxLength:150" style="margin-top: 5px; width: 350px" />
<br>
<input widget = "textarea"name ="bz" label = "备注信息" emptyText="" width="505px" height="80px" />
</body>
<script type="text/javascript">
function closewindow() {
var params = {};
CloseWindow(params);
}
function save() {
var flag = aos.getForm().validate();
if (!flag) {
aos.alert("校验失败!");
return;
}
var params = {
count : aos.get('count').getValue(),
bz : aos.get('bz').getValue()
};
aos.post({
url : 'rush/addtaskpeople/count',
data : params,
success : function(datas) {
aos.alert(datas);
/* var datas = datas.replace(/[\r\n]/g, "");
var datas = JSON.parse(datas); */
if (datas.code == '0000') {
aos.alert(datas.message);
CloseWindow(params);
grid.load();
} else {
aos.alert(datas.message);
}
}
});
}
</script>
</html>