- Hide pricing_data (YAML text) from list columns - Add '定价数据' tool button to toolbar - Open PopupWindow showing pricing_data content via pricing_data_display.ui - Register new path in load_path.py
36 lines
1.0 KiB
XML
36 lines
1.0 KiB
XML
{% set sor = db.sqlorContext() %}
|
|
{% set row = sor.execute_sql('select name, pricing_data from pricing_program_timing where id = ${id}$').first() %}
|
|
{% set pricing_data = row.pricing_data if row and row.pricing_data else '' %}
|
|
{% set record_name = row.name if row else '' %}
|
|
{
|
|
"widgettype": "VScrollPanel",
|
|
"options": {
|
|
"width": "100%",
|
|
"height": "100%"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"padding": "16px",
|
|
"spacing": 12
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Title4",
|
|
"options": {
|
|
"text": "{{ record_name }}"
|
|
}
|
|
},
|
|
{
|
|
"widgettype": "Text",
|
|
"options": {
|
|
"text": {{ pricing_data | tojson }}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|