yao/tests/dyforms/website.form.json
2022-08-05 19:46:26 +08:00

77 lines
1.8 KiB
JSON

{
"guard": "bearer-jwt",
"title": "官网表单",
"sn": "AP2048",
"orign": "官方网站",
"columns": [
{
"name": "门店",
"field": "store_id",
"searchable": true,
"props": {
"value": ":store_id",
"type": "SelectStore",
"title": "门店",
"placeholder": "请选择门店",
"validation": [
{ "type": "Required" },
{ "type": "StoreStatus", "args": [":store_id"] }
]
}
},
{
"name": "订单数量",
"field": "orders_amount",
"searchable": true,
"props": {
"value": ":orders_amount",
"type": "Number",
"title": "订单数量",
"placeholder": "今日订单数量",
"computed": "OrderAmount",
"validation": [
{ "type": "Required" },
{ "type": "IsNumber", "args": [":orders_amount"] }
]
}
},
{
"name": "账单地址",
"field": "address",
"props": {
"value": ":address",
"type": "Text",
"title": "账单地址",
"placeholder": "填写账单地址",
"validation": [
{ "type": "Required" },
{ "type": "MaxLength", "args": [":address", 200] }
]
}
}
],
"filters": [
{
"订单数量": {
"label": "订单数量超过",
"bind": "where.orders_amount.ge",
"type": "Select",
"props": {
"placeholder": "订单数量",
"options": [
{ "label": "大于100", "value": 100 },
{ "label": "大于50", "value": 50 }
]
}
}
}
],
"list-layout": {
"columns": [
{ "name": "store_id" },
{ "name": "orders_amount" },
{ "name": "address" }
],
"filters": [{ "name": "订单数量" }]
}
}