提交 a4b0802f 编写于 作者: Mr.奇淼('s avatar Mr.奇淼(

form表单重置bug修复

上级 1f87643c
......@@ -121,6 +121,10 @@ export default {
},
closeDialog(){
this.dialogFormVisible = false
this.form = {
customerName:"",
customerPhoneData:""
}
},
async deleteCustomer(row){
this.visible = false
......@@ -149,7 +153,7 @@ export default {
}
if(res.code == 0){
this.dialogFormVisible = false
this.closeDialog()
this.getTableData()
}
},
......
......@@ -181,6 +181,12 @@ export default {
},
initForm() {
this.$refs.apiForm.resetFields()
this.form= {
path: '',
apiGroup: '',
method: '',
description: ''
}
},
closeDialog() {
this.initForm()
......
......@@ -191,6 +191,20 @@ export default {
// 初始化弹窗内表格方法
initForm() {
this.$refs.menuForm.resetFields()
this.form = {
ID: 0,
path: '',
name: '',
hidden: '',
parentId: '',
component: '',
meta: {
title: '',
icon: '',
defaultMenu:false,
keepAlive:""
}
}
},
// 关闭弹窗
closeDialog() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册