| | |
| | | method: 'post', |
| | | }); |
| | | } |
| | | |
| | | export function getInspectionCount(data) { |
| | | return request({ |
| | | headers:{ |
| | | 'Authorization': getToken() |
| | | }, |
| | | url: process.env.BASE_API+'/safecheck/task/count', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | } |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div class="filter-container"> |
| | | <div class="basic_search"> |
| | | <span>开始时间:</span> |
| | | <el-date-picker v-model="listQuery.startTime" value-format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="巡检开始时间"></el-date-picker> |
| | | </div> |
| | | <div class="basic_search"> |
| | | <span>结束时间:</span> |
| | | <el-date-picker v-model="listQuery.startTime" value-format="yyyy-MM-dd HH:mm:ss" type="datetime" placeholder="巡检结束时间"></el-date-picker> |
| | | </div> |
| | | <div class="basic_search"> |
| | | <span>任务类型:</span> |
| | | <el-select v-model="listQuery.type"> |
| | | <el-option |
| | | v-for="item in typeList" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.name" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="basic_search"> |
| | | <span>任务单元状态列表:</span> |
| | | <el-select v-model="listQuery.statusList"> |
| | | <el-option |
| | | v-for="item in statusListList" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.name" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="basic_search"> |
| | | <span>巡检任务创建人员:</span> |
| | | <el-select v-model="listQuery.createUid" filterable clearable> |
| | | <el-option |
| | | v-for="item in userList" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.realname" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="basic_search"> |
| | | <span>异常通知人员:</span> |
| | | <el-select v-model="listQuery.noticeUid" filterable clearable> |
| | | <el-option |
| | | v-for="item in userList" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.realname" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="basic_search"> |
| | | <span>执行巡检人员:</span> |
| | | <el-select v-model="listQuery.execUid" filterable clearable> |
| | | <el-option |
| | | v-for="item in userList" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.realname" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <el-button class="filter-item" style="margin-left: 10px;margin-top: 10px" type="primary" icon="el-icon-refresh" @click="refreshHandle">搜索</el-button> |
| | | </div> |
| | | <div class="table_content"> |
| | |
| | | highlight-current-row |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column type="expand"> |
| | | <template slot-scope="scope"> |
| | | <el-table |
| | | v-loading="listLoading" |
| | | :key="tableKey" |
| | | :data="scope.row.unitList" |
| | | border |
| | | fit |
| | | highlight-current-row |
| | | style="width: 100%;" |
| | | > |
| | | <el-table-column label="序号" type="index" width="150" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="隐患排查内容" prop="content" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="巡检内容" prop="info" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="巡检照片" prop="img" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="状态" prop="status" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" width="280" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" @click="showMeasureDetail(scope.row)">详情</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="任务名称" prop="title" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="检查类型" prop="type" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="检查频次" prop="intervalSeconds" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="任务开始时间" prop="startTime" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="任务结束时间" prop="endTime" align="center"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.type | parseType}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="异常通知人" prop="noticeUname" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="巡检人" prop="execUname" align="center"> |
| | | </el-table-column> |
| | | <el-table-column label="检查日期时间" prop="updateTime" align="center"> |
| | | <el-table-column label="任务状态" prop="status" align="center"> |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.status | parseStatus}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" width="280" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | |
| | | <br> |
| | | <el-pagination |
| | | v-show="recordTotal>0" |
| | | :current-page="currentPage" |
| | | :current-page="listQuery.page" |
| | | :page-sizes="[10, 20, 30, 50]" |
| | | :page-size="pageSize" |
| | | :page-size="listQuery.pageSize" |
| | | :total="recordTotal" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | background |
| | |
| | | export default { |
| | | name: 'index', |
| | | filters: { |
| | | parseMain(type){ |
| | | parseType(type){ |
| | | if(type === 1){ |
| | | return "是" |
| | | }else if(type === 0){ |
| | | return "否" |
| | | return "日常检查" |
| | | }else{ |
| | | return "周期检查" |
| | | } |
| | | }, |
| | | parseStatus(status){ |
| | | if(status === 1){ |
| | | return "任务开启" |
| | | }else{ |
| | | return "任务关闭" |
| | | } |
| | | }, |
| | | }, |
| | |
| | | tableKey: 0, |
| | | inspectionRecordData: [], |
| | | departmentList:[], |
| | | userList:[], |
| | | typeList:[{id:1,name:'日常检查'},{id:2,name:'周期检查'}], |
| | | statusListList:[{id:1,name:'待巡检'},{id:2,name:'巡检中'},{id:3,name:'已完成'},{id:4,name:'超时未巡检'},{id:5,name:'已取消'}], |
| | | listLoading: false, |
| | | pageSize: 10, |
| | | recordTotal: 0, |
| | |
| | | createUid: null, |
| | | endTime: null, |
| | | execUid: null, |
| | | execUname: null, |
| | | noticeUid: null, |
| | | page: 1, |
| | | pageSize:10, |
| | | startTime: null, |
| | | result:null, |
| | | startTime: null, |
| | | statusList: null, |
| | | type: null |
| | | }, |
| | |
| | | this.listLoading = true |
| | | let res = await getInspectionRecord(this.listQuery) |
| | | if(res.data.code === '200'){ |
| | | this.recordTotal = res.data.result.total |
| | | this.pageSize = res.data.result.size |
| | | this.pageTotal = computePageCount(res.data.result.total, res.data.result.size) |
| | | this.currentPage = res.data.result.current |
| | | this.analyseUnitData = res.data.result.records |
| | | this.recordTotal = JSON.parse(res.data.message).total |
| | | this.inspectionRecordData = res.data.result |
| | | }else{ |
| | | this.$message({ |
| | | message:res.data.message, |
| | |
| | | .basic_search{ |
| | | display:inline-block; |
| | | padding-bottom: 10px; |
| | | padding-left: 10px; |
| | | } |
| | | .analyseUnit_input{ |
| | | width:320px; |
| | | width:200px; |
| | | } |
| | | </style> |
| | |
| | | <div class="inspectionStatistics_part"> |
| | | <div class="inspectionStatistics_part_person"> |
| | | <div class="inspectionStatistics_part_title">{{"巡检人员统计"}}</div> |
| | | <div class="inspectionStatistics_part_time"> |
| | | <el-date-picker |
| | | v-model="value1" |
| | | type="daterange" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | @change="changeInspectionPerson" |
| | | end-placeholder="结束日期"> |
| | | </el-date-picker></div> |
| | | <el-divider></el-divider> |
| | | <div class="inspectionStatistics_part_body"> |
| | | <inspection-person></inspection-person> |
| | |
| | | <div class="inspectionStatistics_part"> |
| | | <div class="inspectionStatistics_part_complete"> |
| | | <div class="inspectionStatistics_part_title">{{"巡检完成统计"}}</div> |
| | | <div class="inspectionStatistics_part_time"> |
| | | <el-date-picker |
| | | v-model="value2" |
| | | type="daterange" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期"> |
| | | </el-date-picker> |
| | | </div> |
| | | <el-divider></el-divider> |
| | | <div class="inspectionStatistics_part_body"> |
| | | <inspection-complete></inspection-complete> |
| | |
| | | <div class="inspectionStatistics_part"> |
| | | <div class="inspectionStatistics_part_unusual"> |
| | | <div class="inspectionStatistics_part_title">{{"巡检异常统计"}}</div> |
| | | <div class="inspectionStatistics_part_time"> |
| | | <el-date-picker |
| | | v-model="value3" |
| | | type="daterange" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期"> |
| | | </el-date-picker> |
| | | </div> |
| | | <el-divider></el-divider> |
| | | <div class="inspectionStatistics_part_body"> |
| | | <inspection-unusual></inspection-unusual> |
| | |
| | | import inspectionComplete from './components/inspectionComplete/index' |
| | | import inspectionUnusual from './components/inspectionUnusual/index' |
| | | import todayUnusual from './components/todayUnusual/index' |
| | | import { getInspectionCount } from '../../../../api/inspectionTask' |
| | | export default { |
| | | name: "index", |
| | | data() { |
| | | return { |
| | | value1:['',''], |
| | | value2:['',''], |
| | | value3:['',''], |
| | | listQuery:{ |
| | | "dateList": [ |
| | | "", |
| | | "" |
| | | ], |
| | | "endDate": "", |
| | | "execUid": null, |
| | | "startDate": "" |
| | | } |
| | | } |
| | | }, |
| | | components : { |
| | | inspectionPerson, |
| | | inspectionComplete, |
| | | inspectionUnusual, |
| | | todayUnusual |
| | | }, |
| | | created() { |
| | | this.setTimeValue() |
| | | this.getInspectionCount() |
| | | }, |
| | | methods: { |
| | | setTimeValue() { |
| | | let newTime = new Date() |
| | | this.value1 = [(newTime.getFullYear()+ '-' + (newTime.getMonth() + 1) + '-' + 1).toString() + ' ' + '00:00:00',(newTime.getFullYear()+ '-' + (newTime.getMonth() + 1) + '-' + newTime.getDate()).toString() + ' ' + '23:59:59'] |
| | | this.value2 = [(newTime.getFullYear()+ '-' + (newTime.getMonth() + 1) + '-' + 1).toString() + ' ' + '00:00:00',(newTime.getFullYear()+ '-' + (newTime.getMonth() + 1) + '-' + newTime.getDate()).toString() + ' ' + '23:59:59'] |
| | | this.value3 = [(newTime.getFullYear()+ '-' + (newTime.getMonth() + 1) + '-' + 1).toString() + ' ' + '00:00:00',(newTime.getFullYear()+ '-' + (newTime.getMonth() + 1) + '-' + newTime.getDate()).toString() + ' ' + '23:59:59'] |
| | | }, |
| | | async getInspectionCount() { |
| | | this.listQuery.startDate = this.value1[0] |
| | | this.listQuery.endDate = this.value1[1] |
| | | let res = await getInspectionCount(this.listQuery) |
| | | debugger |
| | | }, |
| | | async changeInspectionPerson() { |
| | | let res = await getInspectionCount(this.listQuery) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | |
| | | height:60px; |
| | | line-height: 60px; |
| | | padding-left:20px; |
| | | display: inline-block; |
| | | width:50%; |
| | | } |
| | | .inspectionStatistics_part_body{ |
| | | width:100%; |
| | | height:410px; |
| | | } |
| | | .inspectionStatistics_part_time{ |
| | | display: inline-block; |
| | | |
| | | } |
| | | </style> |
| | |
| | | <span>巡检任务类型:</span> |
| | | <el-select v-model="listQuery.type"> |
| | | <el-option |
| | | v-for="item in departmentList" |
| | | v-for="item in typeList" |
| | | :key="item.id" |
| | | :value="item.department" |
| | | :label="item.department" |
| | | :value="item.id" |
| | | :label="item.name" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | |
| | | <span>巡检任务状态:</span> |
| | | <el-select v-model="listQuery.status"> |
| | | <el-option |
| | | v-for="item in departmentList" |
| | | v-for="item in statusList" |
| | | :key="item.id" |
| | | :value="item.department" |
| | | :label="item.department" |
| | | :value="item.id" |
| | | :label="item.name" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="basic_search"> |
| | | <span>巡检任务创建人员:</span> |
| | | <el-select v-model="listQuery.createUid"> |
| | | <el-select v-model="listQuery.createUid" filterable clearable> |
| | | <el-option |
| | | v-for="item in departmentList" |
| | | v-for="item in userList" |
| | | :key="item.id" |
| | | :value="item.department" |
| | | :label="item.department" |
| | | :value="item.id" |
| | | :label="item.realname" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="basic_search"> |
| | | <span>异常通知人员:</span> |
| | | <el-select v-model="listQuery.noticeUid"> |
| | | <el-select v-model="listQuery.noticeUid" filterable clearable> |
| | | <el-option |
| | | v-for="item in departmentList" |
| | | v-for="item in userList" |
| | | :key="item.id" |
| | | :value="item.department" |
| | | :label="item.department" |
| | | :value="item.id" |
| | | :label="item.realname" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="basic_search"> |
| | | <span>执行巡检人员:</span> |
| | | <el-select v-model="listQuery.execUid"> |
| | | <el-select v-model="listQuery.execUid" filterable clearable> |
| | | <el-option |
| | | v-for="item in departmentList" |
| | | v-for="item in userList" |
| | | :key="item.id" |
| | | :value="item.department" |
| | | :label="item.department" |
| | | :value="item.id" |
| | | :label="item.realname" |
| | | ></el-option> |
| | | </el-select> |
| | | </div> |
| | |
| | | <br> |
| | | <el-pagination |
| | | v-show="recordTotal>0" |
| | | :current-page="currentPage" |
| | | :current-page="listQuery.page" |
| | | :page-sizes="[10, 20, 30, 50]" |
| | | :page-size="pageSize" |
| | | :page-size="listQuery.pageSize" |
| | | :total="recordTotal" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | background |
| | |
| | | userList:[], |
| | | noticeUidList:[], |
| | | execUidList:[], |
| | | statusList:[{name:'任务开启',id:1},{id:2,name:'任务关闭'}], |
| | | intervalSecondsList:[{id:7200,name:'2小时'},{id:21600,name:'6小时'},{id:43200,name:'12小时'},{id:86400,name:'1天'},{id:17280,name:'2天'}], |
| | | noticeSecondsList:[{id:600,name:'10分'},{id:3600,name:'1小时'},{id:7200,name:'2小时'},{id:21600,name:'6小时'},{id:43200,name:'12小时'},{id:86400,name:'1天'}], |
| | | effectSecondsList:[{id:1800,name:'30分'},{id:3600,name:'1小时'},{id:7200,name:'2小时'},{id:21600,name:'6小时'},{id:43200,name:'12小时'},{id:86400,name:'1天'}], |
| | |
| | | startTime: "", |
| | | status:"", |
| | | type: "", |
| | | page: 10, |
| | | pageSize: 1, |
| | | page: 1, |
| | | pageSize: 10, |
| | | |
| | | }, |
| | | } |
| | |
| | | this.listLoading = true |
| | | let res = await getInspectionTask(this.listQuery) |
| | | if(res.data.code === '200'){ |
| | | this.recordTotal = res.data.result.total |
| | | this.pageSize = res.data.result.size |
| | | this.pageTotal = computePageCount(res.data.result.total, res.data.result.size) |
| | | this.currentPage = res.data.result.current |
| | | this.recordTotal = JSON.parse(res.data.message).total |
| | | this.inspectionTaskData = res.data.result |
| | | }else if(res.data.code === '300'){ |
| | | this.inspectionTaskData = [] |
| | |
| | | this.getInspectionTaskData() |
| | | }, |
| | | handleCurrentChange(val){ |
| | | this.listQuery.pageIndex = val |
| | | this.listQuery.page = val |
| | | this.getInspectionTaskData() |
| | | }, |
| | | } |
| | |
| | | this.loaded = true; |
| | | |
| | | map.addModel({ |
| | | link: 'http://model.szwutu.cn:8100/data1/namiso-ub3dm/tileset.json', |
| | | link: 'http://222.92.213.21:8006/zhongtaiweb/tileset.json', |
| | | name: '商业园区', |
| | | callback: tileset => { |
| | | var boundingSphere = tileset.boundingSphere; |
| | |
| | | <br> |
| | | <el-pagination |
| | | v-show="recordTotal>0" |
| | | :current-page="currentPage" |
| | | :current-page="listQuery.pageIndex" |
| | | :page-sizes="[10, 20, 30, 50]" |
| | | :page-size="pageSize" |
| | | :page-size="listQuery.pageSize" |
| | | :total="recordTotal" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | background |
| | |
| | | let res = await getRiskSourceList(this.listQuery) |
| | | if(res.data.code === '200'){ |
| | | this.recordTotal =JSON.parse(res.data.message).totalCount |
| | | this.pageSize = JSON.parse(res.data.message).pageSize |
| | | this.pageTotal = computePageCount(this.recordTotal, this.pageSize) |
| | | this.currentPage = JSON.parse(res.data.message).pageIndex |
| | | this.riskSourceData = res.data.result |
| | | }else{ |
| | | this.$message({ |