楼主: nihaoweixiao

表单全局函数如何调用数据源方法

[复制链接]
查看: 5421   回复: 10

0

主题

10

回帖

134

积分

注册会员

Rank: 2

积分
134
2024-8-29 08:52:39   显示全部楼层  
function test( formRef ){
  console.log(formRef)
  formRef.getTopFormRef().executeDataSource('xxx',params).then(res =>{})
}

调用时得把这个 formRef 指定为 vform时的那个 this.getFormRef()或已设置 window 里的formRef
回复

使用道具 举报

12
您需要登录后才可以回帖   登录 注册账号

高级模式