@@ -197,7 +197,7 @@
<el-button size="medium" @click="handleOk" class="r24" type="primary"
>确定</el-button
>
- <el-button @click="flag = false" size="medium">取消</el-button>
+ <el-button @click="handleCancel" size="medium">取消</el-button>
</div>
</Dialog>
@@ -292,6 +292,10 @@ export default {
handleOk () {
this.submitClickHandler();
},
+ handleCancel() {
+ this.flag = false;
+ this.tableForm = {};
+ },
// 新增/编辑-确认
submitClickHandler () {
this.loading = true;