mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-09 20:40:49 +08:00
feat(notice): 投递明细/失败重发/只读场景总览
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user