描述问题:
crud在点击下一页之后再点上一页 column下的开关 dialog确认框获取到的还是旧行的数据
截图或视频:
如何复现(请务必完整填写下面内容):
- 你是如何使用 amis 的?
sdk
- amis 版本是什么?请先在最新 beta 版本测试问题是否存在
v3.5.3 - 粘贴有问题的完整
amis schema
代码:
{
"type": "crud",
"api": "https://aisuda.bce.baidu.com/amis/api/mock2/sample",
"syncLocation": false,
"id": "u:0adfd4ce35d4",
"perPageAvailable": [
10
],
"messages": {
},
"footerToolbar": [
{
"type": "statistics"
},
{
"type": "pagination"
}
],
"headerToolbar": [
{
"type": "button",
"label": "按钮",
"id": "u:ce35a5004efe"
}
],
"mode": "table",
"placeholder": "暂无数据",
"columns": [
{
"name": "id",
"label": "ID",
"id": "u:a454207729fa"
},
{
"name": "grade",
"label": "CSS grade",
"id": "u:eeae38a6908f"
},
{
"type": "switch",
"label": "开关",
"option": "说明",
"name": "switch",
"falseValue": false,
"trueValue": true,
"id": "u:bc5b2204a7cc",
"value": false,
"remark": "111",
"validateOnChange": true,
"onEvent": {
"change": {
"weight": 0,
"actions": [
{
"ignoreError": false,
"actionType": "confirmDialog",
"dialog": {
"type": "dialog",
"body": [
{
"type": "tpl",
"tpl": "对,你刚刚点击了${grade}",
"wrapperComponent": "h1",
"inline": false,
"id": "u:3ade54ce21a2"
}
],
"dialogType": "confirm",
"confirmText": "确认",
"cancelText": "取消",
"confirmBtnLevel": "primary",
"id": "u:2885bb71d694",
"actions": [
{
"type": "button",
"actionType": "cancel",
"label": "取消"
},
{
"type": "button",
"actionType": "confirm",
"label": "确定",
"primary": true
}
]
}
}
]
}
},
"autoFill": {
}
}
],
"syncResponse2Query": false,
"primaryField": "id"
}
- 操作步骤
打开之后直接点下一页,然后再返回上一页之后点击开关,然后弹出dialog确认框,dialog确认框里面获取到的数据还是旧行的数据
1条答案
按热度按时间klr1opcd1#
👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.