如何从模态和表单中编辑和更新蚂蚁设计表的数据

发布于 2025-02-09 15:22:57 字数 728 浏览 1 评论 0原文

我在这里有问题,任何人都可以帮助我吗?我在这里在蚂蚁设计表上遇到了麻烦,在此表数据中,我想创建,读取,更新和删除数据。创建,阅读和删除一直很好,我可以成功地做到这一点,但是在编辑数据上,我无法弄清楚。

数据已经通过Axios获取并获取,并将其填充到表中。

要在按钮“添加新数据”按钮时创建数据,将会有一种模式,其形式的形式如下图。

“模态弹出”

删除数据,将按钮按下删除按钮。还可以弹出确认

。 gv9e4.png“ alt =” delete确认“>

我可以成功地做到这一点,但是在编辑数据上,我无法弄清楚如何。因为我无法获取数据并更新了数据。请帮助我,这是沙盒代码 https://codesandbox.io/ s/cattledata-9l2irf?file =/src/cattledata.js

谢谢您,我感谢您的帮助。

I have a problem here please anyone can help me? I have a trouble with Ant Design table here, in this table data I wanted to Create, Read, Update and Delete a data. Create, Read and Delete has been good and I can do it successfully, but on Edit data I couldn't figure it out.

The Data is already get and fetch by axios and fill it into the table.

To Create data when button "Add New Data' is pushed, there will be pop out a modals with form of creating new data like this picture below.

modals Pop Out

To Delete a data, when Delete Button is pushed there will be also pop out a confirmation pop out.

Delete confirmation

From this I can do it successfully, but on Edit data I couldn't figure it out how. Because I couldn't get the data and updated it. Please help me, and here's the sandbox code https://codesandbox.io/s/cattledata-9l2irf?file=/src/CattleData.js

Thank you and I would appreciate any helps.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文