类似于客户中的一个->编辑。我想出了如何创建它(在system.xml中):
<system>
<tab id="example_tab" sortOrder="10">
<label>MYModule</label>
</tab>
<section id="example_section" translate="label" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Example config section</label>
<tab>example_tab</tab>
<resource>MYModule_SendCoupon::config</resource>
<group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Partner Informations</label>
<field id="name" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Name</label>
<validate>required-entry validate-number</validate>
</field>
</group>
</section>
</system>
但是我不知道如何以我的形式显示它。建议?
UI组件这是中等的指南https://medium.com/@jhonkelly2016/how-to-create-admin-grid-in-magento-2-9f39d052322d您也可以查看magento的官方指南以了解更多信息https://devdocs.magento.com/guides/v2.3/ui_comp_guide/bk-ui_comps.html