amis icon indicating copy to clipboard operation
amis copied to clipboard

快速编辑保存功能非常慢,是否可以优化

Open zengqinchris opened this issue 6 years ago • 2 comments

实现场景:

image

存在的问题:

编辑多条数据后,保存非常缓慢,是否可以优化

image

当前方案:

"body": {
        "type": "crud",
        "api": "https://houtai.baidu.com/api/sample?waitSeconds=1",
        "quickSaveApi": "https://houtai.baidu.com/api/sample/bulkUpdate",
        "columns": [
            {
                "name": "id",
                "label": "ID"
            },
            {
                "name": "event_number",
                "label": "点位",
                "sortable": true,
                "type": "text",
                "toggled": true,
                "quickEdit": {
                    "mode": "inline",
                    "type": "number",
                    "required": true,
                    "value": 1,
                    "toggled": true,
                    "min": 1,
                    "max": 1000,
                },
            },
{
                "name": "event_side",
                "label": "埋点端",
                "sortable": true,
                "type": "text",
                "toggled": true,
                "quickEdit": {
                    "mode": "inline",
                    "type": "select",
                    "required": true,
                    "options": [
                        {
                            "label": "客户端",
                            "value": "client"
                        },
                        {
                            "label": "服务端",
                            "value": "server"
                        },
                        {
                            "label": "H5",
                            "value": "H5"
                        }
                    ]
                },
            },
        ]
    }
}

zengqinchris avatar Sep 09 '20 01:09 zengqinchris

我这里看还好,console有报错么 或者 network面板有啥问题么

RickCole21 avatar Sep 14 '20 03:09 RickCole21

无反馈,先关了

RickCole21 avatar Nov 27 '20 09:11 RickCole21