mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
-- fix bug
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user