fix: Text widgets use 'text' not 'label', Button widgets use 'label' not 'text'
Per bricks-framework spec: - Text/Title: use 'text' for non-i18n, 'otext'+'i18n:true' for i18n - Button: use 'label' for button text
This commit is contained in:
parent
9ebfeb6dda
commit
94f258a345
@ -15,12 +15,12 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Button",
|
"widgettype": "Button",
|
||||||
"options": {
|
"options": {
|
||||||
"text": "返回列表",
|
|
||||||
"styleType": "default",
|
"styleType": "default",
|
||||||
"style": {
|
"style": {
|
||||||
"marginLeft": "20px",
|
"marginLeft": "20px",
|
||||||
"marginTop": "8px"
|
"marginTop": "8px"
|
||||||
}
|
},
|
||||||
|
"label": "返回列表"
|
||||||
},
|
},
|
||||||
"binds": [
|
"binds": [
|
||||||
{
|
{
|
||||||
@ -40,12 +40,12 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Button",
|
"widgettype": "Button",
|
||||||
"options": {
|
"options": {
|
||||||
"text": "编辑合同",
|
|
||||||
"styleType": "primary",
|
"styleType": "primary",
|
||||||
"style": {
|
"style": {
|
||||||
"marginRight": "20px",
|
"marginRight": "20px",
|
||||||
"marginTop": "8px"
|
"marginTop": "8px"
|
||||||
}
|
},
|
||||||
|
"label": "编辑合同"
|
||||||
},
|
},
|
||||||
"binds": [
|
"binds": [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,20 +2,59 @@
|
|||||||
"widgettype": "Page",
|
"widgettype": "Page",
|
||||||
"options": {
|
"options": {
|
||||||
"title": "合同管理",
|
"title": "合同管理",
|
||||||
"style": {"height": "100vh", "padding": "0"}
|
"style": {
|
||||||
|
"height": "100vh",
|
||||||
|
"padding": "0"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"subwidgets": [
|
"subwidgets": [
|
||||||
{
|
{
|
||||||
"widgettype": "VBox",
|
"widgettype": "VBox",
|
||||||
"options": {"style": {"padding": "16px", "flex": 1, "overflow": "hidden"}},
|
"options": {
|
||||||
|
"style": {
|
||||||
|
"padding": "16px",
|
||||||
|
"flex": 1,
|
||||||
|
"overflow": "hidden"
|
||||||
|
}
|
||||||
|
},
|
||||||
"subwidgets": [
|
"subwidgets": [
|
||||||
{
|
{
|
||||||
"widgettype": "HBox",
|
"widgettype": "HBox",
|
||||||
"options": {"style": {"marginBottom": "16px", "gap": "8px"}},
|
"options": {
|
||||||
|
"style": {
|
||||||
|
"marginBottom": "16px",
|
||||||
|
"gap": "8px"
|
||||||
|
}
|
||||||
|
},
|
||||||
"subwidgets": [
|
"subwidgets": [
|
||||||
{"widgettype": "TextField", "id": "search_keyword", "options": {"label": "搜索", "placeholder": "合同编号/名称", "style": {"flex": 1}}},
|
{
|
||||||
{"widgettype": "Button", "id": "btn_search", "options": {"text": "搜索", "variant": "primary"}},
|
"widgettype": "TextField",
|
||||||
{"widgettype": "Button", "id": "btn_add", "options": {"text": "新增", "variant": "primary", "action": "navigate('main/contract_management/contract_edit.ui')"}}
|
"id": "search_keyword",
|
||||||
|
"options": {
|
||||||
|
"label": "搜索",
|
||||||
|
"placeholder": "合同编号/名称",
|
||||||
|
"style": {
|
||||||
|
"flex": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"widgettype": "Button",
|
||||||
|
"id": "btn_search",
|
||||||
|
"options": {
|
||||||
|
"variant": "primary",
|
||||||
|
"label": "搜索"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"widgettype": "Button",
|
||||||
|
"id": "btn_add",
|
||||||
|
"options": {
|
||||||
|
"variant": "primary",
|
||||||
|
"action": "navigate('main/contract_management/contract_edit.ui')",
|
||||||
|
"label": "新增"
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -23,22 +62,75 @@
|
|||||||
"id": "contract_grid",
|
"id": "contract_grid",
|
||||||
"options": {
|
"options": {
|
||||||
"url": "{{entire_url('api/contract_list.dspy')}}",
|
"url": "{{entire_url('api/contract_list.dspy')}}",
|
||||||
"style": {"flex": 1},
|
"style": {
|
||||||
|
"flex": 1
|
||||||
|
},
|
||||||
"columns": [
|
"columns": [
|
||||||
{"field": "contract_number", "header": "合同编号", "width": 140},
|
{
|
||||||
{"field": "title", "header": "合同名称", "width": 200},
|
"field": "contract_number",
|
||||||
{"field": "party_a", "header": "甲方", "width": 150},
|
"header": "合同编号",
|
||||||
{"field": "party_b", "header": "乙方", "width": 150},
|
"width": 140
|
||||||
{"field": "contract_type", "header": "类型", "width": 100},
|
},
|
||||||
{"field": "amount", "header": "金额", "width": 120},
|
{
|
||||||
{"field": "start_date", "header": "开始日期", "width": 110},
|
"field": "title",
|
||||||
{"field": "end_date", "header": "结束日期", "width": 110},
|
"header": "合同名称",
|
||||||
{"field": "status", "header": "状态", "width": 90}
|
"width": 200
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"field": "party_a",
|
||||||
|
"header": "甲方",
|
||||||
|
"width": 150
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"field": "party_b",
|
||||||
|
"header": "乙方",
|
||||||
|
"width": 150
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"field": "contract_type",
|
||||||
|
"header": "类型",
|
||||||
|
"width": 100
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"field": "amount",
|
||||||
|
"header": "金额",
|
||||||
|
"width": 120
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"field": "start_date",
|
||||||
|
"header": "开始日期",
|
||||||
|
"width": 110
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"field": "end_date",
|
||||||
|
"header": "结束日期",
|
||||||
|
"width": 110
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"field": "status",
|
||||||
|
"header": "状态",
|
||||||
|
"width": 90
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"toolbar": [
|
"toolbar": [
|
||||||
{"type": "button", "text": "详情", "icon": "view", "action": "navigate('main/contract_management/contract_detail.ui?id={% raw %}{{selectedRow.id}}{% endraw %}')"},
|
{
|
||||||
{"type": "button", "text": "编辑", "icon": "edit", "action": "navigate('main/contract_management/contract_edit.ui?id={% raw %}{{selectedRow.id}}{% endraw %}')"},
|
"type": "button",
|
||||||
{"type": "button", "text": "删除", "icon": "delete", "action": "doDelete('{% raw %}{{selectedRow.id}}{% endraw %}')"}
|
"text": "详情",
|
||||||
|
"icon": "view",
|
||||||
|
"action": "navigate('main/contract_management/contract_detail.ui?id={% raw %}{{selectedRow.id}}{% endraw %}')"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "button",
|
||||||
|
"text": "编辑",
|
||||||
|
"icon": "edit",
|
||||||
|
"action": "navigate('main/contract_management/contract_edit.ui?id={% raw %}{{selectedRow.id}}{% endraw %}')"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "button",
|
||||||
|
"text": "删除",
|
||||||
|
"icon": "delete",
|
||||||
|
"action": "doDelete('{% raw %}{{selectedRow.id}}{% endraw %}')"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,11 +10,11 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "合同管理",
|
|
||||||
"fontSize": "24px",
|
"fontSize": "24px",
|
||||||
"fontWeight": "bold",
|
"fontWeight": "bold",
|
||||||
"color": "#1E40AF",
|
"color": "#1E40AF",
|
||||||
"marginBottom": "20px"
|
"marginBottom": "20px",
|
||||||
|
"text": "合同管理"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -49,19 +49,19 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "合同列表",
|
|
||||||
"fontSize": "18px",
|
"fontSize": "18px",
|
||||||
"fontWeight": "bold",
|
"fontWeight": "bold",
|
||||||
"color": "#1E40AF"
|
"color": "#1E40AF",
|
||||||
|
"text": "合同列表"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "查看所有合同及执行状态",
|
|
||||||
"fontSize": "14px",
|
"fontSize": "14px",
|
||||||
"color": "#6B7280",
|
"color": "#6B7280",
|
||||||
"marginTop": "8px"
|
"marginTop": "8px",
|
||||||
|
"text": "查看所有合同及执行状态"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -91,19 +91,19 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "新建合同",
|
|
||||||
"fontSize": "18px",
|
"fontSize": "18px",
|
||||||
"fontWeight": "bold",
|
"fontWeight": "bold",
|
||||||
"color": "#059669"
|
"color": "#059669",
|
||||||
|
"text": "新建合同"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "创建新的合同记录",
|
|
||||||
"fontSize": "14px",
|
"fontSize": "14px",
|
||||||
"color": "#6B7280",
|
"color": "#6B7280",
|
||||||
"marginTop": "8px"
|
"marginTop": "8px",
|
||||||
|
"text": "创建新的合同记录"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -133,19 +133,19 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "合同详情",
|
|
||||||
"fontSize": "18px",
|
"fontSize": "18px",
|
||||||
"fontWeight": "bold",
|
"fontWeight": "bold",
|
||||||
"color": "#D97706"
|
"color": "#D97706",
|
||||||
|
"text": "合同详情"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "查看合同详细信息及里程碑",
|
|
||||||
"fontSize": "14px",
|
"fontSize": "14px",
|
||||||
"color": "#6B7280",
|
"color": "#6B7280",
|
||||||
"marginTop": "8px"
|
"marginTop": "8px",
|
||||||
|
"text": "查看合同详细信息及里程碑"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -175,19 +175,19 @@
|
|||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "AI配置",
|
|
||||||
"fontSize": "18px",
|
"fontSize": "18px",
|
||||||
"fontWeight": "bold",
|
"fontWeight": "bold",
|
||||||
"color": "#7C3AED"
|
"color": "#7C3AED",
|
||||||
|
"text": "AI配置"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"widgettype": "Text",
|
"widgettype": "Text",
|
||||||
"options": {
|
"options": {
|
||||||
"label": "合同AI分析配置",
|
|
||||||
"fontSize": "14px",
|
"fontSize": "14px",
|
||||||
"color": "#6B7280",
|
"color": "#6B7280",
|
||||||
"marginTop": "8px"
|
"marginTop": "8px",
|
||||||
|
"text": "合同AI分析配置"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user