This commit is contained in:
caozc
2023-02-26 12:36:37 +08:00
18 changed files with 259 additions and 204 deletions

View File

@@ -585,8 +585,20 @@ const temporaryStorage = async () => {
};
//确定
const submitStorage = async () => {
if (projectInfo.value.projectInfo.status === 3) {
dialog({
content: '该项目已经发布,修改后如未点击暂存当前操作未保存数据将丢失,确认保存?',
ok: async () => {
confirmLoading.value = true
await request(PROJECT_RELEASE, {projectId: route.query.projectId})
message.success("保存成功");
confirmLoading.value = false
},
})
return
}
confirmLoading.value = true
projectInfo.value.projectInfo.status === 3 ? await request(PROJECT_RELEASE, {projectId: route.query.projectId}) : await request(PROJECT_DETAIL_MODIFY, projectInfo.value)
await request(PROJECT_DETAIL_MODIFY, projectInfo.value)
message.success("阶段和任务数据已保存")
confirmLoading.value = false
};
@@ -822,7 +834,7 @@ const cancelStorage = async () => {
.ant-modal {
width: 549px !important;
height: 245px !important;
.ant-modal-content {
width: 549px !important;
height: 245px !important;
@@ -950,9 +962,10 @@ const cancelStorage = async () => {
.leftmain {
margin-top: 20px;
position: sticky;
top:0;
top: 0;
height: 80vh;
overflow-y: auto;
.tit {
margin-left: 20px;
font-size: 18px;