确认
@@ -65,13 +62,14 @@ export default {
},
rules: {
name: [{ required: true, message: "请输入名称", trigger: "blur" }],
- id: [{ required: true, message: "请输入id", trigger: "blur" }]
+ id: [{ required: true, message: "请输入ID", trigger: "blur" }]
},
};
},
methods: {
openDialog: function (isEdit, id, name, parentId, callback) {
console.log("parentId: " + parentId)
+ console.log(this.form)
this.isEdit = isEdit;
this.form.id = id;
this.form.name = name;
@@ -105,8 +103,14 @@ export default {
});
},
close: function () {
+ this.isEdit = false;
+ this.form.id = null;
+ this.form.name = null;
+ this.form.platformId = null;
+ this.form.parentId = null;
+ this.callback = null;
this.showDialog = false;
- this.$refs.form.resetFields();
+ console.log(this.form)
},
},
};