qyweixin Selector

This commit is contained in:
jiangyong 2025-06-01 13:15:59 +08:00
parent 1ddf30a9ca
commit 54821df68a
1 changed files with 5 additions and 1 deletions

View File

@ -104,7 +104,11 @@ func (d *ApproveDetail) GetValue(title string) string {
var value string var value string
if content.Control == "Selector" { if content.Control == "Selector" {
value = content.Value.Selector.Options[0].Value[0].Text for _, v := range content.Value.Selector.Options[0].Value {
if v.Text != "" {
value = v.Text
}
}
} else if content.Control == "Text" || content.Control == "Textarea" { } else if content.Control == "Text" || content.Control == "Textarea" {
value = content.Value.Text value = content.Value.Text
} else if content.Control == "Date" { } else if content.Control == "Date" {