From f6e6f77a3ec8f7cdc44dfa2f9af64f6f59eba24b Mon Sep 17 00:00:00 2001 From: chenxiangxue <910695411@qq.com> Date: Fri, 20 Dec 2024 10:31:24 +0800 Subject: [PATCH] asda --- .../Assets/Scripts/wj/Manager/UIManager.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/BulkCargo_UnityProject/Assets/Scripts/wj/Manager/UIManager.cs b/BulkCargo_UnityProject/Assets/Scripts/wj/Manager/UIManager.cs index 70d06ad3..15416aea 100644 --- a/BulkCargo_UnityProject/Assets/Scripts/wj/Manager/UIManager.cs +++ b/BulkCargo_UnityProject/Assets/Scripts/wj/Manager/UIManager.cs @@ -127,6 +127,13 @@ public class UIManager : Singleton /// void Search() { + if(string.IsNullOrEmpty(m_SearchShipName) && string.IsNullOrEmpty(m_SearchVoyage) && string.IsNullOrEmpty(m_SearchGoodsName) && string.IsNullOrEmpty(m_SearchDischargeLocation) && string.IsNullOrEmpty(m_BillNo)) + { + //提示 + Debug.Log("请填写搜索条件"); + return; + } + ClaerSearch(false); //搜索场景内的物体,并高亮展示 StartCoroutine(ApiManager.Instance.PostCheckYard(_SHIP_NAME_EN: m_SearchShipName, _VOYAGE_NO: m_SearchVoyage, _STANDARD_NAME: m_SearchGoodsName, _SILO_NAME: m_SearchDischargeLocation,_BILL_NO:m_BillNo, (_T_BAS_SILO_List) =>