From d91b0aae3bd4e9271526110447a6e66278efdf73 Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Thu, 27 Apr 2023 08:30:35 +0800 Subject: [PATCH] 'commit' --- WebRoot/html/ypzs/view/taskView.html | 29 +++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/WebRoot/html/ypzs/view/taskView.html b/WebRoot/html/ypzs/view/taskView.html index ca521f2..6a7fcc8 100644 --- a/WebRoot/html/ypzs/view/taskView.html +++ b/WebRoot/html/ypzs/view/taskView.html @@ -36,6 +36,8 @@ + @@ -66,7 +68,7 @@ , { field: 'mother_name', title: '母亲姓名', align: 'center', width: "8%" } , { field: 'tel', title: '联系电话', align: 'center', width: "10%" } , { field: 'create_time', title: '报名日期', align: 'center', width: "10%" } - , { field: '', title: '查看户口本照片', toolbar: '#tableOperate', align: 'center', width: "10%" } + , { field: '', title: '操作', toolbar: '#tableOperate', align: 'center', width: "10%" } ] ] @@ -123,6 +125,31 @@ ] } }); + } else if (data.event === 'remove') { + layer.confirm('确定要删除吗?', { + icon: 3, + title: '提示' + }, function (index) { + $.ajax({ + url: "/FengHuang/yp/delRecord?id=" + data.data.id, + type: 'GET', + success: function (result) { + if (result.success) { + layer.msg("删除成功!", { + icon: 1, + time: 1000 + }, function () { + table.reload('task-table'); + }); + } else { + layer.msg(result.msg, { + icon: 2, + time: 1000 + }); + } + } + }) + }); } });