Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curd saveOrderApi 取不到${page}等内置变量 #11416

Open
cybexr opened this issue Dec 21, 2024 · 0 comments
Open

curd saveOrderApi 取不到${page}等内置变量 #11416

cybexr opened this issue Dec 21, 2024 · 0 comments

Comments

@cybexr
Copy link

cybexr commented Dec 21, 2024

描述问题:

crud 的saveOrderApi 中,取不到 $page 等crud的

                "type": "crud",
                "name": "detailCRUD",
                "data": {
                    "dict_id": "${dict_id}", "dict_name": "${dict_name}", 
                    "page": "${page}", "perPage": "${perPage}"},

                "saveOrderApi": {
                    "method": "post",
                    "url": "/api/v1/save_abdictitem_order",
                    "data": {
                        "ids": "${ids}",
                        "test": "abc",
                        "dict_id": "${dict_id}",
                        "page": "${page}",
                        "perPage": "${perPage}"
                    },
                    "requestAdaptor": "console.log(context); return { ...api, data: { ...api.data, foo: 'bar' } }; "                   
                },

排序后提交 发送到后端的body
{"ids":"2,1,3,4,5,6,7,8,11,12","test":"abc","dict_id":"","page":"","perPage":"","foo":"bar"}

这是 console中的 context
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant