$(function(){ ua.listen(); // 无 resend 权限时隐藏行内重发按钮(与框架按钮保守隐藏口径一致) if (ua.auth('resend') === false) { $('.notice-resend-btn').remove(); } // 失败投递行内重发:POST target_id,服务端原子重置 status=3 行后刷新明细 $(document).on('click', '.notice-resend-btn', function () { var btn = $(this); ua.request.post({ url: ua.url('system.notice/resend'), data: {target_id: btn.data('target-id')}, }, function (res) { ua.msg.success(res.msg || '已重发', function () { location.reload(); }); }); }); })