Commit 8fb82402 authored by “lixuyan”'s avatar “lixuyan”

粘度框回显

parent 589eb2e2
......@@ -36,6 +36,17 @@ export default {
second: ''
}
},
watch: {
'form.id': {
immediate: true,
deep: true,
handler: function(val) {
this.cup = this.form.viscosity && this.form.viscosity.split(' ').length > 1 ? this.form.viscosity.split(' ')[0] : this.form.viscosity
this.second = this.form.viscosity && this.form.viscosity.split(' ').length > 1 ? this.form.viscosity.split(' ')[1] : this.form.viscosity
}
}
},
methods: {
change() {
this.$emit('input', this.cup + ' ' + this.second)
......
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