From c8f9d5977cc950592f0ccfea01237eccde506350 Mon Sep 17 00:00:00 2001
From: liaoxujun@qq.com <liaoxujun@qq.com>
Date: 星期一, 04 三月 2024 09:12:21 +0800
Subject: [PATCH] no message

---
 CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs |   25 +++++++++++++++++++------
 1 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs b/CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs
index f2fcbb1..af628d3 100644
--- a/CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs
+++ b/CoreCms.Net.Web.Admin/Controllers/Com/ToolsController.cs
@@ -1,10 +1,10 @@
 锘�/***********************************************************************
  *            Project: CoreCms
- *        ProjectName: 鏍稿績鍐呭绠$悊绯荤粺                                
- *                Web: https://www.corecms.net                      
- *             Author: 澶х伆鐏�                                          
- *              Email: jianweie@163.com                                
- *         CreateTime: 2021/1/31 21:45:10
+ *        ProjectName: 鐧惧垎鍏垫硶绠$悊绯荤粺                               
+ *                Web: hhtp://chuanyin.com                     
+ *             Author:                                        
+ *              Email:                               
+ *         CreateTime: 202403/02   
  *        Description: 鏆傛棤
  ***********************************************************************/
 
@@ -1641,17 +1641,30 @@
                                 await _areaServices.QueryListByClauseAsync(p => p.parentId == model.info.parentId);
                         res.Add(model);
                     }
+                    else
+                    {
+                        //淇敼涓嶅彲浠ヤ换鎰忛�夋嫨灞傜骇鐨刡ug
+                        model2.thisList = await _areaServices.QueryListByClauseAsync(p => p.parentId == 0);
+                    }
 
                     res.Add(model2);
                 }
+                else
+                    if(model3.info!=null&&model3.info.parentId==0)
+                        {
+                    //淇敼涓嶅彲浠ヤ换鎰忛�夋嫨灞傜骇鐨刡ug
+                    model3.thisList = await _areaServices.QueryListByClauseAsync(p => p.parentId == 0);
+                }
+
 
                 res.Add(model3);
             }
             else
             {
+                //淇敼涓嶅彲浠ヤ换鎰忛�夋嫨灞傜骇鐨刡ug
                 var model4 = new AreasDtoForAdminEdit();
                 model4.list = await _areaServices.QueryListByClauseAsync(p => p.parentId == 0);
-                model4.info = model4.list.FirstOrDefault();
+                model4.info = null;
                 res.Add(model4);
             }
 

--
Gitblit v1.9.1