|
@@ -161,7 +161,7 @@ export default {
|
|
|
console.log(this.$refs.dia)
|
|
|
if (!this.dataList.length) {
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.header.screenForm = {}
|
|
|
+ Object.assign(this.$refs.header.$data, this.$refs.header.$options.data())
|
|
|
this.customerNumber = ''
|
|
|
})
|
|
|
}
|
|
@@ -179,7 +179,7 @@ export default {
|
|
|
})
|
|
|
if (this.dataList.length == 1) {
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.header.screenForm = {}
|
|
|
+ Object.assign(this.$refs.header.$data, this.$refs.header.$options.data())
|
|
|
this.customerNumber = ''
|
|
|
})
|
|
|
}
|
|
@@ -238,7 +238,7 @@ export default {
|
|
|
},
|
|
|
onReset(){
|
|
|
Object.assign(this.$data, this.$options.data())
|
|
|
- this.$refs.header.screenForm = {}
|
|
|
+ Object.assign(this.$refs.header.$data, this.$refs.header.$options.data())
|
|
|
|
|
|
}
|
|
|
|