2022-08-23 16:40:21 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="fullHeight">
|
|
|
|
|
<div class="searchBox whiteBlock">
|
2022-08-25 10:36:04 +08:00
|
|
|
<el-input
|
|
|
|
|
v-model="queryStr"
|
2022-08-23 16:40:21 +08:00
|
|
|
:placeholder="$t('message.personnelPosition.please_enter')"
|
2022-08-25 10:36:04 +08:00
|
|
|
:clearable = "true"
|
|
|
|
|
@change="inptValue"
|
2022-08-23 16:40:21 +08:00
|
|
|
></el-input>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
plain
|
|
|
|
|
@click="getPointList"
|
|
|
|
|
>{{$t('message.personnelPosition.beaconManage.query')}}</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
@click="toRefresh"
|
|
|
|
|
>{{$t('message.personnelPosition.beaconManage.refresh')}}</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="table_wrap whiteBlock">
|
|
|
|
|
<el-table class="tables" :data="tableData">
|
2022-08-25 10:36:04 +08:00
|
|
|
<el-table-column prop="checkingPointName" label="巡检点" align="center"></el-table-column>
|
2022-08-23 16:40:21 +08:00
|
|
|
<el-table-column prop="position" label="巡检位置" align="center"></el-table-column>
|
2022-08-25 10:36:04 +08:00
|
|
|
<el-table-column prop="checkingPointUserName" label="巡检人" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="createDate" label="巡检时间" align="center"></el-table-column>
|
2022-08-23 16:40:21 +08:00
|
|
|
</el-table>
|
|
|
|
|
<el-pagination
|
|
|
|
|
class="pagerBox"
|
|
|
|
|
@size-change="handleSizeChange"
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
|
:current-page="pageNo"
|
|
|
|
|
:page-sizes="$store.state.PAGESIZRS"
|
|
|
|
|
:page-size="pageSize"
|
|
|
|
|
layout="total, sizes, prev, pager, next"
|
2022-12-03 18:06:25 +08:00
|
|
|
:total="Number(total)"
|
2022-08-23 16:40:21 +08:00
|
|
|
background
|
|
|
|
|
></el-pagination>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2022-08-25 10:36:04 +08:00
|
|
|
import {
|
|
|
|
|
getCheckPointApi
|
|
|
|
|
} from "@/assets/js/api/insect.js";
|
2022-08-23 16:40:21 +08:00
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2022-08-25 10:36:04 +08:00
|
|
|
queryStr: '',
|
|
|
|
|
tableData: [],
|
2022-08-23 16:40:21 +08:00
|
|
|
total: 0,
|
|
|
|
|
pageNo: 1,
|
|
|
|
|
pageSize: 10
|
|
|
|
|
};
|
|
|
|
|
},
|
2022-08-25 10:36:04 +08:00
|
|
|
mounted(){
|
|
|
|
|
this.getPointList()
|
|
|
|
|
},
|
2022-08-23 16:40:21 +08:00
|
|
|
methods: {
|
|
|
|
|
//查看条数
|
|
|
|
|
handleSizeChange(val) {
|
|
|
|
|
this.pageSize = val;
|
|
|
|
|
this.getPointList();
|
|
|
|
|
},
|
|
|
|
|
//查看页
|
|
|
|
|
handleCurrentChange(val) {
|
|
|
|
|
this.pageNo = val;
|
|
|
|
|
this.getPointList();
|
|
|
|
|
},
|
2022-08-25 10:36:04 +08:00
|
|
|
inptValue(val){
|
|
|
|
|
console.log('输入的内容',val)
|
|
|
|
|
},
|
2022-08-23 16:40:21 +08:00
|
|
|
// 查询
|
2022-08-25 10:36:04 +08:00
|
|
|
getPointList() {
|
|
|
|
|
let data = new FormData();//new出来的对象
|
|
|
|
|
data.append("queryStr",this.queryStr);
|
|
|
|
|
data.append("projectSn",this.$store.state.projectSn);
|
|
|
|
|
data.append("pageNo",this.pageNo);
|
|
|
|
|
data.append("pageSize",this.pageSize);
|
|
|
|
|
getCheckPointApi(data).then((res)=>{
|
|
|
|
|
console.log('res111111111',res)
|
|
|
|
|
this.tableData = res.result.records
|
2022-12-03 18:06:25 +08:00
|
|
|
this.total = Number(res.result.total)
|
2022-08-25 10:36:04 +08:00
|
|
|
})
|
|
|
|
|
},
|
2022-08-23 16:40:21 +08:00
|
|
|
// 刷新
|
2022-08-25 10:36:04 +08:00
|
|
|
toRefresh() {
|
|
|
|
|
this.queryStr = ''
|
2022-08-25 10:37:33 +08:00
|
|
|
this.getPointList()
|
2022-08-25 10:36:04 +08:00
|
|
|
}
|
2022-08-23 16:40:21 +08:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
|
2022-08-25 10:36:04 +08:00
|
|
|
<style lang="less" scoped>
|
|
|
|
|
::v-deep .el-input {
|
|
|
|
|
width:400px;
|
|
|
|
|
margin-right: 15px;
|
|
|
|
|
}
|
2022-08-23 16:40:21 +08:00
|
|
|
</style>
|