|
|
<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<title>教师学生调转原因</title>
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
<meta name="renderer" content="webkit">
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
<meta name="viewport"
|
|
|
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
|
<link rel="stylesheet" href="../../static/css/font.css">
|
|
|
<link rel="stylesheet" href="../../static/css/weadmin.css">
|
|
|
<link rel="stylesheet" href="../../lib/ztree/zTreeStyle.css">
|
|
|
<script src="../../lib/jquery-1.12.4.min.js"></script>
|
|
|
<script src="../../lib/ztree/jquery.ztree.core-3.5.min.js"></script>
|
|
|
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
|
|
<!--[if lt IE 9]>
|
|
|
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
|
|
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
|
|
<![endif]-->
|
|
|
|
|
|
</head>
|
|
|
<body>
|
|
|
|
|
|
<div class="weadmin-body">
|
|
|
<form class="layui-form" id="applyForm">
|
|
|
<p>您已申请调转到 <span id="org_name"></span><span> ,请填写调转申请原因:</span></p>
|
|
|
<div class="layui-form-item layui-form-text" id="apply_message" style="margin: 22px 0">
|
|
|
<textarea name="apply_message" placeholder="请输入调转申请原因" lay-verify="required" class="layui-textarea" ></textarea>
|
|
|
</div>
|
|
|
<div class="layui-form-item" id="submitBtn">
|
|
|
<button class="layui-btn" lay-submit="" lay-filter="formDemo">确定</button>
|
|
|
<button class="layui-btn" type="button" id="goBack">返回</button>
|
|
|
</div>
|
|
|
</form>
|
|
|
</div>
|
|
|
|
|
|
<script src="../../lib/layui/layui.js"></script>
|
|
|
<script src="../../lib/base64.js"></script>
|
|
|
<script>
|
|
|
|
|
|
layui.extend({
|
|
|
admin: '{/}../../static/js/admin'
|
|
|
});
|
|
|
layui.use(['form', 'jquery', 'admin', 'table', 'laytpl'], function () {
|
|
|
var form = layui.form,
|
|
|
$ = layui.jquery,
|
|
|
admin = layui.admin,
|
|
|
table = layui.table,
|
|
|
laytpl = layui.laytpl;
|
|
|
var org_name = decode64(GetQueryString("org_name"));
|
|
|
$("#org_name").text(org_name);
|
|
|
|
|
|
// 提交
|
|
|
form.on('submit(formDemo)',function (data) {
|
|
|
var f=data.field;
|
|
|
var url="";
|
|
|
if(GetQueryString("stu")){
|
|
|
url= "/baseService/studentYd/studentTransferApply";
|
|
|
}else{
|
|
|
url= "/baseService/teacherYd/teacherTransferApply";
|
|
|
}
|
|
|
$.ajax({
|
|
|
type: "POST",
|
|
|
dataType: "json",
|
|
|
url:url,
|
|
|
data: {
|
|
|
"target_bureau_id":GetQueryString("org_id"),
|
|
|
"person_id":GetQueryString("person_id"),
|
|
|
"apply_message":f.apply_message
|
|
|
},
|
|
|
success: function (data) {
|
|
|
if(data.success){
|
|
|
layer.msg("调转申请提交成功", {icon: 1,time:1000,shade : [0.5 , '#000' , true]}, function () {
|
|
|
var index = parent.layer.getFrameIndex(window.name);
|
|
|
parent.layer.close(index);
|
|
|
window.parent.closeDialog();
|
|
|
})
|
|
|
|
|
|
}else{
|
|
|
layer.alert(data.message,{icon:0})
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
return false;
|
|
|
|
|
|
})
|
|
|
|
|
|
// 返回
|
|
|
$("#goBack").click(function () {
|
|
|
var index=parent.layer.getFrameIndex(window.name);
|
|
|
parent.layer.close(index);
|
|
|
})
|
|
|
|
|
|
})
|
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
</html> |