From 397fb28f4b07acbeedfaa8dbdd1b242e3e63d40d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=9E=97?= Date: Fri, 10 Dec 2021 11:39:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A5=AE=E7=94=A8=E6=B0=B4=E6=A1=86=E6=9E=B6?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ecology/new-drinking-water.js | 28 +- .../drinking-water/statistic/city/base.vue | 9 +- .../statistic/city/overStandard.vue | 37 ++- .../statistic/city/situation.vue | 2 +- .../statistic/city/waterCount.vue | 2 +- .../statistic/city/waterNutritional.vue | 2 +- .../statistic/city/waterQuality.vue | 2 +- .../statistic/city/waterQualityCount.vue | 2 +- .../statistic/city/waterQualityUp.vue | 2 +- .../components/{search.vue => citySearch.vue} | 2 +- .../statistic/components/countySearch.vue | 314 ++++++++++++++++++ .../statistic/components/countySideSeatch.vue | 314 ++++++++++++++++++ .../statistic/countryside/base.vue | 214 ++++++++++++ .../statistic/countryside/index.vue | 99 ++++++ .../drinking-water/statistic/county/base.vue | 7 +- .../drinking-water/statistic/county/index.vue | 30 +- .../statistic/county/overStandard.vue | 157 +++++++++ .../statistic/county/situation.vue | 298 +++++++++++++++++ .../statistic/county/waterCount.vue | 159 +++++++++ .../water/drinking-water/statistic/index.vue | 43 +-- 20 files changed, 1660 insertions(+), 63 deletions(-) rename src/views/water/drinking-water/statistic/components/{search.vue => citySearch.vue} (99%) create mode 100644 src/views/water/drinking-water/statistic/components/countySearch.vue create mode 100644 src/views/water/drinking-water/statistic/components/countySideSeatch.vue create mode 100644 src/views/water/drinking-water/statistic/countryside/base.vue create mode 100644 src/views/water/drinking-water/statistic/countryside/index.vue create mode 100644 src/views/water/drinking-water/statistic/county/overStandard.vue create mode 100644 src/views/water/drinking-water/statistic/county/situation.vue create mode 100644 src/views/water/drinking-water/statistic/county/waterCount.vue diff --git a/src/api/ecology/new-drinking-water.js b/src/api/ecology/new-drinking-water.js index b809c80..11cdae7 100644 --- a/src/api/ecology/new-drinking-water.js +++ b/src/api/ecology/new-drinking-water.js @@ -22,6 +22,12 @@ export const getWaterCount = function (data) { return axios.post(pageanalyseListUrl,data) } +//市级—超标评价 +export const overStandardtUrl = '/drinkingWater/drinkingWater/AnalysePage'; +export const overStandardCount = function (data) { + return axios.post(overStandardtUrl,data) +} + //市级—水质类别 export const waterQualityUrl = '/drinkingWater/drinkingWater/AnalysePage'; @@ -54,4 +60,24 @@ export const waterNutritionalData = function (data) { export const countyPageBsaeListUrl = '/drinkingWater/drinkingWater/CountyAnalysePage'; export const countyPageBsaeData = function (data) { return axios.post(countyPageBsaeListUrl,data) -} \ No newline at end of file +} + +//报送情况说明表 +export const countyDescripFormUrl = '/drinkingWater/drinkingWater/getCountyDescripForm'; +export const countyDescripFormData = function (data) { + return axios.post(countyDescripFormUrl,data) +} + +//县级—超标评价 +export const countyOverStandardtUrl = '/drinkingWater/drinkingWater/AnalysePage'; +export const countyOverStandardCount = function (data) { + return axios.post(countyOverStandardtUrl,data) +} + + + +// 农村 +export const villageAnalysePageUrl = '/drinkingWaterVillage/drinkingWaterVillage/VillageAnalysePage'; +export const villageAnalysePageData = function (data) { + return axios.post(villageAnalysePageUrl,data) +} diff --git a/src/views/water/drinking-water/statistic/city/base.vue b/src/views/water/drinking-water/statistic/city/base.vue index 021d72f..9688ab5 100644 --- a/src/views/water/drinking-water/statistic/city/base.vue +++ b/src/views/water/drinking-water/statistic/city/base.vue @@ -25,7 +25,7 @@ > @@ -66,7 +66,7 @@ import { } from "@/api/ecology/new-drinking-water"; import locale from "ant-design-vue/es/date-picker/locale/zh_CN"; import { tableColumns } from "./../colums/base"; -import Search from "./../components/search.vue"; +import Search from "./../components/citySearch.vue"; export default { name: "DrinkingWaterBase", @@ -93,6 +93,7 @@ export default { }, data() { return { + count:0, //样品数 current:0, data: [], locale, @@ -110,7 +111,7 @@ export default { }, // 表格选中数据 selectionList: [], - loading:false + loading:false, }; }, watch: { @@ -131,8 +132,10 @@ export default { if(res.data.code){ this.$message.error(res.data.msg); this.datasource = [] + this.count = 0 }else{ this.datasource = res.data.data + this.count = res.data.count } }).catch(()=>{ this.loading = false; diff --git a/src/views/water/drinking-water/statistic/city/overStandard.vue b/src/views/water/drinking-water/statistic/city/overStandard.vue index 3e5de19..8315d48 100644 --- a/src/views/water/drinking-water/statistic/city/overStandard.vue +++ b/src/views/water/drinking-water/statistic/city/overStandard.vue @@ -15,7 +15,8 @@ v-model:selection="selectionList" ref="table" row-key="drinkingWaterId" - :datasource="url" + :datasource="datasource" + :loading="loading" :columns="columns" :where="where" :scroll="{ x: 'max-content' }" @@ -31,11 +32,10 @@ + + \ No newline at end of file diff --git a/src/views/water/drinking-water/statistic/components/countySideSeatch.vue b/src/views/water/drinking-water/statistic/components/countySideSeatch.vue new file mode 100644 index 0000000..d915732 --- /dev/null +++ b/src/views/water/drinking-water/statistic/components/countySideSeatch.vue @@ -0,0 +1,314 @@ + + + + + \ No newline at end of file diff --git a/src/views/water/drinking-water/statistic/countryside/base.vue b/src/views/water/drinking-water/statistic/countryside/base.vue new file mode 100644 index 0000000..0699843 --- /dev/null +++ b/src/views/water/drinking-water/statistic/countryside/base.vue @@ -0,0 +1,214 @@ + + + + + + diff --git a/src/views/water/drinking-water/statistic/countryside/index.vue b/src/views/water/drinking-water/statistic/countryside/index.vue new file mode 100644 index 0000000..e70ee68 --- /dev/null +++ b/src/views/water/drinking-water/statistic/countryside/index.vue @@ -0,0 +1,99 @@ + + + + \ No newline at end of file diff --git a/src/views/water/drinking-water/statistic/county/base.vue b/src/views/water/drinking-water/statistic/county/base.vue index 6b8d1c0..e482378 100644 --- a/src/views/water/drinking-water/statistic/county/base.vue +++ b/src/views/water/drinking-water/statistic/county/base.vue @@ -25,7 +25,7 @@ > @@ -66,7 +66,7 @@ import { } from "@/api/ecology/new-drinking-water"; import locale from "ant-design-vue/es/date-picker/locale/zh_CN"; import { tableColumns } from "./../colums/base"; -import Search from "./../components/search.vue"; +import Search from "./../components/countySearch.vue"; export default { name: "DrinkingWaterBase", @@ -93,6 +93,7 @@ export default { }, data() { return { + count:0, //样品数 current:0, data: [], locale, @@ -131,8 +132,10 @@ export default { if(res.data.code){ this.$message.error(res.data.msg); this.datasource = [] + this.count = 0 }else{ this.datasource = res.data.data + this.count = res.data.count } }).catch(()=>{ this.loading = false; diff --git a/src/views/water/drinking-water/statistic/county/index.vue b/src/views/water/drinking-water/statistic/county/index.vue index 35dc7fc..e3ddcc1 100644 --- a/src/views/water/drinking-water/statistic/county/index.vue +++ b/src/views/water/drinking-water/statistic/county/index.vue @@ -4,16 +4,16 @@ - + + + + + diff --git a/src/views/water/drinking-water/statistic/county/situation.vue b/src/views/water/drinking-water/statistic/county/situation.vue new file mode 100644 index 0000000..e6cac9a --- /dev/null +++ b/src/views/water/drinking-water/statistic/county/situation.vue @@ -0,0 +1,298 @@ + + + + + + diff --git a/src/views/water/drinking-water/statistic/county/waterCount.vue b/src/views/water/drinking-water/statistic/county/waterCount.vue new file mode 100644 index 0000000..377b640 --- /dev/null +++ b/src/views/water/drinking-water/statistic/county/waterCount.vue @@ -0,0 +1,159 @@ + + + + + + diff --git a/src/views/water/drinking-water/statistic/index.vue b/src/views/water/drinking-water/statistic/index.vue index c9a2bb5..dd0d1ed 100644 --- a/src/views/water/drinking-water/statistic/index.vue +++ b/src/views/water/drinking-water/statistic/index.vue @@ -1,7 +1,7 @@