Explorar el Código

Merge branch 'master' of http://192.168.50.233:3000/rui.jiang/performance-test

liujiejie hace 1 semana
padre
commit
032dce3f10

BIN
src/assets/datang.png


+ 5 - 5
src/components/HeaderCom.vue

@@ -1,9 +1,9 @@
 <template>
   <div class="header">
     <div class="header-logo">
-      <!-- 
-      <img src="@/assets/logo.png" slot="reference" />
-      <h2 class="conversion">中能智能</h2> -->
+      
+      <img src="@/assets/datang.png" slot="reference" />
+      <h2 class="conversion">中国大唐集团公司</h2>
     </div>
     <div class="personalCenter">
       <p class="current-time">{{ currentDate }}</p>
@@ -207,8 +207,8 @@ export default {
     }
 
     img {
-      width: 40px;
-      height: 40px;
+      width: 30px;
+      height: 30px;
     }
   }
 

+ 38 - 38
src/components/map/index.vue

@@ -248,12 +248,12 @@ export default {
       layers: [
         new TileLayer({
           source: new XYZ({
-            // url: "http://106.120.102.238:18000/tiles/{z}/{x}/{y}.png", //外网
+            url: "http://106.120.102.238:18000/tiles/{z}/{x}/{y}.png", //外网
             // url: "http://127.0.0.1:8010/tiles/{z}/{x}/{y}.png", //本地
             // url: "http://192.168.50.235/tiles/{z}/{x}/{y}.png", //内网
             // url: "http://10.96.137.5:9080/tiles/{z}/{x}/{y}.png", //大~#@唐
             // url: "http://192.168.0.1/tiles/{z}/{x}/{y}.png", //华电
-            url: "http://192.168.50.235/tiles/{z}/{x}/{y}.png", //中广核
+            // url: "http://192.168.50.235/tiles/{z}/{x}/{y}.png", //中广核
           }),
         }),
         new VectorLayer({
@@ -265,44 +265,44 @@ export default {
     });
 
     // -------------【添加山西省真实边界线】------------- 定位全国的时候注释这个代码
-    if (this.$route.path === "/home/cockpitManage") {
-      // 通过导入的 JSON 文件加载边界数据(GeoJSON 格式),并解析成矢量要素
-      const shanxiSource = new Vector({
-        features: new GeoJSON().readFeatures(shanxiBoundary, {
-          featureProjection: "EPSG:4326",
-        }),
-      });
-      // 创建矢量图层,仅显示边界线(填充颜色设为透明)
-      const shanxiLayer = new VectorLayer({
-        source: shanxiSource,
-        style: new Style({
-          stroke: new Stroke({
-            color: "rgba(59, 130, 246, 0.5)",
-            width: 3,
-          }),
-          fill: new Fill({
-            color: "rgba(59, 130, 246, 0.05)", // 透明填充
-          }),
-        }),
-      });
-      this.map.addLayer(shanxiLayer);
+    // if (this.$route.path === "/home/cockpitManage") {
+    //   // 通过导入的 JSON 文件加载边界数据(GeoJSON 格式),并解析成矢量要素
+    //   const shanxiSource = new Vector({
+    //     features: new GeoJSON().readFeatures(shanxiBoundary, {
+    //       featureProjection: "EPSG:4326",
+    //     }),
+    //   });
+    //   // 创建矢量图层,仅显示边界线(填充颜色设为透明)
+    //   const shanxiLayer = new VectorLayer({
+    //     source: shanxiSource,
+    //     style: new Style({
+    //       stroke: new Stroke({
+    //         color: "rgba(59, 130, 246, 0.5)",
+    //         width: 3,
+    //       }),
+    //       fill: new Fill({
+    //         color: "rgba(59, 130, 246, 0.05)", // 透明填充
+    //       }),
+    //     }),
+    //   });
+    //   this.map.addLayer(shanxiLayer);
 
-      const markerLayer = this.map
-        .getLayers()
-        .getArray()
-        .find((layer) => {
-          return layer.get("id") === "marker";
-        });
-      if (markerLayer) {
-        markerLayer.setZIndex(10);
-      }
+    //   const markerLayer = this.map
+    //     .getLayers()
+    //     .getArray()
+    //     .find((layer) => {
+    //       return layer.get("id") === "marker";
+    //     });
+    //   if (markerLayer) {
+    //     markerLayer.setZIndex(10);
+    //   }
 
-      // 同时设置高亮图层 zIndex 较低
-      shanxiLayer.setZIndex(1);
-      // -------------【结束】-------------
-      const targetExtent = [106.8, 34.3, 118.6, 41.2];
-      this.map.getView().fit(targetExtent, { duration: 2000 });
-    }
+    //   // 同时设置高亮图层 zIndex 较低
+    //   shanxiLayer.setZIndex(1);
+    //   // -------------【结束】-------------
+    //   const targetExtent = [106.8, 34.3, 118.6, 41.2];
+    //   this.map.getView().fit(targetExtent, { duration: 2000 });
+    // }
     // 这个放在外面
     this.initEvent();
   },

+ 2 - 2
src/views/health/components/malfunction/bearing.vue

@@ -65,7 +65,7 @@
             size="small"
             @click="automaticDiagnosis"
             class="btn-auto"
-            >自动诊断</el-button
+            >诊断</el-button
           >
         </div>
 
@@ -84,7 +84,7 @@
             <h4>诊断步骤:</h4>
             <p>1、选择振动测点与起止时间,点击“查询”;</p>
             <p>2、对轴承“参数设置”输入相关信息;</p>
-            <p>3、点击“自动诊断”输出最终轴承状态结果。</p>
+            <p>3、点击“诊断”输出最终轴承状态结果。</p>
           </div>
         </div>
       </div>

+ 2 - 2
src/views/health/components/malfunction/dissymmetry.vue

@@ -57,7 +57,7 @@
             size="small"
             @click="automaticDiagnosis"
             class="btn-auto"
-            >自动诊断</el-button
+            >诊断</el-button
           >
         </div>
 
@@ -76,7 +76,7 @@
             <h4>诊断步骤:</h4>
             <p>1、选择振动测点与起止时间,点击“查询;</p>
             <p>2、对不对中“参数设置”输入相关信息;</p>
-            <p>3、点击“自动诊断”输出最终轴承状态结果。</p>
+            <p>3、点击“诊断”输出最终轴承状态结果。</p>
           </div>
         </div>
       </div>

+ 2 - 2
src/views/health/components/malfunction/gear.vue

@@ -60,7 +60,7 @@
             size="small"
             @click="automaticDiagnosis"
             class="btn-auto"
-            >自动诊断</el-button
+            >诊断</el-button
           >
         </div>
 
@@ -79,7 +79,7 @@
             <h4>诊断步骤:</h4>
             <p>1、选择振动测点与起止时间,点击“查询;</p>
             <p>2、对齿轮“参数设置”输入相关信息;</p>
-            <p>3、点击“自动诊断”输出最终轴承状态结果。</p>
+            <p>3、点击“诊断”输出最终轴承状态结果。</p>
           </div>
         </div>
       </div>

+ 2 - 2
src/views/health/components/malfunction/loose.vue

@@ -57,7 +57,7 @@
             size="small"
             @click="automaticDiagnosis"
             class="btn-auto"
-            >自动诊断</el-button
+            >诊断</el-button
           >
         </div>
 
@@ -76,7 +76,7 @@
             <h4>诊断步骤:</h4>
             <p>1、选择振动测点与起止时间,点击“查询;</p>
             <p>2、对松动“参数设置”输入相关信息;</p>
-            <p>3、点击“自动诊断”输出最终轴承状态结果。</p>
+            <p>3、点击“诊断”输出最终轴承状态结果。</p>
           </div>
         </div>
       </div>

+ 2 - 2
src/views/health/components/malfunction/misalignment.vue

@@ -57,7 +57,7 @@
             size="small"
             @click="automaticDiagnosis"
             class="btn-auto"
-            >自动诊断</el-button
+            >诊断</el-button
           >
         </div>
 
@@ -76,7 +76,7 @@
             <h4>诊断步骤:</h4>
             <p>1、选择振动测点与起止时间,点击“查询;</p>
             <p>2、对不平衡“参数设置”输入相关信息;</p>
-            <p>3、点击“自动诊断”输出最终轴承状态结果。</p>
+            <p>3、点击“诊断”输出最终轴承状态结果。</p>
           </div>
         </div>
       </div>

+ 2 - 2
src/views/health/components/malfunction/temperature.vue

@@ -63,7 +63,7 @@
             size="small"
             @click="automaticDiagnosis"
             class="btn-auto"
-            >自动诊断</el-button
+            >诊断</el-button
           >
         </div>
 
@@ -82,7 +82,7 @@
             <h4>诊断步骤:</h4>
             <p>1、选择振动测点与起止时间,点击“查询”;</p>
             <p>2、对轴承“参数设置”输入相关信息;</p>
-            <p>3、点击“自动诊断”输出最终轴承状态结果。</p>
+            <p>3、点击“诊断”输出最终轴承状态结果。</p>
           </div>
         </div>
       </div>

+ 6 - 3
src/views/health/malfunction.vue

@@ -91,7 +91,7 @@
           end-placeholder="结束日期"
         />
       </p>
-      <el-button type="primary" size="small" @click="conditions(1)">查询</el-button>
+      <el-button type="primary" size="small" @click="conditions(1)" class="search-btn">查询</el-button>
     </div>
 
     <!-- 动态组件内容 -->
@@ -386,11 +386,11 @@ export default {
   margin-bottom: 10px;
   align-items: center;
   flex-wrap: wrap;
-  padding-top: 10px;
+  // padding-top: 10px;
   p {
     margin-right: 10px;
     margin-bottom: 0;
-    //margin-top: 10px;
+    margin-top: 10px;
     display: flex;
     align-items: center;
 
@@ -403,6 +403,9 @@ export default {
   .el-select {
     width: 180px;
   }
+  .search-btn {
+    margin-top: 10px;
+  }
 }
 .main-body {
   margin-top: 10px;

+ 22 - 26
src/views/home/components/MenuHD.vue

@@ -1,20 +1,22 @@
-56<template>
+<template>
+  <div class="menuBox">
+
+  
   <el-menu
     collapse-transition
     ref="menu"
     mode="horizontal"
-    class="mt-3 el-menu-vertical-demo"
+    class="mt-3 el-menu-vertical-demo my-menu-wrapper"
     @open="handleOpen"
     @close="handleClose"
-
     :router="true"
     :default-active="defaultActive"
     :default-openeds="openMenus"
     background-color="#1b3b7f"
-  text-color="#fff"
-  active-text-color="#ffd04b"
+    text-color="#fff"
+    active-text-color="#ffd04b"
   >
-  <!--     :active-text-color="activeTextColor" -->
+    <!--     :active-text-color="activeTextColor" -->
     <template v-for="(item, indexMenu) in routerList">
       <!-- 判断是否是中间位置 -->
       <el-menu-item
@@ -55,7 +57,6 @@
           :key="child.id"
           :index="`${child.path}?id=${child.id}`"
           @click="handleChangeMenuUrl(child, `${child.path}?id=${child.id}`)"
-
         >
           <span>{{ child.name }}</span>
         </el-menu-item>
@@ -86,6 +87,7 @@
       </el-menu-item>
     </template>
   </el-menu>
+  </div>
 </template>
 
 <script>
@@ -370,28 +372,22 @@ export default {
   display: block !important;
 }
 
-
-
-
 /* 当前选中项的颜色 */
 .el-menu--horizontal .el-menu-item.is-active {
   color: #ffffff !important;
-
 }
-
-
 </style>
 
-<style >
-.el-menu--popup {
-  min-width: 120px !important;
-  width: 100% !important;
-}
-
-.el-menu--popup .el-menu-item {
-  width: 100% !important;
-  min-width: unset !important;
-  text-align: center;
-  padding: 0 5px !important;
-}
-</style>
+<style lang="scss" >
+/* 华电时的菜单打开这个 */
+// .el-menu--popup {
+//   width: 100% !important;
+//     min-width: 120px !important;
+//   .el-menu-item {
+//     width: 100% !important;
+//     min-width: unset !important;
+//     text-align: center;
+//     padding: 0 5px !important;
+//   }
+// }
+</style>

+ 4 - 4
vue.config.js

@@ -66,8 +66,8 @@ module.exports = {
         // target: "http://192.168.5.4:16200", // 石月
         // target: "http://192.168.50.235:16200", // 内网
         // target: "http://192.168.5.15:16200",
-        target: "http://192.168.50.235:16500", //演示环境
-        // target: "http://106.120.102.238:26500", //外网演示环境
+        // target: "http://192.168.50.235:16500", //演示环境
+        target: "http://106.120.102.238:26500", //外网演示环境
         // target: "http://106.120.102.238:16700", // 外网16700  生产16600
         // target: "http://10.96.137.5",
         changeOrigin: true,
@@ -125,8 +125,8 @@ module.exports = {
       },
       //自定义算法文佳
       "/sAlgorithm": {
-        target: "http://192.168.50.235:8666", // 目标地址
-        // target: "http://106.120.102.238:58880",//这个代理会走两次代理转发
+        // target: "http://192.168.50.235:8666", // 目标地址
+        target: "http://106.120.102.238:58880",//这个代理会走两次代理转发
         changeOrigin: true,
         pathRewrite: {
           "^/sAlgorithm": "", // 如果后端需要 `/api` 前缀