| | |
| | | <div class="filter-container"> |
| | | <div class="basic_search"> |
| | | <span>责任部门:</span> |
| | | <el-input v-model="listQuery.filter.riskUnitName" style="width:200px"> |
| | | </el-input> |
| | | <el-select v-model="listQuery.filter.hazardDep" clearable filterable style="width:200px"> |
| | | <el-option |
| | | v-for="item in departmentList" |
| | | :key="item.id" |
| | | :label="item.department" |
| | | :value="item.department" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="basic_search"> |
| | | <span>责任人:</span> |
| | | <el-input v-model="listQuery.filter.hazardLiablePerson" style="width:200px"> |
| | | </el-input> |
| | | <el-select v-model="listQuery.filter.hazardLiablePerson" clearable filterable style="width:200px"> |
| | | <el-option |
| | | v-for="item in userList" |
| | | :key="item.id" |
| | | :label="item.realname" |
| | | :value="item.realname" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="basic_search"> |
| | | <span>单元名称:</span> |
| | |
| | | import { computePageCount } from '@/utils' |
| | | import { addAnalyseUnit, deleteAnalyseUnit, getAnalyseUnitList, updateAnalyseUnit } from '@/api/riskLevelManage' |
| | | import {getAllDepartment, getDepartmentList} from "../../../../api/departmentManage"; |
| | | import {safetyInspectionItemName} from "../../../../api/safetySelfInspection"; |
| | | export default { |
| | | name: 'index', |
| | | filters: { |
| | |
| | | tableKey: 0, |
| | | analyseUnitData: [], |
| | | departmentList:[], |
| | | userList:[], |
| | | listLoading: false, |
| | | pageSize: 10, |
| | | recordTotal: 0, |
| | |
| | | created() { |
| | | this.getAnalyseUnitData() |
| | | this.getDepartment() |
| | | this.getUser() |
| | | }, |
| | | methods: { |
| | | async getAnalyseUnitData(){ |
| | |
| | | }) |
| | | } |
| | | }, |
| | | async getUser(){ |
| | | let res = await safetyInspectionItemName() |
| | | if(res.data.code === '200'){ |
| | | this.userList = res.data.result |
| | | }else{ |
| | | this.$message({ |
| | | message:res.data.message, |
| | | type:'warning' |
| | | }) |
| | | } |
| | | }, |
| | | showAnalyseUnitForm(value,type){ |
| | | this.analyseUnitVisible = true |
| | | this.$nextTick(() =>{ |