From fe2b697a063ab9898af5ec0b49c30ad20274d56e Mon Sep 17 00:00:00 2001
From: gjj <Ganjj@probim.com.cn>
Date: Tue, 25 Feb 2025 11:42:12 +0800
Subject: [PATCH] 调整样式,接口对接

---
 src/Dashboard.vue |   49 ++++++++++++++++++-------------------------------
 1 files changed, 18 insertions(+), 31 deletions(-)

diff --git a/src/Dashboard.vue b/src/Dashboard.vue
index d9c19bd..3bd3d56 100644
--- a/src/Dashboard.vue
+++ b/src/Dashboard.vue
@@ -2,7 +2,7 @@
  * @Author: gjj Ganjj@probim.com.cn
  * @Date: 2025-02-14 14:32:17
  * @LastEditors: gjj Ganjj@probim.com.cn
- * @LastEditTime: 2025-02-21 16:54:08
+ * @LastEditTime: 2025-02-24 17:30:13
  * @FilePath: \北京交通大学\src\Dashboard.vue
 -->
 <!-- eslint-disable vue/no-textarea-mustache -->
@@ -70,11 +70,11 @@
 import Home from "./views/Home.vue";
 import ProjectView from "./views/ProjectView.vue";
 import { sceneJSON } from "./sceneJSON.js";
-import { AppAPI } from "./api/app";
 import EquipmentView from "./views/EquipmentView.vue";
 import dayjs from "dayjs";
 import "dayjs/locale/zh-cn";
 import relativeTime from "dayjs/plugin/relativeTime";
+import { HomeAPI } from "./api/home";
 dayjs.locale("zh-cn");
 dayjs.extend(relativeTime);
 Vue.prototype.$dayjs = dayjs;
@@ -107,7 +107,7 @@
   watch: {
   },
   mounted() {
-    this.initMultiverse();
+    this.getLoginInfo();
   },
   beforeDestroy() {
     this.resetEngineRelated();
@@ -146,36 +146,23 @@
         }
       }
     },
-    
-
-    //初始化引擎
-    initMultiverse() {
-      // 获取承载场景画布dom
-      const renderDom = document.getElementById("renderDom");
-      if (window.multiverse && renderDom) {
-        // 实例化引擎
-        const multiverse = window.multiverse;
-        const engine = new multiverse.mvCore(renderDom);
-
-        // mapbox地图服务的Token,需申请,如不使用Mapbox地图服务,可不设置
-				engine.token = window.ProjectConfig.mapboxToken;
-        // multiverse.js所在的路径,用于获取静态资源文件
-        engine.path = "https://multiverse.vothing.com/";
-
-        // 初始化场景
-        engine.initialize().then((s) => {
-          window.scene = s;
-          s.fromJSON(sceneJSON);
-          s.load();
-          s.stop();
-          window.underlay = s.findFeature("underlay");
-
-          setTimeout(() => {
-            
-          }, 1000);
-        });
+    getLoginInfo() {
+      const data = {
+        "UserName": "JSC",
+        "Password": "JSC@jsc123",
+        "IfSingleLogin": "",
       }
+      HomeAPI.WhLogin(data).then(res => {
+        console.log(res);
+        if(res.Ret === 1) {
+          const result = res.Data
+          window.localStorage.setItem("token", result.token)
+          console.log(result);
+        }
+        
+      });
     },
+
     //设置字体颜色
     cellStyle(row, _column, _rowIndex, _columnIndex) {
       // console.log("row", row);

--
Gitblit v1.9.3