This commit is contained in:
陈红丽 2024-12-19 11:18:34 +08:00
parent 58ee0eb3e3
commit d0d902a4da

View File

@ -199,15 +199,17 @@
* 执行设置已读 * 执行设置已读
* @param id 参数 * @param id 参数
*/ */
async function handleSetRead(id) { async function handleSetRead(record) {
dialog.warning({ dialog.warning({
title: '提示', title: '提示',
content: '确定标记为已读?', content: '确定标记为已读?',
positiveText: '确定', positiveText: '确定',
negativeText: '取消', negativeText: '取消',
onPositiveClick: async () => { onPositiveClick: async () => {
record.id ? await setRead(record.id) : await setRead(rowKeys.value); record
message.success('删除成功'); ? await setRead({ idList: [record.id] })
: await setRead({ idList: selectionData.value });
message.success('标记成功');
reloadTable(); reloadTable();
}, },
}); });