ExportMap/Models/ExportArgs.cs
@@ -82,6 +82,9 @@ /// </summary> public int dpi { set; get; } /// <summary> /// 设置默认值 /// </summary> public void SetDefault() { if (string.IsNullOrWhiteSpace(title)) title = "管道基础大数据平台"; @@ -91,9 +94,13 @@ if (string.IsNullOrWhiteSpace(date)) date = DateTime.Now.ToString("yyyy.MM.dd"); this.dpi = GetDpi(this.pageSize); imgPath = ""; } /// <summary> /// 获取DPI /// </summary> /// <param name="page">页面大小</param> /// <returns>DPI</returns> public int GetDpi(string page) { if (string.IsNullOrWhiteSpace(page)) return 300;