Преглед на файлове

fix:周报能耗图表修改

guotianliang преди 3 години
родител
ревизия
d82f293b71
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  1. 5 1
      src/views/ReportForm/weekReport/barChart.vue
  2. 1 1
      src/views/ReportForm/weekReport/reportDetail.vue

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

@@ -454,7 +454,11 @@ export default {
                     subtext: '空间数量'
                 }
                 if(this.envType==="energyManage"){
-                    option.title={};
+                    option.title={
+                        top:-13,
+                        left:12,
+                        subtext: 'kWh'
+                    };
                     option.series[0].label= {
                             normal: {
                                 show: true,

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

@@ -72,7 +72,7 @@
                 <!-- 柱状图 -->
                 <barChart  :numberChart="isUserorEngry(envType)" :chart-id="chartId+'1'" :key="envType" :chart-date="chartweekDate" :env-type="envType"  :xType="dayType"/>
                 <!-- 服务空间数 -->
-                <div class="room_table" v-if="!isUserorEngry">
+                <div class="room_table" v-if="!isUserorEngry(envType)">
                     <div class="room_table_number">
                         <div>服务空间数(总:{{chartweekDate.registeredSpaceNum&&chartweekDate.registeredSpaceNum.filter(Boolean)[0]}})</div>
                         <div>