<template>
|
<div class="main">
|
<div class="main_header">
|
<div class="header_item">
|
<span class="header_label">环号:</span>
|
<el-input v-model="ringNum" clearable placeholder="请输入环号"></el-input>
|
</div>
|
<div class="header_item">
|
<span class="header_label">块号:</span>
|
<el-select v-model="blockNum" clearable placeholder="请选择块号">
|
<el-option
|
v-for="item in blockData"
|
:key="item.dictId"
|
:label="item.dictName"
|
:value="item.dictId">
|
</el-option>
|
</el-select>
|
</div>
|
<div class="header_item">
|
<span class="header_label">配筋:</span>
|
<el-select v-model="reinforcement" clearable placeholder="请选择配筋">
|
<el-option
|
v-for="item in reinforcementData"
|
:key="item.dictId"
|
:label="item.dictName"
|
:value="item.dictId">
|
</el-option>
|
</el-select>
|
</div>
|
<div class="header_item">
|
<span class="header_label">注浆孔:</span>、
|
<el-select v-model="groutingHoles" clearable placeholder="请输入注浆孔">
|
<el-option
|
v-for="item in groutingHolesData"
|
:key="item.dictId"
|
:label="item.dictName"
|
:value="item.dictId">
|
</el-option>
|
</el-select>
|
</div>
|
<div class="header_item">
|
<span class="header_label">入池时间:</span>
|
<el-date-picker
|
v-model="putTime"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
type="datetimerange"
|
range-separator="至"
|
start-placeholder="开始日期"
|
end-placeholder="结束日期">
|
</el-date-picker>
|
</div>
|
<div class="header_item">
|
<span class="header_label">出池时间:</span>
|
<el-date-picker
|
v-model="outTime"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
type="datetimerange"
|
range-separator="至"
|
start-placeholder="开始日期"
|
end-placeholder="结束日期">
|
</el-date-picker>
|
</div>
|
<div class="header_item">
|
<el-button icon="el-icon-search" @click="searchCisternRecordListList(true)">查询</el-button>
|
</div>
|
</div>
|
<div class="main_content">
|
<el-table
|
v-loading="loading"
|
:data="recordList"
|
height="100%" >
|
<el-table-column label="序号" width="60" align="center">
|
<template #default="scope">
|
<span>{{(pageNum - 1) * pageSize + scope.$index + 1}}</span>
|
</template>
|
</el-table-column>
|
<el-table-column prop="ringNum" label="环号" align="center"></el-table-column>
|
<el-table-column prop="proName" label="项目名称" align="center"></el-table-column>
|
<el-table-column prop="sizeName" label="尺寸" align="center"></el-table-column>
|
<el-table-column prop="blockNumName" label="块号" align="center"></el-table-column>
|
<el-table-column prop="reinforcementName" label="配筋" align="center"></el-table-column>
|
<el-table-column prop="turnName" label="转向" align="center"></el-table-column>
|
<el-table-column prop="groutingHolesName" label="注浆孔" align="center"></el-table-column>
|
<el-table-column prop="outCulTime" label="出池时间" align="center"></el-table-column>
|
<el-table-column prop="outCulUser" label="出池操作人" align="center"></el-table-column>
|
<el-table-column prop="diffDescript" label="水养时长" align="center"></el-table-column>
|
<el-table-column prop="createTime" label="入池时间" align="center"></el-table-column>
|
<el-table-column prop="createUser" label="入池操作人" align="center"></el-table-column>
|
</el-table>
|
</div>
|
<div class="main_footer">
|
<el-pagination
|
background
|
@current-change="changePageNum"
|
@size-change="changePageSize"
|
:current-page="pageNum"
|
:page-sizes="[10, 20, 50, 100]"
|
layout="total, sizes, prev, pager, next, jumper"
|
:total="total">
|
</el-pagination>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
name: 'RecordIndex',
|
props: {
|
waterId: {
|
type: String
|
}
|
},
|
data() {
|
return {
|
ringNum: '',
|
blockNum: '',
|
blockData: [],
|
reinforcement: '',
|
reinforcementData: [],
|
groutingHoles: '',
|
groutingHolesData: [],
|
putTime: '',
|
outTime: '',
|
pageNum: 1,
|
pageSize: 10,
|
total: 0,
|
loading: false,
|
recordList: [],
|
}
|
},
|
mounted() {
|
this.searchBlockDictionary();
|
this.searchReinforcementDictionary();
|
this.searchGroutingHolesDictionary()
|
this.searchCisternRecordListList(true);
|
},
|
methods: {
|
// 查询块号信息
|
async searchBlockDictionary() {
|
const { data } = await this.$api.Dictionary.searchDictionary({
|
pageNum: 1,
|
pageSize: 1000000,
|
dictType: '5',
|
})
|
this.blockData = data.list;
|
},
|
// 查询配筋信息
|
async searchReinforcementDictionary() {
|
const { data } = await this.$api.Dictionary.searchDictionary({
|
pageNum: 1,
|
pageSize: 1000000,
|
dictType: '2',
|
})
|
this.reinforcementData = data.list;
|
},
|
// 查询注浆孔信息
|
async searchGroutingHolesDictionary() {
|
const { data } = await this.$api.Dictionary.searchDictionary({
|
pageNum: 1,
|
pageSize: 1000000,
|
dictType: '4',
|
})
|
this.groutingHolesData = data.list;
|
},
|
// 查询水养池实时监控信息
|
searchCisternRecordListList(bol) {
|
if(bol) {
|
this.pageNum = 1;
|
}
|
this.loading = true;
|
this.recordList = [];
|
this.$api.DuctpiecePLM.searchCisternRecordListList({
|
pageNum: this.pageNum,
|
pageSize: this.pageSize,
|
ringNum: this.ringNum,
|
waterCultivatedId: this.waterId,
|
blockNum: this.blockNum,
|
reinforcement: this.reinforcement,
|
groutingHoles: this.groutingHoles,
|
startTime: this.putTime ? this.putTime[0] : '',
|
endTime: this.putTime ? this.putTime[1] : '',
|
outCulStartTime: this.outTime ? this.outTime[0] : '',
|
outCulEndTime: this.outTime ? this.outTime[1] : '',
|
}).then((res) => {
|
if(res.success) {
|
this.total = res.data.total;
|
this.recordList = res.data.list;
|
}
|
this.loading = false;
|
}).catch(() => {
|
this.loading = false;
|
})
|
},
|
// 切换页数
|
changePageNum(page) {
|
this.pageNum = page;
|
this.searchCisternRecordListList();
|
},
|
// 切换每页条数
|
changePageSize(size) {
|
this.pageSize = size;
|
this.searchCisternRecordListList();
|
},
|
}
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
@import '@/style/layout-main.scss';
|
|
.main {
|
height: 100% !important;
|
background: none !important;
|
}
|
|
::v-deep .el-table tr {
|
&:nth-of-type(even) {
|
background: #082E56 !important;
|
}
|
}
|
</style>
|