uu
This commit is contained in:
parent
6c2e30c002
commit
0dd723f1db
@ -163,13 +163,14 @@
|
|||||||
searchParam: {
|
searchParam: {
|
||||||
handler(newVal, oldVal){
|
handler(newVal, oldVal){
|
||||||
let vals = Object.values(newVal)
|
let vals = Object.values(newVal)
|
||||||
|
if(JSON.stringify(newVal) == JSON.stringify(oldVal || {})) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
// 所有关联入参都有值再 执行自动计算,数据未变化不做计算
|
// 所有关联入参都有值再 执行自动计算,数据未变化不做计算
|
||||||
if(vals.length == vals.filter(v => !!v).length) {
|
if(vals.length == vals.filter(v => !!v).length) {
|
||||||
if(JSON.stringify(newVal) != JSON.stringify(oldVal || {})) {
|
|
||||||
console.log("====watch cost calcWaybillFee===")
|
console.log("====watch cost calcWaybillFee===")
|
||||||
this.calcWaybillFee(newVal);
|
this.calcWaybillFee(newVal);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
deep: true,
|
deep: true,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user