lukeyan #19

Merged
lukeyan merged 3 commits from lukeyan into master 2 years ago

@ -306,7 +306,6 @@ export default {
this.visible = true; this.visible = true;
if (num === 1) { if (num === 1) {
this.dialogTitle = "新建"; this.dialogTitle = "新建";
this.form = {};
} else if (num === 2) { } else if (num === 2) {
this.dialogTitle = "查看档案"; this.dialogTitle = "查看档案";
} else if (num === 3) { } else if (num === 3) {
@ -314,6 +313,7 @@ export default {
console.log("item", item); console.log("item", item);
this.imageUrl = item.picUrl; this.imageUrl = item.picUrl;
this.form = Object.assign(this.form, item); this.form = Object.assign(this.form, item);
console.log('form123',this.form);
} }
}, },
getCheck() { getCheck() {
@ -402,7 +402,6 @@ export default {
if (res.code === 200) { if (res.code === 200) {
this.$message.success("编辑成功"); this.$message.success("编辑成功");
this.visible = false; this.visible = false;
this.form = {};
} else { } else {
this.$message.warning("编辑失败"); this.$message.warning("编辑失败");
} }

Loading…
Cancel
Save