qyweixin Selector
This commit is contained in:
parent
1ddf30a9ca
commit
54821df68a
|
@ -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" {
|
||||||
|
|
Loading…
Reference in New Issue