Commit 9ddb8636 authored by youjie's avatar youjie

no message

parent 7bfb35fb
...@@ -865,7 +865,7 @@ ...@@ -865,7 +865,7 @@
<input type="button" class="normalBtn" value="保存" @click="saveUpdate()" /> <input type="button" class="normalBtn" value="保存" @click="saveUpdate()" />
</el-col> </el-col>
</el-row> </el-row>
<el-form label-width="80px"> <el-form label-width="80px" >
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
...@@ -1304,6 +1304,7 @@ ...@@ -1304,6 +1304,7 @@
this.getList() this.getList()
}, },
clickAdd(){ clickAdd(){
this.cancelDATA()
this.inputValue = '' this.inputValue = ''
this.inputVisible = false this.inputVisible = false
this.addShow=true; this.addShow=true;
...@@ -1962,6 +1963,10 @@ ...@@ -1962,6 +1963,10 @@
}, },
cancelEdit() { // 取消新增 cancelEdit() { // 取消新增
this.addShow = false this.addShow = false
this.cancelDATA()
this.resetForm('addMsg')
},
cancelDATA(){
this.addMsg = { this.addMsg = {
CustomerId: 0, CustomerId: 0,
customerName: '', customerName: '',
...@@ -1991,7 +1996,6 @@ ...@@ -1991,7 +1996,6 @@
this.HousePhotos = '', this.HousePhotos = '',
this.Images = '', this.Images = '',
this.addMsgS.customerVisit.expectVisitDateTime = '' this.addMsgS.customerVisit.expectVisitDateTime = ''
this.resetForm('addMsg')
}, },
resetForm(formName) { // 重置表单 resetForm(formName) { // 重置表单
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment