Compare commits
2 Commits
ceab393f37
...
7f4b329943
Author | SHA1 | Date | |
---|---|---|---|
7f4b329943 | |||
d0d902a4da |
@ -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();
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user