From 05228429f1a801db155ebf34a8bf645f765ecfb1 Mon Sep 17 00:00:00 2001 From: 18516761980 <4761516tqsxp> Date: 星期三, 16 三月 2022 17:07:31 +0800 Subject: [PATCH] . --- src/main/webapp/static/js/receiveDetl/receiveDetl.js | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/src/main/webapp/static/js/receiveDetl/receiveDetl.js b/src/main/webapp/static/js/receiveDetl/receiveDetl.js index 8bae838..46ba744 100644 --- a/src/main/webapp/static/js/receiveDetl/receiveDetl.js +++ b/src/main/webapp/static/js/receiveDetl/receiveDetl.js @@ -192,6 +192,9 @@ // showEditModel(data); startIn(data); break; + case "renew": + renew(data); + break; } }); function startIn(data) { @@ -325,6 +328,35 @@ }); } + function renew(data) { + console.log(data) + layer.confirm('纭畾瑕佹挙鍥炲叏閮ㄤ笂鏋舵暟鎹悧锛�', { + skin: 'layui-layer-admin', + shade: .1 + }, function (i) { + layer.close(i); + var loadIndex = layer.load(2); + $.ajax({ + url: baseUrl+"/receiveDetl/renew/auth", + headers: {'token': localStorage.getItem('token')}, + data: JSON.stringify(data), + contentType:'application/json;charset=UTF-8', + method: 'POST', + success: function (res) { + layer.close(loadIndex); + if (res.code === 200){ + layer.msg(res.msg, {icon: 1}); + tableReload(); + } else if (res.code === 403){ + top.location.href = baseUrl+"/"; + } else { + layer.msg(res.msg, {icon: 2}); + } + } + }) + }); + } + // 鎼滅储 form.on('submit(search)', function (data) { pageCurr = 1; -- Gitblit v1.9.1