computed: {
// 监听以下参数变化
arguments() {
const { shipCoId, shippingAgentId, configType, type, shipCoName } = this
return {
shipCoId,
configType,
type,
shippingAgentId,
shipCoName
}
}
},
watch: {
// 监听切换事件,触发保存
arguments(newVal, oldVal) {
if (oldVal.shipCoId && oldVal.configType && oldVal.type && oldVal.shippingAgentId) {
this.switchSave(oldVal)
}
}
},