|
|
|
@ -118,6 +118,9 @@
|
|
|
|
|
<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
|
|
|
|
|
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
|
|
|
|
|
<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="resetpwd">重置密码</a>
|
|
|
|
|
<a class="layui-btn layui-btn-xs layui-btn-xs" lay-event="setIdentity">申报员</a>
|
|
|
|
|
<a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="setIdentityI">一级审核员</a>
|
|
|
|
|
<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="setIdentityII">二级审核员</a>
|
|
|
|
|
</script>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="hidden" value="" id="dep_id">
|
|
|
|
@ -264,7 +267,7 @@
|
|
|
|
|
, {field: 'org_name', title: '部门', align: 'center'}
|
|
|
|
|
, {field: 'login_name', title: '登录名', align: 'center'}
|
|
|
|
|
, {field: 'original_pwd', title: '初始密码', align: 'center'}
|
|
|
|
|
, {fixed: 'right', title: '操作', toolbar: '#barDemo', align: 'center', width: 360, fixed: 'right'}
|
|
|
|
|
, {fixed: 'right', title: '操作', toolbar: '#barDemo', align: 'center', width: 480, fixed: 'right'}
|
|
|
|
|
]]
|
|
|
|
|
, page: true
|
|
|
|
|
, done: function () {
|
|
|
|
@ -288,6 +291,25 @@
|
|
|
|
|
window.location.href = document.referrer;
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
//设置身份
|
|
|
|
|
window.setIdentity = function (person_id, identity_id) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "GET",
|
|
|
|
|
async: false,
|
|
|
|
|
url: '/baseService/teacher/setIdentity?person_id=' + person_id + "&identity_id=" + identity_id,
|
|
|
|
|
dataType: "json",
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data.success) {
|
|
|
|
|
layer.msg("更改身份成功", {icon: 1, time: 1000, shade: [0.5, '#000', true]}, function () {
|
|
|
|
|
layui.table.reload('idTest', {page: {curr: 1}});
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
layer.alert(data.message, {icon: 0})
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
table.on('tool(demo)', function (obj) {
|
|
|
|
|
var data = obj.data;
|
|
|
|
@ -302,20 +324,19 @@
|
|
|
|
|
layer.confirm('确定重置 ' + data.person_name + ' 密码吗?', {icon: 0}, function (index) {
|
|
|
|
|
resetPwd(data.person_id);
|
|
|
|
|
});
|
|
|
|
|
} else if (obj.event == 'personDep') {
|
|
|
|
|
WeAdminShow('辅部门管理', '../dep/personDep.html?person_id=' + data.person_id, 800, 520);
|
|
|
|
|
} else if (obj.event === 'transferApply') {
|
|
|
|
|
var info = getcookie();
|
|
|
|
|
if (info.identity_id == 1) {
|
|
|
|
|
WeAdminShow('调转申请', './superTransferApply.html?person_id=' + data.person_id + '&bureau_id=' + org_id, 800, 630);
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
|
|
WeAdminShow('调转申请', './transferApply.html?person_id=' + data.person_id + '&bureau_id=' + org_id, 800, 630);
|
|
|
|
|
}
|
|
|
|
|
} else if (obj.event === 'changeStatus') {
|
|
|
|
|
WeAdminShow('异动处理', './changeStatus.html?person_id=' + data.person_id + '&bureau_id=' + org_id, 450, 330);
|
|
|
|
|
} else if (obj.event === 'setIdentity') {
|
|
|
|
|
layer.confirm('确定将 ' + data.person_name + ' 设置为申报员身份吗?', {icon: 0}, function (index) {
|
|
|
|
|
setIdentity(data.person_id, 2);
|
|
|
|
|
});
|
|
|
|
|
} else if (obj.event === 'setIdentityI') {
|
|
|
|
|
layer.confirm('确定将 ' + data.person_name + ' 设置为一级审核员身份吗?', {icon: 0}, function (index) {
|
|
|
|
|
setIdentity(data.person_id, 3);
|
|
|
|
|
});
|
|
|
|
|
} else if (obj.event === 'setIdentityII') {
|
|
|
|
|
layer.confirm('确定将 ' + data.person_name + ' 设置为二级审核员身份吗?', {icon: 0}, function (index) {
|
|
|
|
|
setIdentity(data.person_id, 4);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
form.on('select(sel1)', function (data) {
|
|
|
|
|