amis crud编辑后点击保存提示页面不消失

hs1rzwqc  于 22天前  发布在  其他
关注(0)|答案(2)|浏览(35)
描述问题:

crud修改数据之后,点击保存后,提示一直停留在页面不消失。

截图或视频:

如何复现(请务必完整填写下面内容):
  1. 你是如何使用 amis 的?
    sdk
  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    6.1.0
  3. 粘贴有问题的完整 amis schema 代码:
code here...
  1. 操作步骤
  2. 修改表格内任意信息
  3. 弹出保存提示后,点击【提交】按钮
  4. 再次点击提示按钮,提示按钮不消失,一直保留在页面
qoefvg9y

qoefvg9y1#

无法复现,能否提供问题 schema?

b0zn9rqh

b0zn9rqh2#

无法复现,能否提供问题 schema?

{
  "type": "page",
  "body": {
    "type": "tabs",
    "tabs": [
      {
        "title": "动态设置",
        "subTitle": "返回表格数据的同时返回列信息",
        "body": [
          {
            "type": "crud",
            "quickSaveApi": "post:/boss/custom-api/set-platform-quantity?isDynamic=1",
            "api": "get:/boss/custom-api/set-platform-quantity?isDynamic=1",
            "pageField": "_page",
            "syncLocation": false,
            "defaultParams": {
              "perPage": 20
            },
            "headerToolbar": [
              {
                "label": "同步静态设置",
                "type": "button",
                "actionType": "ajax",
                "level": "primary",
                "confirmText": "是否将当前设置数值与静态设置同步",
                "api": "post:/boss/custom-api/set-platform-quantity?isSync=1"
              }
            ],
            "filter": {
              "title": null,
              "controls": [
                {
                  "label": "姓名", 
                  "type": "text",
                  "name": "__name",
                  "clearable": true
                },
                {
                  "label": "角色",
                  "type": "select",
                  "size": "md",
                  "source": "/boss/custom-data/23/list?status=1&_from=getOptions&fields={id%2Cname}&roleGroup=岗位",
                  "labelField": "name",
                  "valueField": "id",
                  "name": "__roleId",
                  "clearable": true
                },
                {
                  "label": "部门",
                  "type": "nested-select",
                  "cascade": true,
                  "size": "md",
                  "hideNodePathLabel": false,
                  "source": "/boss/custom-data/22/list?status=1&_from=getOptions&fields={id,name}",
                  "multiple": false,
                  "labelField": "name",
                  "valueField": "id",
                  "name": "__deptId",
                  "clearable": true
                }
              ],
              "actions": [
                {
                  "type": "button",
                  "actionType": "clear",
                  "label": "清空",
                  "level": "light"
                },
                {
                  "type": "submit",
                  "label": "搜索",
                  "level": "primary"
                }
              ]
            }
          }
        ]
      },
      {
        "title": "静态设置",
        "subTitle": "返回表格数据的同时返回列信息",
        "body": [
          {
            "type": "crud",
            "quickSaveApi": "post:/boss/custom-api/set-platform-quantity?isDynamic=0",
            "api": "get:/boss/custom-api/set-platform-quantity?isDynamic=0",
            "pageField": "_page",
            "syncLocation": false,
            "defaultParams": {
              "perPage": 20
            },
            "headerToolbar": [],
            "filter": {
              "title": null,
              "controls": [
                {
                  "label": "姓名",
                  "type": "text",
                  "name": "__name",
                  "clearable": true
                },
                {
                  "label": "角色",
                  "type": "select",
                  "size": "md",
                  "source": "/boss/custom-data/23/list?status=1&_from=getOptions&fields={id%2Cname}&roleGroup=岗位",
                  "labelField": "name",
                  "valueField": "id",
                  "name": "__roleId",
                  "clearable": true
                },
                {
                  "label": "部门",
                  "type": "nested-select",
                  "cascade": true,
                  "size": "md",
                  "hideNodePathLabel": false,
                  "source": "/boss/custom-data/22/list?status=1&_from=getOptions&fields={id,name}",
                  "multiple": false,
                  "labelField": "name",
                  "valueField": "id",
                  "name": "__deptId",
                  "clearable": true
                }
              ],
              "actions": [
                {
                  "type": "button",
                  "actionType": "clear",
                  "label": "清空",
                  "level": "light"
                },
                {
                  "type": "submit",
                  "label": "搜索",
                  "level": "primary"
                }
              ]
            }
          }
        ]
      }
    ]
  }
}

数据源需要替换一下

相关问题