refactor: failed_accounting.ui改用InlineForm简化过滤栏
This commit is contained in:
parent
a70933c44c
commit
335a06d5ea
@ -18,82 +18,63 @@
|
|||||||
"widgettype": "HBox",
|
"widgettype": "HBox",
|
||||||
"options": {
|
"options": {
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
"spacing": 12,
|
"spacing": 8,
|
||||||
"alignItems": "flex-end"
|
"alignItems": "flex-end"
|
||||||
},
|
},
|
||||||
"subwidgets": [
|
"subwidgets": [
|
||||||
{
|
{
|
||||||
"widgettype": "VBox",
|
"widgettype": "InlineForm",
|
||||||
"options": {"spacing": 4},
|
"id": "filter_form",
|
||||||
"subwidgets": [
|
|
||||||
{"widgettype": "Text", "options": {"text": "开始日期", "fontSize": "12px"}},
|
|
||||||
{"widgettype": "UiDate", "id": "start_date", "options": {"cwidth": 10}}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"widgettype": "VBox",
|
|
||||||
"options": {"spacing": 4},
|
|
||||||
"subwidgets": [
|
|
||||||
{"widgettype": "Text", "options": {"text": "结束日期", "fontSize": "12px"}},
|
|
||||||
{"widgettype": "UiDate", "id": "end_date", "options": {"cwidth": 10}}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"widgettype": "VBox",
|
|
||||||
"options": {"spacing": 4},
|
|
||||||
"subwidgets": [
|
|
||||||
{"widgettype": "Text", "options": {"text": "处理状态", "fontSize": "12px"}},
|
|
||||||
{
|
|
||||||
"widgettype": "UiCode",
|
|
||||||
"id": "handled_filter",
|
|
||||||
"options": {
|
"options": {
|
||||||
|
"css": "card",
|
||||||
|
"padding": "8px",
|
||||||
|
"show_label": true,
|
||||||
|
"submit_label": "查询",
|
||||||
|
"submit_css": "primary",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "start_date",
|
||||||
|
"label": "开始日期",
|
||||||
|
"uitype": "date",
|
||||||
|
"cwidth": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "end_date",
|
||||||
|
"label": "结束日期",
|
||||||
|
"uitype": "date",
|
||||||
|
"cwidth": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "handled",
|
||||||
|
"label": "处理状态",
|
||||||
|
"uitype": "code",
|
||||||
"cwidth": 8,
|
"cwidth": 8,
|
||||||
"data": [
|
"codes": [
|
||||||
{"value": "", "text": "全部"},
|
{"value": "", "text": "全部"},
|
||||||
{"value": "0", "text": "未处理"},
|
{"value": "0", "text": "未处理"},
|
||||||
{"value": "1", "text": "已处理"}
|
{"value": "1", "text": "已处理"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"binds": [
|
||||||
{
|
{
|
||||||
"widgettype": "VBox",
|
|
||||||
"options": {"spacing": 4},
|
|
||||||
"subwidgets": [
|
|
||||||
{"widgettype": "Text", "options": {"text": "", "fontSize": "12px"}},
|
|
||||||
{
|
|
||||||
"widgettype": "Button",
|
|
||||||
"id": "search_btn",
|
|
||||||
"options": {
|
|
||||||
"label": "查询",
|
|
||||||
"bgcolor": "#1976d2",
|
|
||||||
"color": "#ffffff",
|
|
||||||
"cwidth": 5
|
|
||||||
},
|
|
||||||
"binds": [{
|
|
||||||
"wid": "self",
|
"wid": "self",
|
||||||
"event": "click",
|
"event": "submit",
|
||||||
"actiontype": "script",
|
"actiontype": "method",
|
||||||
"target": "body.failed_table",
|
"target": "failed_table",
|
||||||
"script": "var root = bricks.app.root; var sd = bricks.getWidgetById('start_date', root); var ed = bricks.getWidgetById('end_date', root); var hf = bricks.getWidgetById('handled_filter', root); var params = {}; if(hf && hf.getValue()) params.handled = hf.getValue(); if(sd && sd.getValue()) params.start_date = sd.getValue(); if(ed && ed.getValue()) params.end_date = ed.getValue(); await this.render(params);"
|
"method": "render"
|
||||||
}]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"widgettype": "VBox",
|
|
||||||
"options": {"spacing": 4},
|
|
||||||
"subwidgets": [
|
|
||||||
{"widgettype": "Text", "options": {"text": "", "fontSize": "12px"}},
|
|
||||||
{
|
{
|
||||||
"widgettype": "Button",
|
"widgettype": "Button",
|
||||||
"id": "retry_btn",
|
"id": "retry_btn",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "重试",
|
"label": "重试记账",
|
||||||
"bgcolor": "#4caf50",
|
"bgcolor": "#4caf50",
|
||||||
"color": "#ffffff",
|
"color": "#ffffff",
|
||||||
"cwidth": 5
|
"cwidth": 6
|
||||||
},
|
},
|
||||||
"binds": [{
|
"binds": [{
|
||||||
"wid": "self",
|
"wid": "self",
|
||||||
@ -104,8 +85,6 @@
|
|||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "DataViewer",
|
"widgettype": "DataViewer",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user