<el-button type="primary" plain @click="addDialog">取消</el-button>
//写在methods里
cancel() {
this.dataDialogVisible = false;
//dataDialogVisible是el-dialog中:visible.sync="dataDialogVisible"的值
},
<el-button type="primary" plain @click="addDialog">取消</el-button>
//写在methods里
cancel() {
this.dataDialogVisible = false;
//dataDialogVisible是el-dialog中:visible.sync="dataDialogVisible"的值
},