|
@@ -507,7 +507,8 @@
|
|
|
saveOrUpdate(this.dataForm)
|
|
saveOrUpdate(this.dataForm)
|
|
|
.then((msg) => {
|
|
.then((msg) => {
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
- this.dataForm = {};
|
|
|
|
|
|
|
+ this.$refs['dataForm'].resetFields();
|
|
|
|
|
+ // this.dataForm = {};
|
|
|
const info = this.dataForm.id ? '修改成功' : '新增成功';
|
|
const info = this.dataForm.id ? '修改成功' : '新增成功';
|
|
|
this.$message.success(info);
|
|
this.$message.success(info);
|
|
|
this.visible = false;
|
|
this.visible = false;
|