This commit is contained in:
jiangyong 2025-08-20 11:54:32 +08:00
parent dac74d1a31
commit 38f925a259
1 changed files with 3 additions and 1 deletions

View File

@ -157,7 +157,9 @@ func (d *ApproveDetail) GetData() map[string]string {
} else if content.Control == "Money" {
value = content.Value.NewMoney
} else if content.Control == "File" {
value = content.Value.Files[0].FileId
if len(content.Value.Files) > 0 {
value = content.Value.Files[0].FileId
}
} else if content.Control == "Vacation" { //请假 请假类型,开始时间,结束时间,请假时长
tp := content.Value.Vacation.Selector.Options[0].Value[0].Text
value = tp + "," + cast.ToString(content.Value.Vacation.Attendance.DateRange.NewBegin) +