|
@@ -1,108 +1,110 @@
|
|
<!--安全隐患统计列表-->
|
|
<!--安全隐患统计列表-->
|
|
<template>
|
|
<template>
|
|
- <div class="safetyHazardStatistics">
|
|
|
|
- <el-form :model="queryParams" class="form-box" ref="queryForm" :inline="true">
|
|
|
|
- <el-form-item label="" prop="deptId" label-width="50px">
|
|
|
|
- <el-select v-model="queryParams.deptId" clearable placeholder="全部">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in deptSelectList"
|
|
|
|
- :key="item.deptId"
|
|
|
|
- :label="item.deptName"
|
|
|
|
- :value="item.deptId">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="" prop="rectifyStatus">
|
|
|
|
- <el-select v-model="queryParams.rectifyStatus" clearable placeholder="全部状态" style="width: 120px">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in typeList"
|
|
|
|
- :key="item.key"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.key">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="" prop="hdLevel">
|
|
|
|
- <el-select v-model="queryParams.hdLevel" clearable placeholder="全部隐患等级" style="width: 140px">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in levelList"
|
|
|
|
- :key="item.key"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.key">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="" prop="searchValue" label-width="80px">
|
|
|
|
- <el-input
|
|
|
|
- maxLength="30"
|
|
|
|
- v-model="queryParams.searchValue"
|
|
|
|
- placeholder="计划任务/实验室/房间号"
|
|
|
|
- clearable
|
|
|
|
- style="width: 200px"/>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="" prop="dateRange" label-width="70px">
|
|
|
|
- <el-date-picker
|
|
|
|
- :clearable="false"
|
|
|
|
- v-model="dateRange"
|
|
|
|
- size="small"
|
|
|
|
- style="width: 240px"
|
|
|
|
- value-format="yyyy-MM-dd"
|
|
|
|
- type="daterange"
|
|
|
|
- range-separator="-"
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
- end-placeholder="结束日期"
|
|
|
|
- ></el-date-picker>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
- <p class="inquire-button-one" @click="handleQuery" style="margin-right:10px;">查询</p>
|
|
|
|
- <p class="reset-button-one" @click="resetQuery">重置</p>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item style="float: right;" v-hasPermi="['safety:dataSub:export']">
|
|
|
|
- <export-component :exportConfig="exportConfig"></export-component>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
- <div class="num-data-box">
|
|
|
|
- 共搜索到隐患总数 {{numData.sumTotal}},重大隐患数 {{numData.zdHazardTotal}},一般隐患数 {{numData.ybHazardTotal}},管理问题数 {{numData.glHazardTotal}} ,待整改总数 {{numData.rectifiedTotal}},复核总数 {{numData.resultTotal}},复核通过率 {{numData.rate}}
|
|
|
|
|
|
+ <div class="page-container safetyHazardStatistics">
|
|
|
|
+ <div class="page-form-title-box">
|
|
|
|
+ <el-form :model="queryParams" class="form-box" ref="queryForm" :inline="true">
|
|
|
|
+ <el-form-item label="" prop="deptId" label-width="50px">
|
|
|
|
+ <el-select v-model="queryParams.deptId" clearable placeholder="全部">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in deptSelectList"
|
|
|
|
+ :key="item.deptId"
|
|
|
|
+ :label="item.deptName"
|
|
|
|
+ :value="item.deptId">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="" prop="rectifyStatus">
|
|
|
|
+ <el-select v-model="queryParams.rectifyStatus" clearable placeholder="全部状态" style="width: 120px">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in typeList"
|
|
|
|
+ :key="item.key"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.key">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="" prop="hdLevel">
|
|
|
|
+ <el-select v-model="queryParams.hdLevel" clearable placeholder="全部隐患等级" style="width: 140px">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in levelList"
|
|
|
|
+ :key="item.key"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.key">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="" prop="searchValue" label-width="80px">
|
|
|
|
+ <el-input
|
|
|
|
+ maxLength="30"
|
|
|
|
+ v-model="queryParams.searchValue"
|
|
|
|
+ placeholder="计划任务/实验室/房间号"
|
|
|
|
+ clearable
|
|
|
|
+ style="width: 200px"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="" prop="dateRange" label-width="70px">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ :clearable="false"
|
|
|
|
+ v-model="dateRange"
|
|
|
|
+ size="small"
|
|
|
|
+ style="width: 240px"
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
|
+ type="daterange"
|
|
|
|
+ range-separator="-"
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
+ ></el-date-picker>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <p class="page-inquire-common-style-button" @click="handleQuery" style="margin-right:10px;">查询</p>
|
|
|
|
+ <p class="page-reset-common-style-button" @click="resetQuery">重置</p>
|
|
|
|
+ <el-form-item style="float: right;" v-hasPermi="['safety:dataSub:export']">
|
|
|
|
+ <export-component :exportConfig="exportConfig"></export-component>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="page-content-box">
|
|
|
|
+ <div class="num-data-box">
|
|
|
|
+ 共搜索到隐患总数 {{numData.sumTotal}},重大隐患数 {{numData.zdHazardTotal}},一般隐患数 {{numData.ybHazardTotal}},管理问题数 {{numData.glHazardTotal}} ,待整改总数 {{numData.rectifiedTotal}},复核总数 {{numData.resultTotal}},复核通过率 {{numData.rate}}
|
|
|
|
+ </div>
|
|
|
|
+ <el-table class="table-box" border :data="tableList" ref="multipleTable"
|
|
|
|
+ :row-key="getRowKeys"
|
|
|
|
+ @select="select" @select-all="selectAll">
|
|
|
|
+ <el-table-column type="selection" width="50" align="center" fixed/>
|
|
|
|
+ <el-table-column label="序号" align="center" type="index" width="60" fixed/>
|
|
|
|
+ <el-table-column label="计划任务" align="center" prop="title" show-overflow-tooltip width="200" fixed/>
|
|
|
|
+ <el-table-column label="学院" align="center" prop="collegeName" show-overflow-tooltip width="200" fixed/>
|
|
|
|
+ <el-table-column label="实验室" align="center" prop="subjectName" show-overflow-tooltip width="180"/>
|
|
|
|
+ <el-table-column label="房间号" align="center" prop="subRoom" show-overflow-tooltip width="100"/>
|
|
|
|
+ <el-table-column label="楼栋" align="center" prop="buildName" show-overflow-tooltip width="180"/>
|
|
|
|
+ <el-table-column label="隐患等级" align="center" prop="hazardLevel" show-overflow-tooltip width="100">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{scope.row.hazardLevel==1?'重大隐患':(scope.row.hazardLevel==2?'一般隐患':(scope.row.hazardLevel==3?'管理问题':''))}}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="不符合项" align="center" prop="hazardCheckPoint" show-overflow-tooltip width="260">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{scope.row.hazardCheckCode}}</span>
|
|
|
|
+ <span v-if="scope.row.checkCategory==1">{{scope.row.hazardCheckPoint}}</span>
|
|
|
|
+ <span v-if="scope.row.checkCategory!=1">{{scope.row.hazardCheckName}}</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="历史出现次数" align="center" prop="sumTotal" show-overflow-tooltip width="120"/>
|
|
|
|
+ <el-table-column label="隐患描述" align="center" prop="hazardDescribe" show-overflow-tooltip width="180"/>
|
|
|
|
+ <el-table-column label="检查者" align="center" prop="checkUser" show-overflow-tooltip width="100"/>
|
|
|
|
+ <el-table-column label="检查时间" align="center" prop="checkTime2" show-overflow-tooltip width="180"/>
|
|
|
|
+ <el-table-column label="状态" align="center" prop="rectifyStatus" show-overflow-tooltip width="100">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{scope.row.rectifyStatus==1?'复核完毕':(scope.row.rectifyStatus==2?'未整改':(scope.row.rectifyStatus==3?'已整改':(scope.row.rectifyStatus==4?'暂无法整改':'')))}}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ <pagination :page-sizes="[20, 30, 40, 50]"
|
|
|
|
+ v-show="total>0"
|
|
|
|
+ :total="total"
|
|
|
|
+ :page.sync="queryParams.pageNum"
|
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
|
+ @pagination="getList"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
- <el-table border :data="tableList" ref="multipleTable"
|
|
|
|
- :row-key="getRowKeys"
|
|
|
|
- @select="select" @select-all="selectAll">
|
|
|
|
- <el-table-column type="selection" width="50" align="center" fixed/>
|
|
|
|
- <el-table-column label="序号" align="center" type="index" width="60" fixed/>
|
|
|
|
- <el-table-column label="计划任务" align="center" prop="title" show-overflow-tooltip width="200" fixed/>
|
|
|
|
- <el-table-column label="学院" align="center" prop="collegeName" show-overflow-tooltip width="200" fixed/>
|
|
|
|
- <el-table-column label="实验室" align="center" prop="subjectName" show-overflow-tooltip width="180"/>
|
|
|
|
- <el-table-column label="房间号" align="center" prop="subRoom" show-overflow-tooltip width="100"/>
|
|
|
|
- <el-table-column label="楼栋" align="center" prop="buildName" show-overflow-tooltip width="180"/>
|
|
|
|
- <el-table-column label="隐患等级" align="center" prop="hazardLevel" show-overflow-tooltip width="100">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- {{scope.row.hazardLevel==1?'重大隐患':(scope.row.hazardLevel==2?'一般隐患':(scope.row.hazardLevel==3?'管理问题':''))}}
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="不符合项" align="center" prop="hazardCheckPoint" show-overflow-tooltip width="260">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <span>{{scope.row.hazardCheckCode}}</span>
|
|
|
|
- <span v-if="scope.row.checkCategory==1">{{scope.row.hazardCheckPoint}}</span>
|
|
|
|
- <span v-if="scope.row.checkCategory!=1">{{scope.row.hazardCheckName}}</span>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="历史出现次数" align="center" prop="sumTotal" show-overflow-tooltip width="120"/>
|
|
|
|
- <el-table-column label="隐患描述" align="center" prop="hazardDescribe" show-overflow-tooltip width="180"/>
|
|
|
|
- <el-table-column label="检查者" align="center" prop="checkUser" show-overflow-tooltip width="100"/>
|
|
|
|
- <el-table-column label="检查时间" align="center" prop="checkTime2" show-overflow-tooltip width="180"/>
|
|
|
|
- <el-table-column label="状态" align="center" prop="rectifyStatus" show-overflow-tooltip width="100">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- {{scope.row.rectifyStatus==1?'复核完毕':(scope.row.rectifyStatus==2?'未整改':(scope.row.rectifyStatus==3?'已整改':(scope.row.rectifyStatus==4?'暂无法整改':'')))}}
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- <pagination :page-sizes="[20, 30, 40, 50]"
|
|
|
|
- v-show="total>0"
|
|
|
|
- :total="total"
|
|
|
|
- :page.sync="queryParams.pageNum"
|
|
|
|
- :limit.sync="queryParams.pageSize"
|
|
|
|
- @pagination="getList"
|
|
|
|
- />
|
|
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -289,11 +291,6 @@
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
.safetyHazardStatistics{
|
|
.safetyHazardStatistics{
|
|
- flex:1;
|
|
|
|
- display: flex;
|
|
|
|
- flex-direction: column;
|
|
|
|
- overflow: hidden;
|
|
|
|
- padding:20px;
|
|
|
|
.form-box{
|
|
.form-box{
|
|
.form-dropdown-box{
|
|
.form-dropdown-box{
|
|
display: flex;
|
|
display: flex;
|