diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index a5c779b1..b64bdb60 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -35,7 +35,7 @@ 说明 -
+
@@ -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]