| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- declare(strict_types=1);
- return json_decode(<<<'JSON'
- [
- {
- "type": "checkbox",
- "field": "pay_type",
- "title": "支付方式",
- "info": "这里可以开启关闭支付方式",
- "effect": {
- "fetch": {
- "action": "{{API_BASE_URL}}/admin/payment",
- "method": "GET",
- "dataType": "json",
- "headers": {
- "Authorization": "Bearer {{API_TOKEN}}"
- },
- "query": {},
- "data": {},
- "parse": "[[FORM-CREATE-PREFIX-function (res, rule, api){\nreturn res.data.map(item => ({\n value: item.id,\n label: item.name\n}))\n}-FORM-CREATE-SUFFIX]]",
- "beforeFetch": "",
- "onError": "",
- "to": "options"
- }
- },
- "$required": false,
- "props": {
- "_optionType": 1
- },
- "_fc_id": "id_Fpr6mdk6u0kpafc",
- "name": "ref_Forzmdk6u0kpagc",
- "display": true,
- "hidden": false,
- "_fc_drag_tag": "checkbox"
- }
- ]
- JSON,true);
|