From 788a78efe33a76ffa80ba6b8430a593cd883c508 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 08 十一月 2022 18:00:31 +0800
Subject: [PATCH] 1

---
 ExportMap/Models/ExportArgs.cs |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/ExportMap/Models/ExportArgs.cs b/ExportMap/Models/ExportArgs.cs
index 513508a..09532eb 100644
--- a/ExportMap/Models/ExportArgs.cs
+++ b/ExportMap/Models/ExportArgs.cs
@@ -71,5 +71,16 @@
         /// X鏈�澶�
         /// </summary>
         public double xmax { set; get; }
+
+        public void SetDefault()
+        {
+            if (string.IsNullOrWhiteSpace(title)) title = "绠¢亾鍩虹澶ф暟鎹钩鍙�";
+            if (string.IsNullOrWhiteSpace(province)) province = string.Empty;
+            if (string.IsNullOrWhiteSpace(scale)) scale = string.Empty;
+            if (string.IsNullOrWhiteSpace(resolution)) resolution = string.Empty;
+            if (string.IsNullOrWhiteSpace(date)) date = DateTime.Now.ToString("yyyy.MM.dd");
+
+            imgPath = "";
+        }
     }
-}
\ No newline at end of file
+}

--
Gitblit v1.9.3