提交 12376bd3 编写于 作者: haochangdi's avatar haochangdi

修复教培的项目的暂存下一步的问题

上级 e8df6c45
...@@ -486,7 +486,7 @@ export default { ...@@ -486,7 +486,7 @@ export default {
vm.$refs.CustomBaseinfo.save(false); vm.$refs.CustomBaseinfo.save(false);
} else if (vm.active == 2) { } else if (vm.active == 2) {
vm.sendCircleData(() => { vm.sendCircleData(() => {
vm.$message.info("完成"); vm.$message.info("成功");
}); });
} }
}, },
......
...@@ -1718,6 +1718,9 @@ export default { ...@@ -1718,6 +1718,9 @@ export default {
attachmentPDFModel.push(PDFModel); attachmentPDFModel.push(PDFModel);
} }
//} //}
if (option == "add" && this.projectId) {
projectModel.id = this.projectId
}
if (option == "edit" || option == "storageEdit") { if (option == "edit" || option == "storageEdit") {
//编辑 //编辑
projectModel.id = this.formData.id; projectModel.id = this.formData.id;
...@@ -2076,7 +2079,7 @@ export default { ...@@ -2076,7 +2079,7 @@ export default {
vm.formData.attachmentUrl2 != "" vm.formData.attachmentUrl2 != ""
) { ) {
//校验名字 //校验名字
let projectId = vm.getUrlSearch(window.location.href, "projectId"); let projectId = vm.getUrlSearch(window.location.href, "projectId") || this.projectId;
if (projectId == null) { if (projectId == null) {
//新建 //新建
let param = { let param = {
...@@ -2086,7 +2089,7 @@ export default { ...@@ -2086,7 +2089,7 @@ export default {
if (res.code == "000000") { if (res.code == "000000") {
//移动到第二页 选择范围 //移动到第二页 选择范围
// this.operationLast(); // this.operationLast();
this.insertOrUpdate("add"); this.insertOrUpdate();
// this.active++; // this.active++;
// this.stepData = [false, true, false]; // this.stepData = [false, true, false];
//this.initRange(); //this.initRange();
...@@ -2094,6 +2097,8 @@ export default { ...@@ -2094,6 +2097,8 @@ export default {
this.$message.info(res.message); this.$message.info(res.message);
} }
}); });
} else if (this.projectId){
this.insertOrUpdate('add');
} else { } else {
//编辑 //编辑
// this.operationLast(); // this.operationLast();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册