Browse Source

style:图表居中

guotianliang 3 years ago
parent
commit
336292dd76

+ 1 - 1
src/views/ReportForm/weekReport/barChart.vue

@@ -195,7 +195,7 @@ export default {
                 },
                  grid: {
                     left: "50",
-                    right: "50",
+                    right:(this.envType=="PM2d5"||this.envType=="HCHO"||this.envType=="CO2")?"60":"50",
                     bottom: "30",
                     top:"7",
                     borderColor:'#E9E9E9',

+ 8 - 4
src/views/ReportForm/weekReport/reportDetail.vue

@@ -2076,7 +2076,8 @@ export default {
                 }
                 &>div{
                     // margin-right: 33px;
-                    margin-right: 42.5px;
+                    // margin-right: 42.5px;
+                    margin-right: 46.5px;
                 }
             }
             .room_table_name{
@@ -2100,6 +2101,7 @@ export default {
                     justify-content: space-around;
                     &>div{
                         min-width: 9px;
+                        min-width: 13px;
                     }
                 }
                 margin-top:8px;
@@ -2640,14 +2642,16 @@ export default {
         .room_table_number{
             // padding-left: 25px;
             &>div{
-                &>div:nth-child(1){
-                    width: 70px;
-                }
                 &>div:not(:first-child){
                     text-align: center;
                     min-width: 41px;
                 }
             }
+            &>div:nth-child(2){
+                &>div{
+                    min-width: 47px;
+               }
+            }
         }
     }
     .pageitem_box_list{