feat(notice): 投递明细/失败重发/只读场景总览

This commit is contained in:
augushong
2026-10-12 12:41:03 +00:00
parent ca16cd56de
commit cc1459383f
5 changed files with 247 additions and 6 deletions

View File

@@ -1,3 +1,21 @@
$(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();
});
});
});
})