From 8298b5809284ed6c2c9613afcc16737ed950f52d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BA=A2=E6=97=A5=E5=B7=A5=E4=BD=9C=E5=AE=A4?= <1375011211@qq.com> Date: Fri, 21 Oct 2022 05:30:25 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B9=E7=9B=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20=E5=88=A0=E9=99=A4=E4=BB=BB=E5=8A=A1=E5=90=8E?= =?UTF-8?q?=E6=B2=A1=E5=85=B3=E9=97=AD=E5=BC=B9=E7=AA=97=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 红日工作室 <1375011211@qq.com> --- app/project/view/task/view.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/project/view/task/view.html b/app/project/view/task/view.html index d345ca7..382a34a 100644 --- a/app/project/view/task/view.html +++ b/app/project/view/task/view.html @@ -230,9 +230,10 @@ let callback = function (e) { layer.closeAll(); layer.msg(e.msg); - setTimeout(function () { - location.reload(); - }, 1000) + parent.layui.taskTable.reload(); + if (e.code == 0) { + parent.layui.tool.close(1000); + } } let postData = { "id": detail_id }; tool.delete("/project/task/delete", postData, callback);