amis icon indicating copy to clipboard operation
amis copied to clipboard

CRUD 局部刷新(仅刷新指定行)bug

Open 67396522 opened this issue 2 years ago • 3 comments

描述问题:

"actions": [ { "componentId": "crud_reload1", "actionType": "reload", "args": { "condition": "${id == 2}" } } ] 1)当 "condition": “${id==2}" 时,当前条件行的内容并没有得到更新,但当前行的子集得到了更新;

2)如果在 “行编辑” 中调用该动作使用动态参数 "condition": "${id == id}" 或 "condition": "${id == parentId}"
或 "condition": "${id == event.data.id }" 目前都无效

我的理解刷新指定行功能是便于编辑该行或项该行增加子集时的功能,但当前不能使用动态条件。 或者是我传递参数方式不对?应该如何传递?

67396522 avatar Apr 26 '24 02:04 67396522

👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

github-actions[bot] avatar Apr 26 '24 02:04 github-actions[bot]

https://aisuda.bce.baidu.com/amis/zh-CN/components/crud#%E6%9B%B4%E6%96%B0%E6%8C%87%E5%AE%9A%E8%A1%8C%E8%AE%B0%E5%BD%95

你可能需要这样做,配合请求或者什么的 独立对某行直接替换数据,最直接,可以走自定义js断点调试

lhtuling avatar Aug 11 '24 04:08 lhtuling

Amis低代码前端框架交流群【QQ1群】:717791727 Amis低代码前端框架交流群【QQ2群】:721182449

lhtuling avatar Aug 11 '24 04:08 lhtuling