Commit 8975e016 authored by jingnan's avatar jingnan 👀

漆料调配粘度取值修改

parent f903399f
......@@ -53,8 +53,9 @@ export default {
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
const lastSpaceIndex = this.form.viscosity && this.form.viscosity.lastIndexOf(' ')
this.second = this.form.viscosity && this.form.viscosity.split(' ').length > 1 ? this.form.viscosity.split(' ').pop() : this.form.viscosity
this.cup = this.form.viscosity && this.form.viscosity.substring(0, lastSpaceIndex)
}
},
'form.theoreticalViscosity': {
......
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