优化请假

This commit is contained in:
runny committed 2026-05-19 17:12:04 +08:00
1 parent 51b466d4ab
commit 5e21ce46d1
2 files changed
+5 -42

No files matched your search

+5 -3
View File
@@ -244,9 +244,11 @@ class OALeaveWorkflowService:
show_node = ET.SubElement(field, f'{{{WORKFLOW_NS}}}fieldShowValue')
show_node.text = str(show_value)
filed_html_node = field.find('wf:filedHtmlShow', NS)
if filed_html_node is not None:
filed_html_node.text = str(show_value)
field_html_type = (field.findtext('wf:fieldHtmlType', default='', namespaces=NS) or '').strip()
if field_html_type == '3':
filed_html_node = field.find('wf:filedHtmlShow', NS)
if filed_html_node is not None:
filed_html_node.text = str(show_value)
for tag in ['edit', 'view']:
node = field.find(f'wf:{tag}', NS)