mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-19 07:46:46 +08:00
-- fix bug
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
<span style="font-size: 12px; color: #ffffff">说明</span>
|
<span style="font-size: 12px; color: #ffffff">说明</span>
|
||||||
</div>
|
</div>
|
||||||
</a-popover>
|
</a-popover>
|
||||||
<div class="imgIcon" @click="showModal(index)"></div>
|
<div class="imgIcon" @click="editModal(index)"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="boxs_right">
|
<div class="boxs_right">
|
||||||
<div class="imgIcon" @click="deleteStage(index)"></div>
|
<div class="imgIcon" @click="deleteStage(index)"></div>
|
||||||
@@ -513,6 +513,11 @@ const closeModal = () => {
|
|||||||
};
|
};
|
||||||
//显示添加阶段弹窗
|
//显示添加阶段弹窗
|
||||||
const showModal = () => {
|
const showModal = () => {
|
||||||
|
formValue.value = {}
|
||||||
|
stage.value = true
|
||||||
|
};
|
||||||
|
const editModal = () => {
|
||||||
|
formValue.value = projectInfo.value.stageList[activeIndex.value]
|
||||||
stage.value = true
|
stage.value = true
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -522,6 +527,10 @@ function editStage() {
|
|||||||
message.warning("请输入阶段名称!");
|
message.warning("请输入阶段名称!");
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if(formValue.value.id){
|
||||||
|
stage.value = false
|
||||||
|
return
|
||||||
|
}
|
||||||
//替换 默认阶段
|
//替换 默认阶段
|
||||||
if (projectInfo.value.stageList.length === 1 && projectInfo.value.stageList[0].id === '0') {
|
if (projectInfo.value.stageList.length === 1 && projectInfo.value.stageList[0].id === '0') {
|
||||||
formValue.value.taskDraftDtoList = [...projectInfo.value.stageList[0].taskDraftDtoList]
|
formValue.value.taskDraftDtoList = [...projectInfo.value.stageList[0].taskDraftDtoList]
|
||||||
|
|||||||
Reference in New Issue
Block a user