|  |  |  | 
|---|
|  |  |  | <!--    </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=""> | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </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=""> | 
|---|
|  |  |  | 
|---|
|  |  |  | minInterval: 1, | 
|---|
|  |  |  | axisLine: { | 
|---|
|  |  |  | show: true, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | series: [ | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | type: 'value', | 
|---|
|  |  |  | axisLine: { | 
|---|
|  |  |  | show: true | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | axisLabel: { | 
|---|
|  |  |  | formatter: function (value) { | 
|---|
|  |  |  | // 四舍五入到最近的整数 | 
|---|
|  |  |  | return Math.round(value); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | series: [ | 
|---|