优化请假
This commit is contained in:
1 parent
51b466d4ab
commit
5e21ce46d1
2 files changed
+5
-42
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user