县级监测数据
This commit is contained in:
@@ -77,7 +77,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|
||||||
<a-modal v-model:visible="visible" width="700px" title="监测指标" @ok="handleOk" @cancel="handleCancel">
|
<a-modal v-model:visible="visible" width="760px" title="监测指标" @ok="handleOk" @cancel="handleCancel">
|
||||||
<div :style="{ borderBottom: '1px solid #E9E9E9', marginBottom: '5px', paddingBottom: '5px' }">
|
<div :style="{ borderBottom: '1px solid #E9E9E9', marginBottom: '5px', paddingBottom: '5px' }">
|
||||||
<a-checkbox
|
<a-checkbox
|
||||||
v-model:checked="checkAll"
|
v-model:checked="checkAll"
|
||||||
|
|||||||
@@ -9,18 +9,26 @@
|
|||||||
@search="searchData"
|
@search="searchData"
|
||||||
@exportFile="exportFile"
|
@exportFile="exportFile"
|
||||||
@filterColumns="changeFilter"
|
@filterColumns="changeFilter"
|
||||||
|
:visiable="visiable"
|
||||||
|
:loading="loading"
|
||||||
/>
|
/>
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
<ele-pro-table
|
<ele-pro-table
|
||||||
v-model:selection="selectionList"
|
v-model:selection="selectionList"
|
||||||
ref="table"
|
ref="table"
|
||||||
row-key="drinkingWaterId"
|
row-key="drinkingWaterId"
|
||||||
:datasource="url"
|
:datasource="datasource"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:where="where"
|
:where="where"
|
||||||
:scroll="{ x: 'max-content' }"
|
:scroll="{ x: 'max-content' }"
|
||||||
@done="(d) => (data = d.data)"
|
@done="(d) => (data = d.data)"
|
||||||
>
|
>
|
||||||
|
<template #footer>
|
||||||
|
<div class="footer">
|
||||||
|
饮用水源水质监测累积月份统计样品数:10个
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
<template #waterCode="{ text, record }">
|
<template #waterCode="{ text, record }">
|
||||||
<span>
|
<span>
|
||||||
{{
|
{{
|
||||||
@@ -54,7 +62,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import XLSX from "xlsx";
|
import XLSX from "xlsx";
|
||||||
import {
|
import {
|
||||||
countyPageBsaeListUrl
|
countyPageBsaeData
|
||||||
} from "@/api/ecology/new-drinking-water";
|
} from "@/api/ecology/new-drinking-water";
|
||||||
import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
|
import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
|
||||||
import { tableColumns } from "./../colums/base";
|
import { tableColumns } from "./../colums/base";
|
||||||
@@ -79,14 +87,18 @@ export default {
|
|||||||
return [];
|
return [];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
visiable:{
|
||||||
|
typeof:Boolean
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
current:0,
|
||||||
data: [],
|
data: [],
|
||||||
locale,
|
locale,
|
||||||
bill: {},
|
bill: {},
|
||||||
// 表格数据接口
|
// 表格数据接口
|
||||||
url: countyPageBsaeListUrl,
|
datasource: [],
|
||||||
selection: [],
|
selection: [],
|
||||||
columns: [...tableColumns],
|
columns: [...tableColumns],
|
||||||
|
|
||||||
@@ -94,11 +106,11 @@ export default {
|
|||||||
regionLevelOptions: [],
|
regionLevelOptions: [],
|
||||||
// 表格搜索条件
|
// 表格搜索条件
|
||||||
where: {
|
where: {
|
||||||
checked: 1,
|
|
||||||
ionLevel:'县级'
|
|
||||||
},
|
},
|
||||||
// 表格选中数据
|
// 表格选中数据
|
||||||
selectionList: [],
|
selectionList: [],
|
||||||
|
loading:false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@@ -110,6 +122,23 @@ export default {
|
|||||||
// this.loadOptionData();
|
// this.loadOptionData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
// 获取列表数据
|
||||||
|
getPageData(){
|
||||||
|
this.loading = true;
|
||||||
|
countyPageBsaeData(this.where).then(res=>{
|
||||||
|
this.loading = false;
|
||||||
|
if(res.data.code){
|
||||||
|
this.$message.error(res.data.msg);
|
||||||
|
this.datasource = []
|
||||||
|
}else{
|
||||||
|
this.datasource = res.data.data
|
||||||
|
}
|
||||||
|
}).catch(()=>{
|
||||||
|
this.loading = false;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
JumpFieldClick(record, column) {
|
JumpFieldClick(record, column) {
|
||||||
console.log(column.dataIndex);
|
console.log(column.dataIndex);
|
||||||
},
|
},
|
||||||
@@ -140,24 +169,25 @@ export default {
|
|||||||
|
|
||||||
// 执行搜索
|
// 执行搜索
|
||||||
searchData(data) {
|
searchData(data) {
|
||||||
this.where = {...this.where,...data};
|
this.where = data;
|
||||||
this.$emit("search", this.where);
|
this.$emit("search", this.where);
|
||||||
this.reload();
|
this.reload();
|
||||||
},
|
},
|
||||||
/* 刷新表格 */
|
/* 刷新表格 */
|
||||||
reload() {
|
reload() {
|
||||||
this.$refs.table.reload({
|
this.getPageData()
|
||||||
where: this.where,
|
// this.$refs.table.reload({
|
||||||
});
|
// where: this.where,
|
||||||
|
// });
|
||||||
},
|
},
|
||||||
/* 重置搜索 */
|
/* 重置搜索 */
|
||||||
reset() {
|
reset() {
|
||||||
this.where = {
|
this.where = {
|
||||||
checked: 1,
|
checked: 1,
|
||||||
ionLevel:'县级'
|
|
||||||
};
|
};
|
||||||
this.reload();
|
this.reload();
|
||||||
},
|
},
|
||||||
|
|
||||||
exportFile() {
|
exportFile() {
|
||||||
const columns = [...tableColumns];
|
const columns = [...tableColumns];
|
||||||
const arr = [];
|
const arr = [];
|
||||||
@@ -175,4 +205,7 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
.footer{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -0,0 +1,99 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<a-tabs v-model:activeKey="activeKey">
|
||||||
|
<a-tab-pane tab="监测数据报送表" key="base" >
|
||||||
|
<base-statistic :searchForm="searchForm" :filterKeys="filterKeys" @search="changeSearch" @changeFilter="changeFilter" :visiable="activeKey=='base'"></base-statistic>
|
||||||
|
</a-tab-pane>
|
||||||
|
<!-- <a-tab-pane tab="报送情况说明表" key="base1">
|
||||||
|
<city-appraise :searchForm="searchForm" :filterKeys="filterKeys" @search="changeSearch" @changeFilter="changeFilter" :visiable="activeKey=='base1'"></city-appraise>
|
||||||
|
</a-tab-pane>
|
||||||
|
<a-tab-pane tab="取水量统计" key="base3">
|
||||||
|
<city-water-withdrawal :searchForm="searchForm" :filterKeys="filterKeys" @search="changeSearch" @changeFilter="changeFilter" :visiable="activeKey=='base3'"></city-water-withdrawal>
|
||||||
|
</a-tab-pane>
|
||||||
|
<a-tab-pane tab="超标评价" key="base4">
|
||||||
|
<city-over-standard :searchForm="searchForm" :filterKeys="filterKeys" @search="changeSearch" @changeFilter="changeFilter" :visiable="activeKey=='base4'"></city-over-standard>
|
||||||
|
</a-tab-pane>
|
||||||
|
<a-tab-pane tab="水质类别" key="base2" >
|
||||||
|
<city-water-quality :searchForm="searchForm" :filterKeys="filterKeys" @search="changeSearch" @changeFilter="changeFilter" :visiable="activeKey=='base2'"></city-water-quality>
|
||||||
|
</a-tab-pane>
|
||||||
|
|
||||||
|
<a-tab-pane tab="水质统计" key="base7" >
|
||||||
|
<water-quality-count :searchForm="searchForm" :filterKeys="filterKeys" @search="changeSearch" @changeFilter="changeFilter" :visiable="activeKey=='base7'"></water-quality-count>
|
||||||
|
</a-tab-pane>
|
||||||
|
<a-tab-pane tab="水质达标情况" key="base8" >
|
||||||
|
<water-quality-up :searchForm="searchForm" :filterKeys="filterKeys" @search="changeSearch" @changeFilter="changeFilter" :visiable="activeKey=='base8'"></water-quality-up>
|
||||||
|
</a-tab-pane>
|
||||||
|
<a-tab-pane tab="备用水源营养指数" key="base5">
|
||||||
|
<water-nutritional :searchForm="searchForm" :filterKeys="filterKeys" @search="changeSearch" @changeFilter="changeFilter" :visiable="activeKey=='base5'"></water-nutritional>
|
||||||
|
</a-tab-pane> -->
|
||||||
|
</a-tabs>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
//市级监测数据报表
|
||||||
|
import BaseStatistic from "./base.vue"
|
||||||
|
// 报送情况说明
|
||||||
|
// import cityAppraise from "./situation.vue"
|
||||||
|
// // 取水量
|
||||||
|
// import cityWaterWithdrawal from "./waterCount.vue"
|
||||||
|
// // 超标评价
|
||||||
|
// import cityOverStandard from './overStandard.vue'
|
||||||
|
// // 水质类别
|
||||||
|
// import cityWaterQuality from "./waterQuality.vue"
|
||||||
|
// // 水质统计
|
||||||
|
// import waterQualityCount from "./waterQualityCount.vue";
|
||||||
|
// // 水质达标情况
|
||||||
|
// import waterQualityUp from "./waterQualityUp.vue";
|
||||||
|
// //综合营养指数
|
||||||
|
|
||||||
|
// import waterNutritional from "./waterNutritional.vue"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'city-com',
|
||||||
|
components: {
|
||||||
|
BaseStatistic,
|
||||||
|
// cityAppraise,
|
||||||
|
// cityWaterQuality,
|
||||||
|
// waterQualityCount,
|
||||||
|
// waterQualityUp,
|
||||||
|
// waterNutritional,
|
||||||
|
// cityWaterWithdrawal,
|
||||||
|
// cityOverStandard
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
activeKey:'base',
|
||||||
|
searchForm:{
|
||||||
|
checked: 1,
|
||||||
|
page:1,
|
||||||
|
limit:10,
|
||||||
|
drinkingWaterAnalyse:{
|
||||||
|
regionLevel:"县级"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
filterKeys:[]
|
||||||
|
};
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
changeSearch(data){
|
||||||
|
this.searchForm = data
|
||||||
|
},
|
||||||
|
changeFilter(data){
|
||||||
|
this.filterKeys = data
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -7,7 +7,8 @@
|
|||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
|
|
||||||
<a-tab-pane key="county" tab="县级">
|
<a-tab-pane key="county" tab="县级">
|
||||||
<a-tabs v-model:active="activeCounty">
|
<County />
|
||||||
|
<!-- <a-tabs v-model:active="activeCounty">
|
||||||
<a-tab-pane tab="监测数据报送表" key="County">
|
<a-tab-pane tab="监测数据报送表" key="County">
|
||||||
<county-data :searchForm="searchForm" :filterKeys="filterKeys" @search="changeSearch" @changeFilter="changeFilter"></county-data>
|
<county-data :searchForm="searchForm" :filterKeys="filterKeys" @search="changeSearch" @changeFilter="changeFilter"></county-data>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
@@ -26,7 +27,7 @@
|
|||||||
<a-tab-pane tab="综合指数" key="base5">
|
<a-tab-pane tab="综合指数" key="base5">
|
||||||
<county-avg-index></county-avg-index>
|
<county-avg-index></county-avg-index>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
</a-tabs>
|
</a-tabs> -->
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
|
|
||||||
<a-tab-pane key="village" tab="农村">
|
<a-tab-pane key="village" tab="农村">
|
||||||
@@ -56,6 +57,7 @@
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
import City from './city/index.vue'
|
import City from './city/index.vue'
|
||||||
|
import County from './county/index.vue'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -65,36 +67,37 @@ import City from './city/index.vue'
|
|||||||
|
|
||||||
//县级监测数据报表
|
//县级监测数据报表
|
||||||
// import countyData from "./countyData.vue"
|
// import countyData from "./countyData.vue"
|
||||||
import countyData from "./county/base.vue"
|
// import countyData from "./county/base.vue"
|
||||||
|
|
||||||
import village from "./villageData.vue"
|
import village from "./villageData.vue"
|
||||||
|
|
||||||
import countyAppraise from "./countyAppraise.vue"
|
// import countyAppraise from "./countyAppraise.vue"
|
||||||
import villageAppraise from "./villageAppraise.vue"
|
import villageAppraise from "./villageAppraise.vue"
|
||||||
import countyWaterQuality from "./countyWaterQuality.vue"
|
// import countyWaterQuality from "./countyWaterQuality.vue"
|
||||||
import villageWaterQuality from "./villageWaterQuality.vue"
|
import villageWaterQuality from "./villageWaterQuality.vue"
|
||||||
import countyAvgIndex from "./county-avg-index.vue"
|
// import countyAvgIndex from "./county-avg-index.vue"
|
||||||
import villageAvgIndex from "./village-avg-index.vue"
|
import villageAvgIndex from "./village-avg-index.vue"
|
||||||
import countyMonthStandard from "./county-base-standard.vue"
|
// import countyMonthStandard from "./county-base-standard.vue"
|
||||||
import villageMonthStandard from "./village-base-standard.vue"
|
import villageMonthStandard from "./village-base-standard.vue"
|
||||||
import countyWaterWithdrawal from "./countyWaterWithdrawal.vue"
|
// import countyWaterWithdrawal from "./countyWaterWithdrawal.vue"
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DrinkWaterCollectIndex',
|
name: 'DrinkWaterCollectIndex',
|
||||||
components: {
|
components: {
|
||||||
City,
|
City,
|
||||||
countyData,
|
County,
|
||||||
|
// countyData,
|
||||||
village,
|
village,
|
||||||
countyAppraise,
|
// countyAppraise,
|
||||||
villageAppraise,
|
villageAppraise,
|
||||||
countyWaterQuality,
|
// countyWaterQuality,
|
||||||
villageWaterQuality,
|
villageWaterQuality,
|
||||||
countyAvgIndex,
|
// countyAvgIndex,
|
||||||
villageAvgIndex,
|
villageAvgIndex,
|
||||||
countyMonthStandard,
|
// countyMonthStandard,
|
||||||
villageMonthStandard,
|
villageMonthStandard,
|
||||||
countyWaterWithdrawal,
|
// countyWaterWithdrawal,
|
||||||
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
Reference in New Issue
Block a user