From 18f51bbc3609b35d06e205bb228c858e26e48366 Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Mon, 22 Jul 2024 10:41:08 +0800 Subject: [PATCH] 'commit' --- WebRoot/view/ywgl/rywh/index.html | 57 ++++++++++++++++++++----------- 1 file changed, 37 insertions(+), 20 deletions(-) diff --git a/WebRoot/view/ywgl/rywh/index.html b/WebRoot/view/ywgl/rywh/index.html index 6253c13e..1759f943 100644 --- a/WebRoot/view/ywgl/rywh/index.html +++ b/WebRoot/view/ywgl/rywh/index.html @@ -397,29 +397,46 @@ //调转申请 window.turnApplyFor = function (obj) { - var loginPersonInfo = getPersonLoginInfo($); - var contentUrl = ""; - - if (loginPersonInfo.identity_id == "1") { - contentUrl = './turn_sys.html?person_id=' + obj.data.person_id; - } else { - contentUrl = './turn.html?person_id=' + obj.data.person_id; - } - - layer.open({ - type: 2, - title: '调转申请', - offset: 'r', - anim: 'slideLeft', - area: ['690px', '100%'], - shade: 0.1, - shadeClose: true, - content: contentUrl, - end: function () { - table.reload("data-table"); + $.ajax({ + type: "GET", + async: false, + url: '/QingLong/teacherYd/getPersonStatus?person_id=' + obj.data.person_id, + dataType: "json", + success: function (res) { + if (res.success) { + var loginPersonInfo = getPersonLoginInfo($); + var contentUrl = ""; + if (loginPersonInfo.identity_id == "1") { + contentUrl = './turn_sys.html?person_id=' + obj.data.person_id; + } else { + contentUrl = './turn.html?person_id=' + obj.data.person_id; + } + layer.open({ + type: 2, + title: '调转申请', + offset: 'r', + 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; + } } }); + + } //异动处理