feat(msgcenter): 消息卡片直批入口——铃铛卡片与全部消息表格加同意/拒绝(msgType=2),弹窗拒绝意见必填、提交防重、成功标已读刷新

This commit is contained in:
chenxing
2026-09-28 13:30:30 +08:00
parent a0f104d1b4
commit a7ae4db2fb
2 changed files with 164 additions and 18 deletions
+11
View File
@@ -142,6 +142,17 @@ class Base extends Abstract {
return this.postRequest({ url });
}
/**
* 消息卡片直批(B3 §2):同意/拒绝消息对应的审批待办。
* 身份(operatorId/schId/operatorName)服务端取会话,前端只传消息定位与动作。
* 返回 {ok, message}——ok=false 时 message 为可直接展示的文案。
* @memberof Basic
*/
handleMsg(msgId: number, action: "approve" | "reject", opinion?: string) {
const url = path + "/msgCenter/handle";
return this.postRequest({ url, data: { msgId, action, opinion } });
}
/**
* 修改密码
* @memberof Basic