main
kgdxpr 1 year ago
parent afd9496de2
commit 18f51bbc36

@ -397,29 +397,46 @@
//调转申请 //调转申请
window.turnApplyFor = function (obj) { window.turnApplyFor = function (obj) {
var loginPersonInfo = getPersonLoginInfo($);
var contentUrl = ""; $.ajax({
type: "GET",
if (loginPersonInfo.identity_id == "1") { async: false,
contentUrl = './turn_sys.html?person_id=' + obj.data.person_id; url: '/QingLong/teacherYd/getPersonStatus?person_id=' + obj.data.person_id,
} else { dataType: "json",
contentUrl = './turn.html?person_id=' + obj.data.person_id; success: function (res) {
} if (res.success) {
var loginPersonInfo = getPersonLoginInfo($);
layer.open({ var contentUrl = "";
type: 2, if (loginPersonInfo.identity_id == "1") {
title: '调转申请', contentUrl = './turn_sys.html?person_id=' + obj.data.person_id;
offset: 'r', } else {
anim: 'slideLeft', contentUrl = './turn.html?person_id=' + obj.data.person_id;
area: ['690px', '100%'], }
shade: 0.1, layer.open({
shadeClose: true, type: 2,
content: contentUrl, title: '调转申请',
end: function () { offset: 'r',
table.reload("data-table"); anim: 'slideLeft',
area: ['690px', '100%'],
shade: 0.1,
shadeClose: true,
content: contentUrl,
end: function () {
table.reload("data-table");
}
});
} else {
layer.msg(res.message, {
icon: 2,
time: 2500
});
return;
}
} }
}); });
} }
//异动处理 //异动处理

Loading…
Cancel
Save