浏览代码

xls:拓扑图网址

xulisong 6 年之前
父节点
当前提交
9c6091ecaa
共有 2 个文件被更改,包括 23 次插入5 次删除
  1. 6 4
      MBI/SAGA.GplotDrawData/Common/WebGplotSettings.cs
  2. 17 1
      MBI/SAGA.MBI/Common/MBIConst.cs

+ 6 - 4
MBI/SAGA.GplotDrawData/Common/WebGplotSettings.cs

@@ -3,6 +3,7 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
+using SAGA.MBI.Common;
 
 namespace SAGA.GplotDrawData
 {
@@ -10,10 +11,11 @@ namespace SAGA.GplotDrawData
     {
         static WebGplotSettings()
         {
-            GplotUrl = "http://172.16.2.189:8091/#/gplot";
-            MindMapUrl = "http://172.16.2.189:8091/#/mindMap";
-            VPipeUrl = "http://172.16.2.189:8091/#/conduitGraphy";
-            VSpaceUrl = "http://172.16.2.189:8091/#/spaceGraphy";
+            GplotUrl =MBIConst.GplotViewHost+"gplot";
+            MindMapUrl =MBIConst.GplotViewHost+"mindMap";
+            VPipeUrl=MBIConst.GplotViewHost+"conduitGraphy";
+            VSpaceUrl = MBIConst.GplotViewHost+"spaceGraphy";
+            
         }
         /// <summary>
         /// 拓扑图地址

+ 17 - 1
MBI/SAGA.MBI/Common/MBIConst.cs

@@ -141,7 +141,23 @@ namespace SAGA.MBI.Common
                 return url;
             }
         }
-
+        /// <summary>
+        /// 拓扑视图地址
+        /// </summary>
+        public static string GplotViewHost
+        {
+            get
+            {
+                string key = nameof(GplotViewHost);
+                string url = ProjectDirOperate.GetConfigureInfo(key);
+                if (url.IsNullOrEmpty())
+                {
+                    url = "http://172.16.0.181:8888/#/";
+                    ProjectDirOperate.SaveConfigureInfo(key, url);
+                }
+                return url;
+            }
+        }
         public static readonly string ProjectManageSecret = "A123456";
         public static readonly string ProjectSecret = MBIControl.ProjectCur.Password;