提交 1beaa79a 编写于 作者: zhentian.jia's avatar zhentian.jia

暂存问题

上级 3abb9505
......@@ -802,10 +802,10 @@ export default {
let editData = res.data;
this.setEditData(editData);
this.projectStatus = res.data.projectData.projectStatus;
if(this.projectStatus == 1) {
if (this.projectStatus == 1) {
this.showStorage = true;
}
console.log('projectStatus:',this.projectStatus);
//console.log('projectStatus:',this.projectStatus);
} else {
console.log(res);
}
......@@ -858,7 +858,7 @@ export default {
attachmentPDFModel.push(PDFModel);
}
//}
if (option == "edit") {
if (option == "edit" || option == "storageEdit") {
//编辑
projectModel.id = this.formData.id;
projectModel.projectStatus = this.projectStatus;
......@@ -881,7 +881,7 @@ export default {
//console.log(res);
this.projectId = res.data.id;
this.projectStatus = res.data.projectStatus;
if (option != "storage") {
if (option != "storage" && option != "storageEdit") {
this.active++;
this.stepData = [false, true, false];
// this.projectId = res.data.id;
......@@ -975,17 +975,24 @@ export default {
this.$message.error("输入长度为2-20的内容");
return;
}
let param = {
projectName: this.formData.projectName
};
vm.GET("portal/portalInfo/checkProjectName", param).then(res => {
//console.log(res);
this.$message.info(res.message);
if (res.code == "000000") {
//移动到第二页 选择范围
this.insertOrUpdate("storage");
}
});
let urlProjectId = vm.getUrlSearch(window.location.href, "projectId");
if (urlProjectId == null) {
let param = {
projectName: this.formData.projectName
};
vm.GET("portal/portalInfo/checkProjectName", param).then(res => {
//console.log(res);
this.$message.info(res.message);
if (res.code == "000000") {
//移动到第二页 选择范围
this.insertOrUpdate("storage");
}
});
} else {
//console.log('urlProjectId'+urlProjectId);
this.insertOrUpdate("storageEdit");
}
} else {
this.$message.error("请输入项目名称");
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册