LEIYI 5 months ago
parent
commit
3a99345530

+ 29 - 1
OASystem/OASystem.Domain/ViewModels/Groups/InvitationOfficialActivitiesView.cs

@@ -1,4 +1,6 @@
-using System;
+using EyeSoft.Collections.Generic;
+using Newtonsoft.Json;
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -89,6 +91,32 @@ namespace OASystem.Domain.ViewModels.Groups
         /// </summary>
         public string Attachment { get; set; }
 
+
+        /// <summary>
+        /// 附件
+        /// </summary>
+        public string[] Attachments
+        {
+            get
+            {
+                var array = new string[] { };
+
+                if (!string.IsNullOrEmpty(Attachment))
+                {
+                    try
+                    {
+                        array = JsonConvert.DeserializeObject<string[]>(Attachment);
+                    }
+                    catch (Exception)
+                    {
+
+                        array.AddRange(new string[] { Attachment });
+                    }
+                }
+                return array;
+            }
+        }
+
         /// <summary>
         /// 是否审核
         /// </summary>