fix: deep-flatten all style objects to options at any nesting level
- Flatten style in widget root, options, and nested structures (row_options.fields etc.)
This commit is contained in:
parent
b673139d73
commit
617accf97a
@ -155,11 +155,9 @@
|
||||
"widgettype": "Button",
|
||||
"options": {
|
||||
"label": "提交",
|
||||
"style": {
|
||||
"backgroundColor": "#007bff",
|
||||
"color": "#fff"
|
||||
},
|
||||
"onclick": "submitForm('newInstanceForm', '/main/workflow_approval/api/instance_create.dspy', 'newInstanceDialog', null)"
|
||||
"onclick": "submitForm('newInstanceForm', '/main/workflow_approval/api/instance_create.dspy', 'newInstanceDialog', null)",
|
||||
"backgroundColor": "#007bff",
|
||||
"color": "#fff"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -114,22 +114,18 @@
|
||||
"widgettype": "Button",
|
||||
"options": {
|
||||
"label": "拒绝",
|
||||
"style": {
|
||||
"backgroundColor": "#dc3545",
|
||||
"color": "#fff"
|
||||
},
|
||||
"onclick": "submitForm('approveForm', '/main/workflow_approval/api/task_reject.dspy', 'approveDialog', null)"
|
||||
"onclick": "submitForm('approveForm', '/main/workflow_approval/api/task_reject.dspy', 'approveDialog', null)",
|
||||
"backgroundColor": "#dc3545",
|
||||
"color": "#fff"
|
||||
}
|
||||
},
|
||||
{
|
||||
"widgettype": "Button",
|
||||
"options": {
|
||||
"label": "批准",
|
||||
"style": {
|
||||
"backgroundColor": "#28a745",
|
||||
"color": "#fff"
|
||||
},
|
||||
"onclick": "submitForm('approveForm', '/main/workflow_approval/api/task_approve.dspy', 'approveDialog', null)"
|
||||
"onclick": "submitForm('approveForm', '/main/workflow_approval/api/task_approve.dspy', 'approveDialog', null)",
|
||||
"backgroundColor": "#28a745",
|
||||
"color": "#fff"
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -169,9 +165,7 @@
|
||||
"widgettype": "Text",
|
||||
"options": {
|
||||
"text": "步骤: ",
|
||||
"style": {
|
||||
"fontWeight": "bold"
|
||||
}
|
||||
"fontWeight": "bold"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -193,9 +187,7 @@
|
||||
"widgettype": "Text",
|
||||
"options": {
|
||||
"text": "审批类型: ",
|
||||
"style": {
|
||||
"fontWeight": "bold"
|
||||
}
|
||||
"fontWeight": "bold"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -217,9 +209,7 @@
|
||||
"widgettype": "Text",
|
||||
"options": {
|
||||
"text": "分配时间: ",
|
||||
"style": {
|
||||
"fontWeight": "bold"
|
||||
}
|
||||
"fontWeight": "bold"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -241,9 +231,7 @@
|
||||
"widgettype": "Text",
|
||||
"options": {
|
||||
"text": "截止时间: ",
|
||||
"style": {
|
||||
"fontWeight": "bold"
|
||||
}
|
||||
"fontWeight": "bold"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -276,11 +264,9 @@
|
||||
"widgettype": "Button",
|
||||
"options": {
|
||||
"label": "去审批",
|
||||
"style": {
|
||||
"backgroundColor": "#007bff",
|
||||
"color": "#fff"
|
||||
},
|
||||
"onclick": "closeDialog('taskDetailDialog'); openDialog('approveDialog'); setDialogField('approveDialog', 'task_id', getDialogField('taskDetailDialog', 'task_id')); setDialogField('approveDialog', 'task_title', getDialogField('taskDetailDialog', 'task_title'))"
|
||||
"onclick": "closeDialog('taskDetailDialog'); openDialog('approveDialog'); setDialogField('approveDialog', 'task_id', getDialogField('taskDetailDialog', 'task_id')); setDialogField('approveDialog', 'task_title', getDialogField('taskDetailDialog', 'task_title'))",
|
||||
"backgroundColor": "#007bff",
|
||||
"color": "#fff"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user