Selaa lähdekoodia

路由修改,首页

chenminghua 2 vuotta sitten
vanhempi
commit
5f7a753d41

+ 2 - 9
public/static/config/modeConfig.js

@@ -19,16 +19,9 @@ const adapterUrl = "http://10.155.32.4:8011/";
 const showModuleName = 0;
 
 if (localTest) {
-    // baseURL = "http://192.168.10.13:8082/" // 联机调试 - 石林
-    // baseURL = "http://10.155.32.33:9001/" // 联机调试 - 谢生杰
-    baseURL = "http://192.168.10.6:8082/" // 联机调试 - 王昌盛
-
-    tilesUrl = "http://localhost:8080/static/cesium/Assets/Textures/NaturalEarthII";
+    baseURL = "http://192.168.10.5:8082/" // 联机调试 
 } else {
-    baseURL = "http://10.155.32.4:8082/" // 正式环境
-    // baseURL = "http://192.168.1.103:8082/" // 正式环境
-
-    tilesUrl = "http://10.155.32.4:8070/zhfx/new_tiles";
+    baseURL = "http://192.168.1.18:8082/" // 正式环境
 }
 
 websocketUrl = (baseURL.replace(/http:\/\/|https:\/\//g, "")) + "gyee-websocket";

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 232 - 2
src/App.vue


BIN
src/assets/font/Bicubik.ttf


BIN
src/assets/font/Bicubik.woff


BIN
src/assets/font/SourceHanSansCN-Normal.ttf


+ 30 - 0
src/assets/styles/font.less

@@ -0,0 +1,30 @@
+@font-face {
+    font-family: @font-family-num;
+    src: url("../font/Bicubik.woff"), url("../font/Bicubik.ttf");
+  }
+  
+  @font-face {
+    font-family: "SourceHanSans";
+    src: url("../font/SourceHanSansCN-Normal.ttf");
+  }
+  
+  .font-num {
+    font-family: @font-family-num;
+  }
+  
+  .font-cn {
+    font-family: "SourceHanSans";
+  }
+  
+  .font-md {
+    font-size: @fontsize;
+  }
+  
+  .font-sm {
+    font-size: @fontsize-s;
+  }
+  
+  .font-lg {
+    font-size: @fontsize-l;
+  }
+  

+ 36 - 23
src/router/index.js

@@ -1,41 +1,55 @@
 import {
 	createRouter,
-	createWebHashHistory
+	createWebHashHistory,
 } from "vue-router";
 
 const routes = [
 	{
 		path: "/",
-		redirect: "/welcome"
+		redirect: "/index"
 	},
 	{
 		icon: "menuIcon el-icon el-icon-s-home", // 菜单所用 icon 
-		path: "/welcome", // 菜单 path
+		path: "/index", // 菜单 path
 		name: "首页", // 菜单显示的名称
-		component: () => import("../views/test/page1.vue"),
-		// children: [{
-		// 	icon: "menuIcon el-icon el-icon-copy-document",
-		// 	path: "page3",
-		// 	name: "页面3",
-		// 	component: () => import("../views/test/page3.vue"),
-		// }]
+		component: () => import("../views/layout/home.vue"),
 	},
 	{
-		icon: "menuIcon el-icon el-icon-edit-outline",
-		path: "/page2",
-		name: "页面2",
-		component: () => import("../views/test/page2.vue"),
+		icon: "menuIcon el-icon el-icon-postcard",
+		path: "/sample",
+		name: "样本",
+		component: () => import("../views/sample/router/index.vue"),
+		children: [{
+			path: "fault",
+			name: "故障样本",
+			component: () => import("../views/sample/realfault.vue"),
+		},
+		{
+			path: "diagnose",
+			name: "诊断样本",
+			component: () => import("../views/sample/diagnosefault.vue"),
+		}]
+	},
+	{
+		icon: "menuIcon el-icon el-icon-document",
+		path: "/know",
+		name: "知识库",
+		component: () => import("../views/know/router/index.vue"),
+		children: [{
+			path: "station",
+			name: "故障分类",
+			component: () => import("../views/know/faultcategory.vue"),
+		}]
 	},
 	{
-		icon: "menuIcon el-icon el-icon-edit-outline",
-		path: "/other",
-		name: "其他",
-		component: () => import("../views/test/page3.vue"),
+		icon: "menuIcon el-icon el-icon-info",
+		path: "/info",
+		name: "基础配置",
+		component: () => import("../views/basicinfo/router/index.vue"),
 		children: [{
-			icon: "menuIcon el-icon el-icon-copy-document",
-			path: "page3",
-			name: "页面3",
-			component: () => import("../views/test/page3.vue"),
+			path: "station",
+			name: "场站数据",
+			component: () => import("../views/basicinfo/station.vue"),
 		}]
 	},
 	{
@@ -47,7 +61,6 @@ const routes = [
 
 const router = createRouter({
 	history: createWebHashHistory(),
-	base: "/zhfx/",
 	routes
 });
 

+ 3 - 0
src/views/basicinfo/router/index.vue

@@ -0,0 +1,3 @@
+<template>
+  <router-view></router-view>
+</template>

+ 5 - 0
src/views/basicinfo/station.vue

@@ -0,0 +1,5 @@
+<template>
+     <div>
+          场站
+     </div>
+</template>

+ 5 - 0
src/views/basicinfo/windturbine.vue

@@ -0,0 +1,5 @@
+<template>
+     <div>
+          单台风机
+     </div>
+</template>

+ 5 - 0
src/views/know/faultcategory.vue

@@ -0,0 +1,5 @@
+<template>
+     <div>
+          故障分类
+     </div>
+</template>

+ 3 - 0
src/views/know/router/index.vue

@@ -0,0 +1,3 @@
+<template>
+  <router-view></router-view>
+</template>

+ 1 - 1
src/views/test/page1.vue

@@ -10,7 +10,7 @@ export default {
 
   data() {
     return {
-      info: "这是页面1",
+      info: "这是HOME",
     };
   },
 

+ 5 - 0
src/views/sample/diagnosefault.vue

@@ -0,0 +1,5 @@
+<template>
+     <div>
+          诊断样本
+     </div>
+</template>

+ 5 - 0
src/views/sample/realfault.vue

@@ -0,0 +1,5 @@
+<template>
+     <div>
+          结论样本
+     </div>
+</template>

+ 3 - 0
src/views/sample/router/index.vue

@@ -0,0 +1,3 @@
+<template>
+  <router-view></router-view>
+</template>

+ 0 - 33
src/views/test/page2.vue

@@ -1,33 +0,0 @@
-<template>
-  <div class="box">
-    {{ info }}
-  </div>
-</template>
-
-<script>
-export default {
-  components: {},
-
-  data() {
-    return {
-      info: "这是页面2",
-    };
-  },
-
-  created() {},
-
-  mounted() {},
-
-  methods: {},
-};
-</script>
-
-<style lang="less" scoped>
-.box {
-  width: 100%;
-  height: 100%;
-  background: deeppink;
-  font-size: 25px;
-  color: #fff;
-}
-</style>

+ 0 - 33
src/views/test/page3.vue

@@ -1,33 +0,0 @@
-<template>
-  <div class="box">
-    {{ info }}
-  </div>
-</template>
-
-<script>
-export default {
-  components: {},
-
-  data() {
-    return {
-      info: "这是页面3",
-    };
-  },
-
-  created() {},
-
-  mounted() {},
-
-  methods: {},
-};
-</script>
-
-<style lang="less" scoped>
-.box {
-  width: 100%;
-  height: 100%;
-  background: sienna;
-  font-size: 25px;
-  color: #fff;
-}
-</style>