提交当前本机整理版本

This commit is contained in:
cyf
2026-07-02 10:11:39 +00:00
parent c10a5d64c7
commit aacefa24f8
822 changed files with 196665 additions and 14263 deletions
+27 -1
View File
@@ -84,4 +84,30 @@ namespace Lskj.Control
if (FocusedColumn.Tag != null && FocusedColumn.Tag is GridColumnModel columnModel)
{
// 读取图片URL(同右侧逻辑,兼容 TreeList 数据行)
string imageUrl = FocusedRow.Table.Columns.Contains(columnModel.FieldName)
string imageUrl = FocusedRow.Table.Columns.Contains(columnModel.FieldName)
? FocusedRow[columnModel.FieldName] + ""
: "";
if (string.IsNullOrEmpty(imageUrl))
return;
// 补全URL(保持原有逻辑)
if (!imageUrl.StartsWith("http"))
{
string oaUrl = SystemInfo.Instance.OAUrl.EndsWith("/")
? SystemInfo.Instance.OAUrl
: $"{SystemInfo.Instance.OAUrl}/";
imageUrl = $"{oaUrl}{imageUrl}";
}
// 从列模型缓存中获取图片(保持原有逻辑)
if (columnModel.LabPicUrlImages.ContainsKey(imageUrl))
{
Image image = ((KeyValuePair<Image, Image>)columnModel.LabPicUrlImages[imageUrl]).Key;
Picture = image;
}
}
}
}
}
}