MrShi
昨天 39fc2d6754953e41a7334a2166347baacfcfb40a
admin/src/views/business/dangerStatic.vue
@@ -34,7 +34,7 @@
<!--    </QueryForm>-->
    <div class="main_content">
      <div class="type_wrap">
        <div class="title">隐患类型统计</div>
        <div class="title">本月隐患类型统计</div>
        <div v-show="typeList && typeList.length > 0" class="echart1" ref="typeRef"></div>
        <div v-show="typeList.length == 0" style="width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;">
          <img style="width: 240px;" src="@/assets/images/default_homeimg.png" alt="">
@@ -42,7 +42,7 @@
      </div>
      <div class="dept_wrap">
        <div class="title">隐患归属部门统计</div>
        <div class="title">本月隐患归属部门统计</div>
        <div v-show="deptList && deptList.length > 0" class="echart2" ref="deptRef"></div>
        <div v-show="deptList.length == 0" style="width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;">
          <img style="width: 240px;" src="@/assets/images/default_homeimg.png" alt="">
@@ -287,7 +287,7 @@
          minInterval: 1,
          axisLine: {
            show: true,
          },
          }
        },
        series: [
          {
@@ -345,6 +345,12 @@
          type: 'value',
          axisLine: {
            show: true
          },
          axisLabel: {
            formatter: function (value) {
              // 四舍五入到最近的整数
              return Math.round(value);
            }
          }
        },
        series: [