Browse Source

fix:周报能耗图表修改

guotianliang 3 years ago
parent
commit
d82f293b71

+ 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>