Browse Source

新增传动比

rui.jiang 1 week ago
parent
commit
c607559e40

+ 2 - 2
src/router/index.js

@@ -28,8 +28,8 @@ const createRouter = () =>
             iconName: "gps",
             component: () =>
               import(
-                // /*webpackChunkName:'home-cockpitManage'*/ "../views/admin/cockpitManage/Index.vue"
-                /*webpackChunkName:'home-cockpitManage'*/ "../views/admin/cockpitManage/HD.vue" //华电选择这个
+                /*webpackChunkName:'home-cockpitManage'*/ "../views/admin/cockpitManage/Index.vue"
+                // /*webpackChunkName:'home-cockpitManage'*/ "../views/admin/cockpitManage/HD.vue" //华电选择这个
               ),
           },
           {

+ 9 - 10
src/views/admin/cockpitManage/HD.vue

@@ -4,7 +4,6 @@
     <bottom-data :maplistArr="maplistArr" :defaultdata="defaultdata" />
     <div class="zuobian">
       <selecttree
-
         placeholder="请选择所属公司"
         :list="parentOpt"
         type="1"
@@ -221,15 +220,15 @@ bottom-data {
   left: 10px;
 }
 
-
-
 @media screen and (max-width: 1650px) {
-.zuobian {
-  width: 150px;
-  position: absolute;
-  top: 10px;
-  left: 10px;
+  .zuobian {
+    width: 150px;
+    position: absolute;
+    top: 10px;
+    left: 10px;
+  }
+  .map-ditu {
+    height: calc(100vh - 60px);
+  }
 }
-}
-
 </style>

+ 1 - 1
src/views/home/Index.vue

@@ -52,7 +52,7 @@ export default {
   data() {
     return {
       loading: false,
-      isShowHd: true, //true 则展示华电的菜单样式,false 则展示默认的左侧边栏菜单
+      isShowHd: false, //true 则展示华电的菜单样式,false 则展示默认的左侧边栏菜单
     };
   },
   methods: {

+ 11 - 6
src/views/home/components/MenuHD.vue

@@ -244,14 +244,14 @@ export default {
 </script>
 
 <style lang="scss" scoped>
-::v-deep.menuParentItem .el-submenu__title{
+::v-deep.menuParentItem .el-submenu__title {
   background: #eff1f300 !important;
   color: #fff !important;
 }
 :v-deep.menuParentItem .el-submenu__title:hover {
   color: #eee !important;
 }
-::v-deep .menuParentItem{
+::v-deep .menuParentItem {
   background-image: url("../../../assets/head-tab.png") !important;
   background-repeat: no-repeat !important;
   background-position: center !important;
@@ -268,12 +268,12 @@ export default {
 ::v-deep.el-menu {
   background-color: #eff1f300 !important;
 }
-::v-deep.hdMenuTitle{
+::v-deep.hdMenuTitle {
   background-color: transparent !important;
   padding: 0px !important;
 }
 
-::v-deep.titles{
+::v-deep.titles {
   width: 100% !important;
   // background-image: url("../../../assets/headerBorder.png") !important;
   background-size: 35%, 100% !important;
@@ -374,7 +374,6 @@ export default {
   color: #ffffff !important;
 }
 
-
 // 默认样式(大屏)
 ::v-deep .menuParentItem {
   width: 160px !important;
@@ -399,8 +398,14 @@ export default {
     font-size: 20px;
     height: 50px;
   }
-}
 
+  .el-submenu__title * {
+    font-size: 16px;
+  }
+  .el-menu-item * {
+    font-size: 16px;
+  }
+}
 
 // 非华电公司放开这个注释下面的
 // .el-submenu__title * {

+ 4 - 0
src/views/ledger/milltype.vue

@@ -444,6 +444,10 @@ export default {
           { required: true, message: "请输入叶轮直径", trigger: "blur" },
           { validator: this.validateNumber, trigger: ["blur", "change"] },
         ],
+         rotationalSpeedRatio: [ // 新增传动比字段的验证规则
+    { required: true, message: "请输入传动比", trigger: "blur" },
+    { validator: this.validateNumber, trigger: ["blur", "change"] }, // 假设您也有验证数字的自定义验证器
+  ],
       },
       particularsdata: [],
       // 新增信息