Skip to content
New issue

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

JS增强的作用字段 #7705

Open
yingshi-7 opened this issue Jan 9, 2025 · 2 comments
Open

JS增强的作用字段 #7705

yingshi-7 opened this issue Jan 9, 2025 · 2 comments

Comments

@yingshi-7
Copy link

问题描述:

当我的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为主表字段,为什么没有监听到?
是需要使用驼峰式命名吗?

@yingshi-7
Copy link
Author

我的主表的对应字段没有做出相应的变化

@zhangdaiscott
Copy link
Member

zy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants