baidu / baidu/amis

【bug】crud在点击下一页之后再点上一页 column下的开关 dialog确认框获取到的还是旧行的数据

Open
#8,933 2 comments 0 reactions 1 assignee Claimed by @hsm-lv View on GitHub
bug need confirm
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

#### 描述问题:

crud在点击下一页之后再点上一页 column下的开关 dialog确认框获取到的还是旧行的数据

#### 截图或视频:

![动画2](https://github.com/baidu/amis/assets/105107916/f3370281-3516-4e2d-b38f-70239f9e57e3)

#### 如何复现(请务必完整填写下面内容):

1. 你是如何使用 amis 的?
`sdk`

2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
v3.5.3

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"
}
```

4. 操作步骤
打开之后直接点下一页,然后再返回上一页之后点击开关,然后弹出dialog确认框,dialog确认框里面获取到的数据还是旧行的数据

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.