From d9278fa7ea990370dff60f7466354cc97bd36c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=9E=97?= Date: Tue, 7 Dec 2021 18:04:57 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E9=A5=AE=E7=94=A8=E6=B0=B4=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E6=A1=86=E6=9E=B6=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/ecology/new-drinking-water.js | 21 + .../drinking-water/statistic/city/base.vue | 176 ++++++ .../statistic/city/overStandard.vue | 138 +++++ .../statistic/city/situation.vue | 231 ++++++++ .../statistic/city/waterCount.vue | 138 +++++ .../drinking-water/statistic/colums/base.js | 515 ++++++++++++++++++ .../statistic/components/search.vue | 278 ++++++++++ .../drinking-water/statistic/county/base.vue | 178 ++++++ .../water/drinking-water/statistic/index.vue | 48 +- 10 files changed, 1710 insertions(+), 15 deletions(-) create mode 100644 src/api/ecology/new-drinking-water.js create mode 100644 src/views/water/drinking-water/statistic/city/base.vue create mode 100644 src/views/water/drinking-water/statistic/city/overStandard.vue create mode 100644 src/views/water/drinking-water/statistic/city/situation.vue create mode 100644 src/views/water/drinking-water/statistic/city/waterCount.vue create mode 100644 src/views/water/drinking-water/statistic/colums/base.js create mode 100644 src/views/water/drinking-water/statistic/components/search.vue create mode 100644 src/views/water/drinking-water/statistic/county/base.vue diff --git a/.env.development b/.env.development index 31b1eb7..ccd111c 100644 --- a/.env.development +++ b/.env.development @@ -1 +1 @@ -VUE_APP_API_BASE_URL=http://localhost:10001/api +VUE_APP_API_BASE_URL=http://1.14.132.108:10002/api diff --git a/src/api/ecology/new-drinking-water.js b/src/api/ecology/new-drinking-water.js new file mode 100644 index 0000000..de450bb --- /dev/null +++ b/src/api/ecology/new-drinking-water.js @@ -0,0 +1,21 @@ + +import axios from 'axios'; + + +// 市级监测数据报送表 +export const pageBsaeListUrl = '/drinkingWater/drinkingWater/AnalysePage'; +//市级—报送情况说明表 +export const pageDescListUrl = '/drinkingWater/drinkingWater/getDescripForm'; +//市级—取水量统计 +export const pageanalyseListUrl = '/drinkingWater/drinkingWater/AnalysePage'; + + +export const getPageDescList = function (data) { + return axios.get("/drinkingWater/drinkingWater/getDescripForm",{params:data}) + // return axios.get("/drinkingWater/drinkingWater/AnalysePage",{params:data}) +} + + +// 县级 +//监测数据报送表 +export const countyPageBsaeListUrl = '/drinkingWater/drinkingWater/CountyAnalysePage'; \ No newline at end of file diff --git a/src/views/water/drinking-water/statistic/city/base.vue b/src/views/water/drinking-water/statistic/city/base.vue new file mode 100644 index 0000000..afcdd70 --- /dev/null +++ b/src/views/water/drinking-water/statistic/city/base.vue @@ -0,0 +1,176 @@ + + + + + + diff --git a/src/views/water/drinking-water/statistic/city/overStandard.vue b/src/views/water/drinking-water/statistic/city/overStandard.vue new file mode 100644 index 0000000..3e5de19 --- /dev/null +++ b/src/views/water/drinking-water/statistic/city/overStandard.vue @@ -0,0 +1,138 @@ + + + + + + diff --git a/src/views/water/drinking-water/statistic/city/situation.vue b/src/views/water/drinking-water/statistic/city/situation.vue new file mode 100644 index 0000000..acc05f6 --- /dev/null +++ b/src/views/water/drinking-water/statistic/city/situation.vue @@ -0,0 +1,231 @@ + + + + + + diff --git a/src/views/water/drinking-water/statistic/city/waterCount.vue b/src/views/water/drinking-water/statistic/city/waterCount.vue new file mode 100644 index 0000000..4bc9bd5 --- /dev/null +++ b/src/views/water/drinking-water/statistic/city/waterCount.vue @@ -0,0 +1,138 @@ + + + + + + diff --git a/src/views/water/drinking-water/statistic/colums/base.js b/src/views/water/drinking-water/statistic/colums/base.js new file mode 100644 index 0000000..044d8cd --- /dev/null +++ b/src/views/water/drinking-water/statistic/colums/base.js @@ -0,0 +1,515 @@ +import moment from "moment" +//市级数据总览表格 + +export const filterColumns = [ + { title: "pH(无量纲)", dataIndex: "ph", sorter: true, }, + { title: "溶解氧", dataIndex: "dissolvedOxygen", sorter: true, }, + { title: "高锰酸盐指数", dataIndex: "permanganateIndex", sorter: true, }, + { title: "化学需氧量", dataIndex: "cod", sorter: true, }, + { title: "五日生化需氧量", dataIndex: "fiveDayBod", sorter: true, }, + { title: "氨氮", dataIndex: "ammonia", sorter: true, }, + { title: "总磷", dataIndex: "totalPhosphorus", sorter: true, }, + { title: "总氮", dataIndex: "totalNitrogen", sorter: true, }, + { title: "铜", dataIndex: "cu", sorter: true, }, + { title: "锌", dataIndex: "zn", sorter: true, }, + { title: "氟化物", dataIndex: "fluoride", sorter: true, }, + { title: "硒", dataIndex: "se", sorter: true, }, + { title: "砷", dataIndex: "as", sorter: true, }, + { title: "汞", dataIndex: "hg", sorter: true, }, + { title: "镉", dataIndex: "cd", sorter: true, }, + { title: "铬(六价)", dataIndex: "cr", sorter: true, }, + { title: "铅", dataIndex: "pb", sorter: true, }, + { title: "氰化物", dataIndex: "cyanide", sorter: true, }, + { title: "挥发酚", dataIndex: "volatilePhenol", sorter: true, }, + { title: "石油类", dataIndex: "petro", sorter: true, }, + { title: "阴离子表面活性剂", dataIndex: "anionicSurfactant", sorter: true, }, + { title: "硫化物", dataIndex: "sulfide", sorter: true, }, + { title: "粪大肠菌群(MPN/L)", dataIndex: "fecalColiforms", sorter: true, }, + { title: "硫酸盐", dataIndex: "sulfate", sorter: true, }, + { title: "氯化物", dataIndex: "chloride", sorter: true, }, + { title: "硝酸盐氮", dataIndex: "nitrateNitrogen", sorter: true, }, + { title: "铁", dataIndex: "fe", sorter: true, }, + { title: "锰", dataIndex: "mn", sorter: true, }, + { title: "三氯甲烷", dataIndex: "chcl3", sorter: true, }, + { title: "四氯化碳", dataIndex: "ccl4", sorter: true, }, + { title: "三溴甲烷", dataIndex: "chbr3", sorter: true, }, + { title: "二氯甲烷", dataIndex: "ch2cl2", sorter: true, }, + { title: "1,2-二氯乙烷", dataIndex: "c2h4cl2", sorter: true, }, + { title: "环氧氯丙烷", dataIndex: "c3h5clO", sorter: true, }, + { title: "氯乙烯", dataIndex: "c2h3cl", sorter: true, }, + { title: "1,1-二氯乙烯", dataIndex: "c2h2cl211", sorter: true, }, + { title: "1,2-二氯乙烯", dataIndex: "c2h2cl212", sorter: true, }, + { title: "三氯乙烯", dataIndex: "c2hcl3", sorter: true, }, + { title: "四氯乙烯", dataIndex: "c2cl4", sorter: true, }, + { title: "氯丁二烯", dataIndex: "c4h5cl", sorter: true, }, + { title: "六氯丁二烯", dataIndex: "c4cl6", sorter: true, }, + { title: "苯乙烯", dataIndex: "c8h8", sorter: true, }, + { title: "甲醛", dataIndex: "ch2o", sorter: true, }, + { title: "乙醛", dataIndex: "c2h4o", sorter: true, }, + { title: "丙烯醛", dataIndex: "c3h4o", sorter: true, }, + { title: "三氯乙醛", dataIndex: "c2hcl3o", sorter: true, }, + { title: "苯", dataIndex: "c6h6", sorter: true, }, + { title: "甲苯", dataIndex: "c7h8", sorter: true, }, + { title: "乙苯", dataIndex: "c8h10Ethylbenzene", sorter: true, }, + { title: "二甲苯", dataIndex: "c8h10Dimethylbenzene", sorter: true, }, + { title: "异丙苯", dataIndex: "c9h12", sorter: true, }, + { title: "氯苯", dataIndex: "c6h5cl", sorter: true, }, + { title: "1,2-二氯苯", dataIndex: "c6h4cl212", sorter: true, }, + { title: "1,4-二氯苯", dataIndex: "c6h4cl214", sorter: true, }, + { title: "三氯苯", dataIndex: "c6h3cl3", sorter: true, }, + { title: "四氯苯", dataIndex: "c6h2cl4", sorter: true, }, + { title: "六氯苯", dataIndex: "c6cl6", sorter: true, }, + { title: "硝基苯", dataIndex: "c6h5no2", sorter: true, }, + { title: "二硝基苯", dataIndex: "c6h4n2o4", sorter: true, }, + { title: "2,4-二硝基甲苯", dataIndex: "c7h6n2o4", sorter: true, }, + { title: "2,4,6-三硝基甲苯", dataIndex: "c7h5o6n3", sorter: true, }, + { title: "硝基氯苯", dataIndex: "c6h4clno2", sorter: true, }, + { title: "2,4-二硝基氯苯 ", dataIndex: "c6h3cln2o4", sorter: true, }, + { title: "2,4-二氯苯酚", dataIndex: "c6h4cl2o", sorter: true, }, + { title: "2,4,6-三氯苯酚", dataIndex: "c6h3cl3o", sorter: true, }, + { title: "五氯酚", dataIndex: "c6hcl5o", sorter: true, }, + { title: "苯胺", dataIndex: "c6h7n", sorter: true, }, + { title: "联苯胺", dataIndex: "c6h4nh22", sorter: true, }, + { title: "丙烯酰胺", dataIndex: "c3h5no", sorter: true, }, + { title: "丙烯腈", dataIndex: "c3h3n", sorter: true, }, + { title: "邻苯二甲酸二丁酯", dataIndex: "c16h22o4", sorter: true, }, + { title: "邻苯二甲酸二(2-乙基已基)酯", dataIndex: "c16h35o4p", sorter: true, }, + { title: "水合肼", dataIndex: "n2h4h2o", sorter: true, }, + { title: "四乙基铅", dataIndex: "c8h20pd", sorter: true, }, + { title: "吡啶", dataIndex: "c5h5n", sorter: true, }, + { title: "松节油", dataIndex: "turpentine", sorter: true, }, + { title: "苦味酸", dataIndex: "c6h3n3o7", sorter: true, }, + { title: "丁基黄原酸", dataIndex: "butylXanthogenAcid", sorter: true, }, + { title: "活性氯", dataIndex: "activeChlorine", sorter: true, }, + { title: "滴滴涕", dataIndex: "c14h9cl5", sorter: true, }, + { title: "林丹", dataIndex: "c6h6cl6", sorter: true, }, + { title: "环氧七氯", dataIndex: "c10h5cl7O", sorter: true, }, + { title: "对硫磷", dataIndex: "c10h14no5ps", sorter: true, }, + { title: "甲基对硫磷", dataIndex: "c8h10o5nps", sorter: true, }, + { title: "马拉硫磷", dataIndex: "c10h19o6ps2", sorter: true, }, + { title: "乐果", dataIndex: "c5h12no3ps2", sorter: true, }, + { title: "敌敌畏", dataIndex: "c4h7cl2o4p", sorter: true, }, + { title: "敌百虫", dataIndex: "c4h8cl3o4p", sorter: true, }, + { title: "内吸磷", dataIndex: "c8h19o3ps2", sorter: true, }, + { title: "百菌清", dataIndex: "c8cl4n2", sorter: true, }, + { title: "甲萘威", dataIndex: "c12h11no2", sorter: true, }, + { title: "溴氰菊酯", dataIndex: "c22h19br2no3", sorter: true, }, + { title: "阿特拉津", dataIndex: "c8h14cln5", sorter: true, }, + { title: "苯并(a)芘 ", dataIndex: "c20h12", sorter: true, }, + { title: "甲基汞", dataIndex: "ch3hg", sorter: true, }, + { title: "多氯联苯", dataIndex: "c12h10Xclx", sorter: true, }, + { title: "微囊藻毒素-LR", dataIndex: "微囊藻毒素-LR", sorter: true, }, + { title: "黄磷", dataIndex: "p4", sorter: true, }, + { title: "钼", dataIndex: "mo", sorter: true, }, + { title: "钴", dataIndex: "co", sorter: true, }, + { title: "铍", dataIndex: "be", sorter: true, }, + { title: "硼", dataIndex: "b", sorter: true, }, + { title: "锑", dataIndex: "sb", sorter: true, }, + { title: "镍", dataIndex: "ni", sorter: true, }, + { title: "钡", dataIndex: "ba", sorter: true, }, + { title: "钒", dataIndex: "v", sorter: true, }, + { title: "钛", dataIndex: "ti", sorter: true, }, + { title: "铊", dataIndex: "tl", sorter: true, }, + + { title: "六价铬", dataIndex: "cr6", sorter: true, }, + { title: "邻二氯苯", dataIndex: "odcb", sorter: true, }, + { title: "对二氯苯", dataIndex: "pdcp", sorter: true, }, + + { title: "苯并(a)芘", dataIndex: "bap", sorter: true, }, + { title: "苯并(b)荧蒽", dataIndex: "bbfa", sorter: true, }, + { title: "磷酸盐", dataIndex: "phosphate", sorter: true, }, + { title: "急性毒性", dataIndex: "acuteToxicity", sorter: true, }, + { title: "余氯", dataIndex: "residualChlorine", sorter: true, }, + { title: "六六六", dataIndex: "c6h6cl6666", sorter: true, }, + { title: "2,4,6-三氯酚", dataIndex: "c6h3cl3o246", sorter: true, }, + //新增 + { title: "叶绿素(mg/m3)", dataIndex: "chlorophyll", sorter: true, }, + { title: "透明度(cm)", dataIndex: "transparency", sorter: true, }, + { title: "总α放射性", dataIndex: "totalAlphaRadioactivity", sorter: true, }, + { title: "总β放射性", dataIndex: "totalBetaRadioactivity", sorter: true, }, + { title: "1,1,1-三氯乙烷(mg/L)", dataIndex: "c2h3cl3_111", sorter: true, }, + { title: "1,1,2-三氯乙烷(mg/L)", dataIndex: "c2h3cl3_112", sorter: true, }, +] + +const tableColumns = [ + + { title: "省份", dataIndex: "province", sorter: true, }, + { title: "省份代码", dataIndex: "provinceCode", sorter: true, }, + { title: "城市名称", dataIndex: "city", sorter: true, }, + { title: "城市代码", dataIndex: "cityCode", sorter: true, }, + { title: "重点城市区分", dataIndex: "keyCity", sorter: true, }, + { title: "南北方城市", dataIndex: "cityOrientation", sorter: true, }, + { title: "断面名称", dataIndex: "place", sorter: true, }, + { title: "断面代码", dataIndex: "sectionCode", sorter: true, }, + { title: "水源名称", dataIndex: "sourceWaterName", sorter: true, }, + { title: "所属水系", dataIndex: "subordinateWater", sorter: true, }, + { title: "水源地性质", dataIndex: "waterSourceProperty", sorter: true, }, + { title: "取水点经度", dataIndex: "longitude", sorter: true, }, + { title: "取水点纬度", dataIndex: "latitude", sorter: true, }, + { title: "本月取水量", dataIndex: "waterWithdrawal", sorter: true, }, + { title: "采样时间", dataIndex: "reportTime", sorter: true, customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").format("YYYY/MM/DD")}, + { title: "水期代码", dataIndex: "waterPhaseCode",sorter: true, + slots:{customRender:'waterCode' } + }, + { title: "水温", dataIndex: "waterTemperature", sorter: true, }, + // {title: "采样时间",dataIndex: "monitorTime",sorter: true,}, + { title: "pH(无量纲)", dataIndex: "ph", sorter: true, }, + { title: "溶解氧", dataIndex: "dissolvedOxygen", sorter: true, }, + { title: "高锰酸盐指数", dataIndex: "permanganateIndex", sorter: true, }, + { title: "化学需氧量", dataIndex: "cod", sorter: true, }, + { title: "五日生化需氧量", dataIndex: "fiveDayBod", sorter: true, }, + { title: "氨氮", dataIndex: "ammonia", sorter: true, }, + { title: "总磷", dataIndex: "totalPhosphorus", sorter: true, }, + { title: "总氮", dataIndex: "totalNitrogen", sorter: true, }, + { title: "铜", dataIndex: "cu", sorter: true, }, + { title: "锌", dataIndex: "zn", sorter: true, }, + { title: "氟化物", dataIndex: "fluoride", sorter: true, }, + { title: "硒", dataIndex: "se", sorter: true, }, + { title: "砷", dataIndex: "as", sorter: true, }, + { title: "汞", dataIndex: "hg", sorter: true, }, + { title: "镉", dataIndex: "cd", sorter: true, }, + { title: "铬(六价)", dataIndex: "cr", sorter: true, }, + { title: "铅", dataIndex: "pb", sorter: true, }, + { title: "氰化物", dataIndex: "cyanide", sorter: true, }, + { title: "挥发酚", dataIndex: "volatilePhenol", sorter: true, }, + { title: "石油类", dataIndex: "petro", sorter: true, }, + { title: "阴离子表面活性剂", dataIndex: "anionicSurfactant", sorter: true, }, + { title: "硫化物", dataIndex: "sulfide", sorter: true, }, + { title: "粪大肠菌群(MPN/L)", dataIndex: "fecalColiforms", sorter: true, }, + { title: "硫酸盐", dataIndex: "sulfate", sorter: true, }, + { title: "氯化物", dataIndex: "chloride", sorter: true, }, + { title: "硝酸盐氮", dataIndex: "nitrateNitrogen", sorter: true, }, + { title: "铁", dataIndex: "fe", sorter: true, }, + { title: "锰", dataIndex: "mn", sorter: true, }, + { title: "三氯甲烷", dataIndex: "chcl3", sorter: true, }, + { title: "四氯化碳", dataIndex: "ccl4", sorter: true, }, + { title: "三溴甲烷", dataIndex: "chbr3", sorter: true, }, + { title: "二氯甲烷", dataIndex: "ch2cl2", sorter: true, }, + { title: "1,2-二氯乙烷", dataIndex: "c2h4cl2", sorter: true, }, + { title: "环氧氯丙烷", dataIndex: "c3h5clO", sorter: true, }, + { title: "氯乙烯", dataIndex: "c2h3cl", sorter: true, }, + { title: "1,1-二氯乙烯", dataIndex: "c2h2cl211", sorter: true, }, + { title: "1,2-二氯乙烯", dataIndex: "c2h2cl212", sorter: true, }, + { title: "三氯乙烯", dataIndex: "c2hcl3", sorter: true, }, + { title: "四氯乙烯", dataIndex: "c2cl4", sorter: true, }, + { title: "氯丁二烯", dataIndex: "c4h5cl", sorter: true, }, + { title: "六氯丁二烯", dataIndex: "c4cl6", sorter: true, }, + { title: "苯乙烯", dataIndex: "c8h8", sorter: true, }, + { title: "甲醛", dataIndex: "ch2o", sorter: true, }, + { title: "乙醛", dataIndex: "c2h4o", sorter: true, }, + { title: "丙烯醛", dataIndex: "c3h4o", sorter: true, }, + { title: "三氯乙醛", dataIndex: "c2hcl3o", sorter: true, }, + { title: "苯", dataIndex: "c6h6", sorter: true, }, + { title: "甲苯", dataIndex: "c7h8", sorter: true, }, + { title: "乙苯", dataIndex: "c8h10Ethylbenzene", sorter: true, }, + { title: "二甲苯", dataIndex: "c8h10Dimethylbenzene", sorter: true, }, + { title: "异丙苯", dataIndex: "c9h12", sorter: true, }, + { title: "氯苯", dataIndex: "c6h5cl", sorter: true, }, + { title: "1,2-二氯苯", dataIndex: "c6h4cl212", sorter: true, }, + { title: "1,4-二氯苯", dataIndex: "c6h4cl214", sorter: true, }, + { title: "三氯苯", dataIndex: "c6h3cl3", sorter: true, }, + { title: "四氯苯", dataIndex: "c6h2cl4", sorter: true, }, + { title: "六氯苯", dataIndex: "c6cl6", sorter: true, }, + { title: "硝基苯", dataIndex: "c6h5no2", sorter: true, }, + { title: "二硝基苯", dataIndex: "c6h4n2o4", sorter: true, }, + { title: "2,4-二硝基甲苯", dataIndex: "c7h6n2o4", sorter: true, }, + { title: "2,4,6-三硝基甲苯", dataIndex: "c7h5o6n3", sorter: true, }, + { title: "硝基氯苯", dataIndex: "c6h4clno2", sorter: true, }, + { title: "2,4-二硝基氯苯 ", dataIndex: "c6h3cln2o4", sorter: true, }, + { title: "2,4-二氯苯酚", dataIndex: "c6h4cl2o", sorter: true, }, + { title: "2,4,6-三氯苯酚", dataIndex: "c6h3cl3o", sorter: true, }, + { title: "五氯酚", dataIndex: "c6hcl5o", sorter: true, }, + { title: "苯胺", dataIndex: "c6h7n", sorter: true, }, + { title: "联苯胺", dataIndex: "c6h4nh22", sorter: true, }, + { title: "丙烯酰胺", dataIndex: "c3h5no", sorter: true, }, + { title: "丙烯腈", dataIndex: "c3h3n", sorter: true, }, + { title: "邻苯二甲酸二丁酯", dataIndex: "c16h22o4", sorter: true, }, + { title: "邻苯二甲酸二(2-乙基已基)酯", dataIndex: "c16h35o4p", sorter: true, }, + { title: "水合肼", dataIndex: "n2h4h2o", sorter: true, }, + { title: "四乙基铅", dataIndex: "c8h20pd", sorter: true, }, + { title: "吡啶", dataIndex: "c5h5n", sorter: true, }, + { title: "松节油", dataIndex: "turpentine", sorter: true, }, + { title: "苦味酸", dataIndex: "c6h3n3o7", sorter: true, }, + { title: "丁基黄原酸", dataIndex: "butylXanthogenAcid", sorter: true, }, + { title: "活性氯", dataIndex: "activeChlorine", sorter: true, }, + { title: "滴滴涕", dataIndex: "c14h9cl5", sorter: true, }, + { title: "林丹", dataIndex: "c6h6cl6", sorter: true, }, + { title: "环氧七氯", dataIndex: "c10h5cl7O", sorter: true, }, + { title: "对硫磷", dataIndex: "c10h14no5ps", sorter: true, }, + { title: "甲基对硫磷", dataIndex: "c8h10o5nps", sorter: true, }, + { title: "马拉硫磷", dataIndex: "c10h19o6ps2", sorter: true, }, + { title: "乐果", dataIndex: "c5h12no3ps2", sorter: true, }, + { title: "敌敌畏", dataIndex: "c4h7cl2o4p", sorter: true, }, + { title: "敌百虫", dataIndex: "c4h8cl3o4p", sorter: true, }, + { title: "内吸磷", dataIndex: "c8h19o3ps2", sorter: true, }, + { title: "百菌清", dataIndex: "c8cl4n2", sorter: true, }, + { title: "甲萘威", dataIndex: "c12h11no2", sorter: true, }, + { title: "溴氰菊酯", dataIndex: "c22h19br2no3", sorter: true, }, + { title: "阿特拉津", dataIndex: "c8h14cln5", sorter: true, }, + { title: "苯并(a)芘 ", dataIndex: "c20h12", sorter: true, }, + { title: "甲基汞", dataIndex: "ch3hg", sorter: true, }, + { title: "多氯联苯", dataIndex: "c12h10Xclx", sorter: true, }, + { title: "微囊藻毒素-LR", dataIndex: "微囊藻毒素-LR", sorter: true, }, + { title: "黄磷", dataIndex: "p4", sorter: true, }, + { title: "钼", dataIndex: "mo", sorter: true, }, + { title: "钴", dataIndex: "co", sorter: true, }, + { title: "铍", dataIndex: "be", sorter: true, }, + { title: "硼", dataIndex: "b", sorter: true, }, + { title: "锑", dataIndex: "sb", sorter: true, }, + { title: "镍", dataIndex: "ni", sorter: true, }, + { title: "钡", dataIndex: "ba", sorter: true, }, + { title: "钒", dataIndex: "v", sorter: true, }, + { title: "钛", dataIndex: "ti", sorter: true, }, + { title: "铊", dataIndex: "tl", sorter: true, }, + + { title: "六价铬", dataIndex: "cr6", sorter: true, }, + { title: "邻二氯苯", dataIndex: "odcb", sorter: true, }, + { title: "对二氯苯", dataIndex: "pdcp", sorter: true, }, + + { title: "苯并(a)芘", dataIndex: "bap", sorter: true, }, + { title: "苯并(b)荧蒽", dataIndex: "bbfa", sorter: true, }, + { title: "磷酸盐", dataIndex: "phosphate", sorter: true, }, + { title: "急性毒性", dataIndex: "acuteToxicity", sorter: true, }, + { title: "余氯", dataIndex: "residualChlorine", sorter: true, }, + { title: "六六六", dataIndex: "c6h6cl6666", sorter: true, }, + { title: "2,4,6-三氯酚", dataIndex: "c6h3cl3o246", sorter: true, }, + //新增 + { title: "叶绿素(mg/m3)", dataIndex: "chlorophyll", sorter: true, }, + { title: "透明度(cm)", dataIndex: "transparency", sorter: true, }, + { title: "总α放射性", dataIndex: "totalAlphaRadioactivity", sorter: true, }, + { title: "总β放射性", dataIndex: "totalBetaRadioactivity", sorter: true, }, + { title: "1,1,1-三氯乙烷(mg/L)", dataIndex: "c2h3cl3_111", sorter: true, }, + { title: "1,1,2-三氯乙烷(mg/L)", dataIndex: "c2h3cl3_112", sorter: true, }, +]; +export { tableColumns } + +//县级数据总览表格 +const tableColumns2 = [ + { title: "省份", dataIndex: "province", sorter: true, }, + { title: "省份代码", dataIndex: "provinceCode", sorter: true, }, + { title: "城市名称", dataIndex: "city", sorter: true, }, + { title: "城市代码", dataIndex: "cityCode", sorter: true, }, + // { title: "重点城市区分", dataIndex: "keyCity", sorter: true, }, + {title:"县域名称",dataIndex:"countyName",sorter:true}, + {title:"县域代码",dataIndex:"countyCode",sorter:true}, + // { title: "南北方城市", dataIndex: "cityOrientation", sorter: true, }, + { title: "断面名称", dataIndex: "place", sorter: true, }, + // { title: "断面代码", dataIndex: "sectionCode", sorter: true, }, + { title: "水源名称", dataIndex: "sourceWaterName", sorter: true, }, + { title: "所属水系", dataIndex: "subordinateWater", sorter: true, }, + { title: "水源地性质", dataIndex: "waterSourceProperty", sorter: true, }, + { title: "取水点经度", dataIndex: "longitude", sorter: true, }, + { title: "取水点纬度", dataIndex: "latitude", sorter: true, }, + { title: "本月取水量", dataIndex: "waterWithdrawal", sorter: true, }, + { title: "采样时间", dataIndex: "reportTime", sorter: true, customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").format("YYYY/MM/DD")}, + { title: "水期代码", dataIndex: "waterPhaseCode",sorter: true, + slots:{customRender:'waterCode' } + }, + { title: "水温", dataIndex: "waterTemperature", sorter: true, }, + // {title: "采样时间",dataIndex: "monitorTime",sorter: true,}, + { title: "pH(无量纲)", dataIndex: "ph", sorter: true, }, + { title: "溶解氧", dataIndex: "dissolvedOxygen", sorter: true, }, + { title: "高锰酸盐指数", dataIndex: "permanganateIndex", sorter: true, }, + { title: "化学需氧量", dataIndex: "cod", sorter: true, }, + { title: "五日生化需氧量", dataIndex: "fiveDayBod", sorter: true, }, + { title: "氨氮", dataIndex: "ammonia", sorter: true, }, + { title: "总磷", dataIndex: "totalPhosphorus", sorter: true, }, + { title: "总氮", dataIndex: "totalNitrogen", sorter: true, }, + { title: "铜", dataIndex: "cu", sorter: true, }, + { title: "锌", dataIndex: "zn", sorter: true, }, + { title: "氟化物", dataIndex: "fluoride", sorter: true, }, + { title: "硒", dataIndex: "se", sorter: true, }, + { title: "砷", dataIndex: "as", sorter: true, }, + { title: "汞", dataIndex: "hg", sorter: true, }, + { title: "镉", dataIndex: "cd", sorter: true, }, + { title: "铬(六价)", dataIndex: "cr", sorter: true, }, + { title: "铅", dataIndex: "pb", sorter: true, }, + { title: "氰化物", dataIndex: "cyanide", sorter: true, }, + { title: "挥发酚", dataIndex: "volatilePhenol", sorter: true, }, + { title: "石油类", dataIndex: "petro", sorter: true, }, + { title: "阴离子表面活性剂", dataIndex: "anionicSurfactant", sorter: true, }, + { title: "硫化物", dataIndex: "sulfide", sorter: true, }, + { title: "粪大肠菌群(MPN/L)", dataIndex: "fecalColiforms", sorter: true, }, + { title: "硫酸盐", dataIndex: "sulfate", sorter: true, }, + { title: "氯化物", dataIndex: "chloride", sorter: true, }, + { title: "硝酸盐氮", dataIndex: "nitrateNitrogen", sorter: true, }, + { title: "铁", dataIndex: "fe", sorter: true, }, + { title: "锰", dataIndex: "mn", sorter: true, }, + { title: "三氯甲烷", dataIndex: "chcl3", sorter: true, }, + { title: "四氯化碳", dataIndex: "ccl4", sorter: true, }, + { title: "三溴甲烷", dataIndex: "chbr3", sorter: true, }, + { title: "二氯甲烷", dataIndex: "ch2cl2", sorter: true, }, + { title: "1,2-二氯乙烷", dataIndex: "c2h4cl2", sorter: true, }, + { title: "环氧氯丙烷", dataIndex: "c3h5clO", sorter: true, }, + { title: "氯乙烯", dataIndex: "c2h3cl", sorter: true, }, + { title: "1,1-二氯乙烯", dataIndex: "c2h2cl211", sorter: true, }, + { title: "1,2-二氯乙烯", dataIndex: "c2h2cl212", sorter: true, }, + { title: "三氯乙烯", dataIndex: "c2hcl3", sorter: true, }, + { title: "四氯乙烯", dataIndex: "c2cl4", sorter: true, }, + { title: "氯丁二烯", dataIndex: "c4h5cl", sorter: true, }, + { title: "六氯丁二烯", dataIndex: "c4cl6", sorter: true, }, + { title: "苯乙烯", dataIndex: "c8h8", sorter: true, }, + { title: "甲醛", dataIndex: "ch2o", sorter: true, }, + { title: "乙醛", dataIndex: "c2h4o", sorter: true, }, + { title: "丙烯醛", dataIndex: "c3h4o", sorter: true, }, + { title: "三氯乙醛", dataIndex: "c2hcl3o", sorter: true, }, + { title: "苯", dataIndex: "c6h6", sorter: true, }, + { title: "甲苯", dataIndex: "c7h8", sorter: true, }, + { title: "乙苯", dataIndex: "c8h10Ethylbenzene", sorter: true, }, + { title: "二甲苯", dataIndex: "c8h10Dimethylbenzene", sorter: true, }, + { title: "异丙苯", dataIndex: "c9h12", sorter: true, }, + { title: "氯苯", dataIndex: "c6h5cl", sorter: true, }, + { title: "1,2-二氯苯", dataIndex: "c6h4cl212", sorter: true, }, + { title: "1,4-二氯苯", dataIndex: "c6h4cl214", sorter: true, }, + { title: "三氯苯", dataIndex: "c6h3cl3", sorter: true, }, + { title: "四氯苯", dataIndex: "c6h2cl4", sorter: true, }, + { title: "六氯苯", dataIndex: "c6cl6", sorter: true, }, + { title: "硝基苯", dataIndex: "c6h5no2", sorter: true, }, + { title: "二硝基苯", dataIndex: "c6h4n2o4", sorter: true, }, + { title: "2,4-二硝基甲苯", dataIndex: "c7h6n2o4", sorter: true, }, + { title: "2,4,6-三硝基甲苯", dataIndex: "c7h5o6n3", sorter: true, }, + { title: "硝基氯苯", dataIndex: "c6h4clno2", sorter: true, }, + { title: "2,4-二硝基氯苯 ", dataIndex: "c6h3cln2o4", sorter: true, }, + { title: "2,4-二氯苯酚", dataIndex: "c6h4cl2o", sorter: true, }, + { title: "2,4,6-三氯苯酚", dataIndex: "c6h3cl3o", sorter: true, }, + { title: "五氯酚", dataIndex: "c6hcl5o", sorter: true, }, + { title: "苯胺", dataIndex: "c6h7n", sorter: true, }, + { title: "联苯胺", dataIndex: "c6h4nh22", sorter: true, }, + { title: "丙烯酰胺", dataIndex: "c3h5no", sorter: true, }, + { title: "丙烯腈", dataIndex: "c3h3n", sorter: true, }, + { title: "邻苯二甲酸二丁酯", dataIndex: "c16h22o4", sorter: true, }, + { title: "邻苯二甲酸二(2-乙基已基)酯", dataIndex: "c16h35o4p", sorter: true, }, + { title: "水合肼", dataIndex: "n2h4h2o", sorter: true, }, + { title: "四乙基铅", dataIndex: "c8h20pd", sorter: true, }, + { title: "吡啶", dataIndex: "c5h5n", sorter: true, }, + { title: "松节油", dataIndex: "turpentine", sorter: true, }, + { title: "苦味酸", dataIndex: "c6h3n3o7", sorter: true, }, + { title: "丁基黄原酸", dataIndex: "butylXanthogenAcid", sorter: true, }, + { title: "活性氯", dataIndex: "activeChlorine", sorter: true, }, + { title: "滴滴涕", dataIndex: "c14h9cl5", sorter: true, }, + { title: "林丹", dataIndex: "c6h6cl6", sorter: true, }, + { title: "环氧七氯", dataIndex: "c10h5cl7O", sorter: true, }, + { title: "对硫磷", dataIndex: "c10h14no5ps", sorter: true, }, + { title: "甲基对硫磷", dataIndex: "c8h10o5nps", sorter: true, }, + { title: "马拉硫磷", dataIndex: "c10h19o6ps2", sorter: true, }, + { title: "乐果", dataIndex: "c5h12no3ps2", sorter: true, }, + { title: "敌敌畏", dataIndex: "c4h7cl2o4p", sorter: true, }, + { title: "敌百虫", dataIndex: "c4h8cl3o4p", sorter: true, }, + { title: "内吸磷", dataIndex: "c8h19o3ps2", sorter: true, }, + { title: "百菌清", dataIndex: "c8cl4n2", sorter: true, }, + { title: "甲萘威", dataIndex: "c12h11no2", sorter: true, }, + { title: "溴氰菊酯", dataIndex: "c22h19br2no3", sorter: true, }, + { title: "阿特拉津", dataIndex: "c8h14cln5", sorter: true, }, + { title: "苯并(a)芘 ", dataIndex: "c20h12", sorter: true, }, + { title: "甲基汞", dataIndex: "ch3hg", sorter: true, }, + { title: "多氯联苯", dataIndex: "c12h10Xclx", sorter: true, }, + { title: "微囊藻毒素-LR", dataIndex: "微囊藻毒素-LR", sorter: true, }, + { title: "黄磷", dataIndex: "p4", sorter: true, }, + { title: "钼", dataIndex: "mo", sorter: true, }, + { title: "钴", dataIndex: "co", sorter: true, }, + { title: "铍", dataIndex: "be", sorter: true, }, + { title: "硼", dataIndex: "b", sorter: true, }, + { title: "锑", dataIndex: "sb", sorter: true, }, + { title: "镍", dataIndex: "ni", sorter: true, }, + { title: "钡", dataIndex: "ba", sorter: true, }, + { title: "钒", dataIndex: "v", sorter: true, }, + { title: "钛", dataIndex: "ti", sorter: true, }, + { title: "铊", dataIndex: "tl", sorter: true, }, + + { title: "六价铬", dataIndex: "cr6", sorter: true, }, + { title: "邻二氯苯", dataIndex: "odcb", sorter: true, }, + { title: "对二氯苯", dataIndex: "pdcp", sorter: true, }, + + { title: "苯并(a)芘", dataIndex: "bap", sorter: true, }, + { title: "苯并(b)荧蒽", dataIndex: "bbfa", sorter: true, }, + { title: "磷酸盐", dataIndex: "phosphate", sorter: true, }, + { title: "急性毒性", dataIndex: "acuteToxicity", sorter: true, }, + { title: "余氯", dataIndex: "residualChlorine", sorter: true, }, + { title: "六六六", dataIndex: "c6h6cl6666", sorter: true, }, + { title: "2,4,6-三氯酚", dataIndex: "c6h3cl3o246", sorter: true, }, + //新增 + { title: "叶绿素(mg/m3)", dataIndex: "chlorophyll", sorter: true, }, + { title: "透明度(cm)", dataIndex: "transparency", sorter: true, }, + { title: "总α放射性", dataIndex: "totalAlphaRadioactivity", sorter: true, }, + { title: "总β放射性", dataIndex: "totalBetaRadioactivity", sorter: true, }, + { title: "1,1,1-三氯乙烷(mg/L)", dataIndex: "c2h3cl3_111", sorter: true, }, + { title: "1,1,2-三氯乙烷(mg/L)", dataIndex: "c2h3cl3_112", sorter: true, }, +]; +export { tableColumns2 } + +//农村数据总览表格 +const tableColumns3=[ + {title:"断面代码",dataIndex:"sectionCode",sorter:true}, + {title: "省",dataIndex: "province",sorter: true,}, + {title: "市",dataIndex: "city",sorter: true,}, + {title: "乡镇",dataIndex: "township",sorter: true,}, + {title: "村",dataIndex: "village",sorter: true,}, + {title: "点位名称",dataIndex: "place",sorter: true,}, + {title: "湖库(是/否)",dataIndex: "lakeLibraryFlag",sorter: true,}, + {title: "经度(°)",dataIndex: "longitude",sorter: true,}, + {title: "纬度(°)",dataIndex: "latitude",sorter: true,}, + {title: "服务人口数量(人)",dataIndex: "numberServingPopulation",sorter: true,}, + {title: "日供水规模(吨)",dataIndex: "dailyWaterSupplyScale",sorter: true,}, + // {title: "监测时间",dataIndex: "monitorTime",sorter: true,customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").format("YYYY/MM/DD")}, + // { title: "水期代码", dataIndex: "waterPhaseCode",sorter: true, + // slots:{customRender:'waterCode' } + // }, + // {title: "必测村庄(是/否) ",dataIndex: "mustTestVillagesFlag",sorter: true,}, + + {title: "水温(℃)",dataIndex: "waterTemperature",sorter: true,}, + {title: "pH(mg/L)",dataIndex: "ph",sorter: true,}, + {title: "溶解氧(mg/L)",dataIndex: "dissolvedOxygen",sorter: true,}, + {title: "高锰酸盐指数(mg/L)",dataIndex: "permanganateIndex",sorter: true,}, + {title: "五日生化需氧量(mg/L)",dataIndex: "fiveDayBod",sorter: true,}, + {title: "氨氮(mg/L)",dataIndex: "ammonia",sorter: true,}, + {title: "总磷 (mg/L)",dataIndex: "totalPhosphorus",sorter: true,}, + {title: "总氮 (mg/L)",dataIndex: "totalNitrogen",sorter: true,}, + {title: "铜 (mg/L)",dataIndex: "cu",sorter: true,}, + {title: "锌 (mg/L)",dataIndex: "zn",sorter: true,}, + {title: "氟化物(mg/L)",dataIndex: "fluoride",sorter: true,}, + {title: "硒 (mg/L)",dataIndex: "se",sorter: true,}, + {title: "砷 (mg/L)",dataIndex: "as",sorter: true,}, + {title: "汞 (mg/L)",dataIndex: "hg",sorter: true,}, + {title: "镉 (mg/L)",dataIndex: "cd",sorter: true,}, + {title: "铬(六价)(mg/L)",dataIndex: "cr",sorter: true,}, + {title: "铅 (mg/L)",dataIndex: "pb",sorter: true,}, + {title: "氰化物 (mg/L)",dataIndex: "cyanide",sorter: true,}, + {title: "挥发酚 (mg/L)",dataIndex: "volatilePhenol",sorter: true,}, + {title: "石油类 (mg/L)",dataIndex: "petro",sorter: true,}, + {title: "阴离子表面活性剂 (mg/L)",dataIndex: "anionicSurfactant",sorter: true,}, + {title: "硫化物 (mg/L)",dataIndex: "sulfide",sorter: true,}, + {title: "粪大肠菌群(个/L)",dataIndex: "fecalColiforms",sorter: true,}, + {title: "硫酸盐 (mg/L)",dataIndex: "sulfate",sorter: true,}, + {title: "氯化物 (mg/L)",dataIndex: "chloride",sorter: true,}, + {title: "硝酸盐氮 (mg/L)",dataIndex: "nitrateNitrogen",sorter: true,}, + {title: "铁 (mg/L)",dataIndex: "fe",sorter: true,}, + {title: "锰 (mg/L)",dataIndex: "mn",sorter: true,}, + {title: "水质类别",dataIndex: "waterQualityCategory",sorter: true,}, + {title: "特征污染物监测项目名称",dataIndex: "characteristicPollutantMonitoringProjectName",sorter: true,}, + {title: "特征污染物监测数值(mg/L)",dataIndex: "characteristicPollutantMonitoringValue",sorter: true,}, + {title: "色(mg/L)",dataIndex: "color",sorter: true,}, + {title: "嗅和味",dataIndex: "smellAndTaste",sorter: true,}, + {title: "浊度",dataIndex: "turbidity",sorter: true,}, + {title: "肉眼可见物",dataIndex: "visibleNakedEye",sorter: true,}, + {title: "总硬度(mg/L)",dataIndex: "totalHardness",sorter: true,}, + {title: "溶解性总固体(mg/L)",dataIndex: "totalDissolvedSolids",sorter: true,}, + {title: "铝(mg/L)",dataIndex: "ai",sorter: true,}, + {title: "耗氧量(mg/L)",dataIndex: "oxygenConsumption",sorter: true,}, + {title: "硝酸盐(mg/L)",dataIndex: "nitrate",sorter: true,}, + {title: "亚硝酸盐(mg/L)",dataIndex: "nitrite",sorter: true,}, + {title: "钠(mg/L)",dataIndex: "na",sorter: true,}, + {title: "碘化物(mg/L)",dataIndex: "lodide",sorter: true,}, + {title: "总大肠菌群(个/L)",dataIndex: "totalColiform",sorter: true,}, + {title: "菌落总数(CFU/mL))",dataIndex: "totalNumberColonies",sorter: true,}, + {title: "三氯甲烷(μg/L)",dataIndex: "chcl3",sorter: true,}, + {title: "四氯化碳 (μg/L)",dataIndex: "ccl4",sorter: true,}, + {title: "苯 (μg/L)",dataIndex: "c6h6",sorter: true,}, + {title: "甲苯 (μg/L)",dataIndex: "c7h8",sorter: true,}, + {title: "总α放射性(Bq/L)",dataIndex: "totalAlphaRadioactivity",sorter: true,}, + {title: "总β放射性(Bq/L)",dataIndex: "totalBetaRadioactivity",sorter: true,}, + {title: "备注",dataIndex: "remark",sorter: true,}, +]; + +export { + tableColumns3 +} diff --git a/src/views/water/drinking-water/statistic/components/search.vue b/src/views/water/drinking-water/statistic/components/search.vue new file mode 100644 index 0000000..8aa64fd --- /dev/null +++ b/src/views/water/drinking-water/statistic/components/search.vue @@ -0,0 +1,278 @@ + + + + + \ 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 new file mode 100644 index 0000000..8ca167c --- /dev/null +++ b/src/views/water/drinking-water/statistic/county/base.vue @@ -0,0 +1,178 @@ + + + + + + diff --git a/src/views/water/drinking-water/statistic/index.vue b/src/views/water/drinking-water/statistic/index.vue index a7c1e83..02bb742 100644 --- a/src/views/water/drinking-water/statistic/index.vue +++ b/src/views/water/drinking-water/statistic/index.vue @@ -5,15 +5,19 @@ - + - + - - + + + + + + @@ -29,7 +33,7 @@ - + @@ -79,10 +83,18 @@ * * */ - import BaseStatistic from "./cityDate.vue" - import countyData from "./countyData.vue" + //市级监测数据报表 + // import BaseStatistic from "./cityDate.vue" +import BaseStatistic from "./city/base.vue" + +//县级监测数据报表 + // import countyData from "./countyData.vue" + import countyData from "./county/base.vue" + import village from "./villageData.vue" - import cityAppraise from "./cityAppraise.vue" + // import cityAppraise from "./cityAppraise.vue" + import cityAppraise from "./city/situation.vue" + import countyAppraise from "./countyAppraise.vue" import villageAppraise from "./villageAppraise.vue" import cityWaterQuality from "./cityWaterQuality.vue" @@ -94,9 +106,11 @@ import cityMonthStandard from "./city-base-standard.vue" import countyMonthStandard from "./county-base-standard.vue" import villageMonthStandard from "./village-base-standard.vue" - import cityWaterWithdrawal from "./cityWaterWithdrawal.vue" + import cityWaterWithdrawal from "./city/waterCount.vue" import countyWaterWithdrawal from "./countyWaterWithdrawal.vue" +import cityOverStandard from './city/overStandard.vue' + // import QuarterStatistic from "./quarter.vue"; // import Compare from "./compare.vue" // import AverageStatistic from "./average.vue" @@ -120,10 +134,9 @@ countyMonthStandard, villageMonthStandard, cityWaterWithdrawal, - countyWaterWithdrawal - // QuarterStatistic, - // Compare, - // AverageStatistic + countyWaterWithdrawal, + + cityOverStandard }, data() { return { @@ -131,11 +144,18 @@ activeCity:'city', activeCounty:'county', activeVillage:'village', + searchForm:{}, + filterKeys:[] }; }, methods: { - + changeSearch(data){ + this.searchForm = data + }, + changeFilter(data){ + this.filterKeys = data + } } } From e72f3d610977d7c364f7af40d062542c1976e695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=9E=97?= Date: Wed, 8 Dec 2021 14:08:53 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E9=A5=AE=E7=94=A8=E6=B0=B4=E7=9B=91?= =?UTF-8?q?=E6=B5=8B=E6=95=B0=E6=8D=AE=E6=8A=A5=E9=80=81=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ecology/new-drinking-water.js | 4 + .../drinking-water/statistic/city/base.vue | 38 ++++++-- .../drinking-water/statistic/city/index.vue | 91 +++++++++++++++++++ .../statistic/city/situation.vue | 24 ++++- .../statistic/components/search.vue | 35 +++++-- .../drinking-water/statistic/county/index.vue | 0 .../water/drinking-water/statistic/index.vue | 51 +---------- 7 files changed, 181 insertions(+), 62 deletions(-) create mode 100644 src/views/water/drinking-water/statistic/city/index.vue create mode 100644 src/views/water/drinking-water/statistic/county/index.vue diff --git a/src/api/ecology/new-drinking-water.js b/src/api/ecology/new-drinking-water.js index de450bb..44bd386 100644 --- a/src/api/ecology/new-drinking-water.js +++ b/src/api/ecology/new-drinking-water.js @@ -4,6 +4,10 @@ import axios from 'axios'; // 市级监测数据报送表 export const pageBsaeListUrl = '/drinkingWater/drinkingWater/AnalysePage'; +export const analysePageData = function (data) { + return axios.post(pageBsaeListUrl,data) +} + //市级—报送情况说明表 export const pageDescListUrl = '/drinkingWater/drinkingWater/getDescripForm'; //市级—取水量统计 diff --git a/src/views/water/drinking-water/statistic/city/base.vue b/src/views/water/drinking-water/statistic/city/base.vue index afcdd70..e89061d 100644 --- a/src/views/water/drinking-water/statistic/city/base.vue +++ b/src/views/water/drinking-water/statistic/city/base.vue @@ -9,13 +9,15 @@ @search="searchData" @exportFile="exportFile" @filterColumns="changeFilter" + :visiable="visiable" + :loading="loading" /> import XLSX from "xlsx"; import { - pageBsaeListUrl + analysePageData } from "@/api/ecology/new-drinking-water"; import locale from "ant-design-vue/es/date-picker/locale/zh_CN"; import { tableColumns } from "./../colums/base"; @@ -79,6 +81,9 @@ export default { return []; }, }, + visiable:{ + typeof:Boolean + } }, data() { return { @@ -86,7 +91,7 @@ export default { locale, bill: {}, // 表格数据接口 - url: pageBsaeListUrl, + datasource: [], selection: [], columns: [...tableColumns], @@ -94,10 +99,11 @@ export default { regionLevelOptions: [], // 表格搜索条件 where: { - checked: 1, + }, // 表格选中数据 selectionList: [], + loading:false }; }, watch: { @@ -109,6 +115,23 @@ export default { // this.loadOptionData(); }, methods: { + + // 获取列表数据 + getPageData(){ + this.loading = true; + analysePageData(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) { console.log(column.dataIndex); }, @@ -145,9 +168,10 @@ export default { }, /* 刷新表格 */ reload() { - this.$refs.table.reload({ - where: this.where, - }); + this.getPageData() + // this.$refs.table.reload({ + // where: this.where, + // }); }, /* 重置搜索 */ reset() { diff --git a/src/views/water/drinking-water/statistic/city/index.vue b/src/views/water/drinking-water/statistic/city/index.vue new file mode 100644 index 0000000..bd71ed7 --- /dev/null +++ b/src/views/water/drinking-water/statistic/city/index.vue @@ -0,0 +1,91 @@ + + + + \ No newline at end of file diff --git a/src/views/water/drinking-water/statistic/city/situation.vue b/src/views/water/drinking-water/statistic/city/situation.vue index acc05f6..a9d0f29 100644 --- a/src/views/water/drinking-water/statistic/city/situation.vue +++ b/src/views/water/drinking-water/statistic/city/situation.vue @@ -9,6 +9,8 @@ @search="searchData" @exportFile="exportFile" @filterColumns="changeFilter" + :visiable="visiable" + :loading="loading" /> - - - - + + + + + + + + + + @@ -120,10 +130,11 @@ export default { {key: "index",title:"序号",dataIndex: "index",width: 48,align: "center",customRender: ({ index }) => index + 1,}, {title:"城市",dataIndex:"city",}, {title:"县城",dataIndex:"county",slots:{customRender:'county'}}, - {title:"水源地名称",dataIndex:"place",}, + {title:"水源地名称",dataIndex:"sourceWaterName",}, {title:"类型",dataIndex:"waterSourceProperty",}, - {title:"监测时间",dataIndex:"reportTime",customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").format("YYYY/MM/DD")}, - {title:"应当监测项目个数",dataIndex:'',filters:[ + {title:"监测时间",dataIndex:"reportTime"}, + // {title:"监测时间",dataIndex:"reportTime",customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").format("YYYY/MM/DD")}, + {title:"应当监测项目个数",dataIndex:'index1',filters:[ { text: '61', value: '61', @@ -137,16 +148,22 @@ export default { value: '64', }, ]}, - {title:"未测个数",dataIndex:"",}, - {title:"独立分析项目个数",dataIndex:"place", + {title:"未测个数",dataIndex:"index2",}, + {title:"独立分析项目个数",dataIndex:"index3", slots: { customRender: 'enumber', + }, }, - }, - {title:"外送分析项目个数",dataIndex:"",}, - {title:"超标项目",dataIndex:"",}, - {title:"情况说明或原因",dataIndex:""}, - {title:"备注",dataIndex:"remark"}, + {title:"外送分析项目个数",dataIndex:"index4", slots: { + customRender: 'wnumber', + },}, + {title:"超标项目",dataIndex:"index5",}, + {title:"情况说明或原因",dataIndex:"index6", slots: { + customRender: 'desc', + }}, + {title:"备注",dataIndex:"remark",slots: { + customRender: 'remark', + },}, ], @@ -182,15 +199,16 @@ export default { }, //编辑单元格 - edit(item,index){ + edit(item,index,key){ this.editableData[index] = item + this.editableData[index].edable=key }, save(item,index){ console.log('item',item) - -this.datasource[index] = item -this.editableData = [] +console.log('item.remark', item.remark) + this.datasource[index] = item + this.editableData = [] }, diff --git a/src/views/water/drinking-water/statistic/city/waterCount.vue b/src/views/water/drinking-water/statistic/city/waterCount.vue index 4bc9bd5..ca6e73b 100644 --- a/src/views/water/drinking-water/statistic/city/waterCount.vue +++ b/src/views/water/drinking-water/statistic/city/waterCount.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' }" @@ -32,10 +33,12 @@ // import _ from "lodash"; import XLSX from "xlsx"; import Search from "./../components/search.vue"; + import { - pageDrinkingWaterStatisticUrl, - // getColumnOptions -} from "@/api/ecology/drinking-water"; + getWaterCount +} from "@/api/ecology/new-drinking-water"; + + import locale from "ant-design-vue/es/date-picker/locale/zh_CN"; // import { tableColumns } from "./colums"; @@ -65,7 +68,6 @@ export default { locale, bill: {}, // 表格数据接口 - url: pageDrinkingWaterStatisticUrl, selection: [], columns: [ {title: "水源名称",dataIndex: "sourceWaterName",sorter: true,}, @@ -84,12 +86,30 @@ export default { }, // 表格选中数据 selectionList: [], + loading: false }; }, mounted() { // this.loadOptionData(); }, methods: { + + // 获取列表数据 + getPageData(){ + this.loading = true; + getWaterCount(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) { console.log(column.dataIndex); }, @@ -107,9 +127,10 @@ export default { /* 刷新表格 */ reload() { - this.$refs.table.reload({ - where: this.where, - }); + this.getPageData() + // this.$refs.table.reload({ + // where: this.where, + // }); }, /* 重置搜索 */ reset() { From 93692924f596c0f3f5bde06991354513273ee39c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=9E=97?= Date: Wed, 8 Dec 2021 21:07:37 +0800 Subject: [PATCH 07/12] =?UTF-8?q?=E5=8F=AF=E7=BC=96=E8=BE=91=E6=96=87?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../statistic/city/situation.vue | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/views/water/drinking-water/statistic/city/situation.vue b/src/views/water/drinking-water/statistic/city/situation.vue index 280612b..5a7aa25 100644 --- a/src/views/water/drinking-water/statistic/city/situation.vue +++ b/src/views/water/drinking-water/statistic/city/situation.vue @@ -21,9 +21,9 @@