-- fix bug

This commit is contained in:
yuping
2023-03-02 16:45:29 +08:00
parent 6dd6208747
commit da565f0933

View File

@@ -35,7 +35,7 @@
<span style="font-size: 12px; color: #ffffff">说明</span>
</div>
</a-popover>
<div class="imgIcon" @click="showModal(index)"></div>
<div class="imgIcon" @click="editModal(index)"></div>
</div>
<div class="boxs_right">
<div class="imgIcon" @click="deleteStage(index)"></div>
@@ -513,6 +513,11 @@ const closeModal = () => {
};
//显示添加阶段弹窗
const showModal = () => {
formValue.value = {}
stage.value = true
};
const editModal = () => {
formValue.value = projectInfo.value.stageList[activeIndex.value]
stage.value = true
};
@@ -522,6 +527,10 @@ function editStage() {
message.warning("请输入阶段名称!");
return
}
if(formValue.value.id){
stage.value = false
return
}
//替换 默认阶段
if (projectInfo.value.stageList.length === 1 && projectInfo.value.stageList[0].id === '0') {
formValue.value.taskDraftDtoList = [...projectInfo.value.stageList[0].taskDraftDtoList]