mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 22:06:45 +08:00
-- fix bug
This commit is contained in:
@@ -475,7 +475,23 @@ const subdeleteAll = () => {
|
||||
message.warning("请选择要删除的任务!");
|
||||
return
|
||||
}
|
||||
|
||||
dialog({
|
||||
content: '确定要删除所选任务吗?',
|
||||
ok: () => {
|
||||
for (let i = 0; i < routerInfo.value.chapterList[activeIndex.value].draftTaskList.length; i++) {
|
||||
const t = routerInfo.value.chapterList[activeIndex.value].draftTaskList[i]
|
||||
if (t.checked) {
|
||||
if (t.id) {
|
||||
t.checked = false;
|
||||
t.deleted = true;
|
||||
} else {
|
||||
routerInfo.value.chapterList[activeIndex.value].draftTaskList.splice(i, 1);
|
||||
i--;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
//全选任务或全不选任务
|
||||
|
||||
Reference in New Issue
Block a user