mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 15:26:48 +08:00
--fix bug
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<Draggable v-model="projectInfo.stageList" chosenClass="chosen" ghostClass="ghost" forceFallback="true"
|
||||
group="stage" animation="500">
|
||||
<template #item="{ element,index }">
|
||||
<div class="items" v-if="element.id !=='0'" :class="activeIndex === index ? 'active' : ''"
|
||||
<div class="items" v-if="element.id !=='0' && !element.deleted" :class="activeIndex === index ? 'active' : ''"
|
||||
@click="changeStageIndex(index)">
|
||||
<div class="items1">
|
||||
<div class="boxs_left">
|
||||
@@ -193,7 +193,7 @@
|
||||
font-weight: 400;
|
||||
color: #4f5156;
|
||||
line-height: 36px;
|
||||
" class="tableRow">
|
||||
" class="tableRow" v-if="!element.deleted">
|
||||
<div style="
|
||||
width: 87px;
|
||||
text-align: center;
|
||||
@@ -596,12 +596,15 @@ const moveTask = () => {
|
||||
};
|
||||
//批量删除
|
||||
const deleteTaskAll = () => {
|
||||
projectInfo.value.stageList[activeIndex.value].taskDraftDtoList = projectInfo.value.stageList[activeIndex.value].taskDraftDtoList.filter(t => !t.checked);
|
||||
projectInfo.value.stageList[activeIndex.value].taskDraftDtoList.filter(t => t.checked).forEach(t=>{
|
||||
t.checked = false;
|
||||
t.deleted = true;
|
||||
})
|
||||
deAll.value = false;
|
||||
};
|
||||
|
||||
const confirmDelTask = () => {
|
||||
projectInfo.value.stageList[activeIndex.value].taskDraftDtoList.splice(deleteIndex.value, 1)
|
||||
projectInfo.value.stageList[activeIndex.value].taskDraftDtoList[deleteIndex.value].deleted = true
|
||||
deleteModal.value = false
|
||||
};
|
||||
//关闭添加阶段弹窗
|
||||
|
||||
Reference in New Issue
Block a user