We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当我的online开发的其中一个子表daily_costs_details的字段为total_amount,在JS增强中,进行监听: daily_costs_details_onlChange(){ return { total_amount(){ let total = 0 this.getSubTableInstance('daily_costs_details').getValues((err,values)=>{ if(values && values.length>0){ for(let item of values){ total+=item.total_amount; } } this.triggleChangeValues({reim_amount: total}) }) } } } reim_amount为主表字段,为什么没有监听到? 是需要使用驼峰式命名吗?
The text was updated successfully, but these errors were encountered:
我的主表的对应字段没有做出相应的变化
Sorry, something went wrong.
zy
No branches or pull requests
问题描述:
当我的online开发的其中一个子表daily_costs_details的字段为total_amount,在JS增强中,进行监听:
daily_costs_details_onlChange(){
return {
total_amount(){
let total = 0
this.getSubTableInstance('daily_costs_details').getValues((err,values)=>{
if(values && values.length>0){
for(let item of values){
total+=item.total_amount;
}
}
this.triggleChangeValues({reim_amount: total})
})
}
}
}
reim_amount为主表字段,为什么没有监听到?
是需要使用驼峰式命名吗?
The text was updated successfully, but these errors were encountered: