新增/修复农村饮用水板块,修复市级县级饮用水板块
This commit is contained in:
BIN
public/template/农村村庄地下水饮用水.xlsx
Normal file
BIN
public/template/农村村庄地下水饮用水.xlsx
Normal file
Binary file not shown.
BIN
public/template/农村村庄地表水饮用水.xlsx
Normal file
BIN
public/template/农村村庄地表水饮用水.xlsx
Normal file
Binary file not shown.
Binary file not shown.
BIN
public/template/县级地下水饮用水.xlsx
Normal file
BIN
public/template/县级地下水饮用水.xlsx
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
public/template/县级(在用)地表水饮用水.xlsm
Normal file
BIN
public/template/县级(在用)地表水饮用水.xlsm
Normal file
Binary file not shown.
BIN
public/template/县级(备用、规划)地表水饮用水.xls
Normal file
BIN
public/template/县级(备用、规划)地表水饮用水.xls
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
public/template/市级(在用)地表水饮用水.xls
Normal file
BIN
public/template/市级(在用)地表水饮用水.xls
Normal file
Binary file not shown.
BIN
public/template/市级(备用)地表水饮用水.xlsx
Normal file
BIN
public/template/市级(备用)地表水饮用水.xlsx
Normal file
Binary file not shown.
@@ -50,6 +50,10 @@ const removeBatchDrinkingWater = function (ids) {
|
|||||||
const updateDrinkingWater = function (data) {
|
const updateDrinkingWater = function (data) {
|
||||||
return axios.put("/drinkingWater/drinkingWater",data)
|
return axios.put("/drinkingWater/drinkingWater",data)
|
||||||
}
|
}
|
||||||
|
//批量修改取水量
|
||||||
|
const updateWaterWithdrawal=function(data){
|
||||||
|
return axios.put("/drinkingWater/drinkingWater/updateWater",data)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -89,6 +93,7 @@ export {
|
|||||||
getColumnOptions,
|
getColumnOptions,
|
||||||
listAll,
|
listAll,
|
||||||
getGisBase,
|
getGisBase,
|
||||||
getGisArea
|
getGisArea,
|
||||||
|
updateWaterWithdrawal
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,70 +1,71 @@
|
|||||||
const tableColumns = [
|
const tableColumns = [
|
||||||
{title: "省",dataIndex: "province",sorter: true,},
|
{title:"断面代码",dataIndex:"sectionCode",sorter:true},
|
||||||
{title: "市",dataIndex: "city",sorter: true,},
|
{title: "省",dataIndex: "province",sorter: true,},
|
||||||
{title: "城区",dataIndex: "城区",sorter: true,},
|
{title: "市",dataIndex: "city",sorter: true,},
|
||||||
{title: "县",dataIndex: "county",sorter: true,},
|
// {title: "城区",dataIndex: "城区",sorter: true,},
|
||||||
{title: "乡镇",dataIndex: "township",sorter: true,},
|
{title: "县",dataIndex: "county",sorter: true,},
|
||||||
{title: "村",dataIndex: "village",sorter: true,},
|
{title: "乡镇",dataIndex: "township",sorter: true,},
|
||||||
{title: "点位名称",dataIndex: "place",sorter: true,},
|
{title: "村",dataIndex: "village",sorter: true,},
|
||||||
// {title: "监测时间",dataIndex: "monitorTime",sorter: true,},
|
{title: "点位名称",dataIndex: "place",sorter: true,},
|
||||||
{title: "湖库(是/否)",dataIndex: "lakeLibraryFlag",sorter: true,},
|
// {title: "监测时间",dataIndex: "monitorTime",sorter: true,},
|
||||||
{title: "必测村庄(是/否) ",dataIndex: "mustTestVillagesFlag",sorter: true,},
|
{title: "湖库(是/否)",dataIndex: "lakeLibraryFlag",sorter: true,},
|
||||||
{title: "经度(°)",dataIndex: "longitude",sorter: true,},
|
// {title: "必测村庄(是/否) ",dataIndex: "mustTestVillagesFlag",sorter: true,},
|
||||||
{title: "纬度(°)",dataIndex: "latitude",sorter: true,},
|
{title: "经度(°)",dataIndex: "longitude",sorter: true,},
|
||||||
{title: "服务人口数量(人)",dataIndex: "numberServingPopulation",sorter: true,},
|
{title: "纬度(°)",dataIndex: "latitude",sorter: true,},
|
||||||
{title: "日供水规模(吨)",dataIndex: "dailyWaterSupplyScale",sorter: true,},
|
{title: "服务人口数量(人)",dataIndex: "numberServingPopulation",sorter: true,},
|
||||||
{title: "水温(℃)",dataIndex: "waterTemperature",sorter: true,},
|
{title: "日供水规模(吨)",dataIndex: "dailyWaterSupplyScale",sorter: true,},
|
||||||
{title: "pH(mg/L)",dataIndex: "ph",sorter: true,},
|
{title: "水温(℃)",dataIndex: "waterTemperature",sorter: true,},
|
||||||
{title: "溶解氧(mg/L)",dataIndex: "dissolvedOxygen",sorter: true,},
|
{title: "pH(mg/L)",dataIndex: "ph",sorter: true,},
|
||||||
{title: "高锰酸盐指数(mg/L)",dataIndex: "permanganateIndex",sorter: true,},
|
{title: "溶解氧(mg/L)",dataIndex: "dissolvedOxygen",sorter: true,},
|
||||||
{title: "五日生化需氧量(mg/L)",dataIndex: "fiveDayBod",sorter: true,},
|
{title: "高锰酸盐指数(mg/L)",dataIndex: "permanganateIndex",sorter: true,},
|
||||||
{title: "氨氮(mg/L)",dataIndex: "ammonia",sorter: true,},
|
{title: "五日生化需氧量(mg/L)",dataIndex: "fiveDayBod",sorter: true,},
|
||||||
{title: "总磷 (mg/L)",dataIndex: "totalPhosphorus",sorter: true,},
|
{title: "氨氮(mg/L)",dataIndex: "ammonia",sorter: true,},
|
||||||
{title: "总氮 (mg/L)",dataIndex: "totalNitrogen",sorter: true,},
|
{title: "总磷 (mg/L)",dataIndex: "totalPhosphorus",sorter: true,},
|
||||||
{title: "铜 (mg/L)",dataIndex: "cu",sorter: true,},
|
{title: "总氮 (mg/L)",dataIndex: "totalNitrogen",sorter: true,},
|
||||||
{title: "锌 (mg/L)",dataIndex: "zn",sorter: true,},
|
{title: "铜 (mg/L)",dataIndex: "cu",sorter: true,},
|
||||||
{title: "氟化物(mg/L)",dataIndex: "fluoride",sorter: true,},
|
{title: "锌 (mg/L)",dataIndex: "zn",sorter: true,},
|
||||||
{title: "硒 (mg/L)",dataIndex: "se",sorter: true,},
|
{title: "氟化物(mg/L)",dataIndex: "fluoride",sorter: true,},
|
||||||
{title: "砷 (mg/L)",dataIndex: "as",sorter: true,},
|
{title: "硒 (mg/L)",dataIndex: "se",sorter: true,},
|
||||||
{title: "汞 (mg/L)",dataIndex: "hg",sorter: true,},
|
{title: "砷 (mg/L)",dataIndex: "as",sorter: true,},
|
||||||
{title: "镉 (mg/L)",dataIndex: "cd",sorter: true,},
|
{title: "汞 (mg/L)",dataIndex: "hg",sorter: true,},
|
||||||
{title: "铬(六价)(mg/L)",dataIndex: "cr",sorter: true,},
|
{title: "镉 (mg/L)",dataIndex: "cd",sorter: true,},
|
||||||
{title: "铅 (mg/L)",dataIndex: "pb",sorter: true,},
|
{title: "铬(六价)(mg/L)",dataIndex: "cr",sorter: true,},
|
||||||
{title: "氰化物 (mg/L)",dataIndex: "cyanide",sorter: true,},
|
{title: "铅 (mg/L)",dataIndex: "pb",sorter: true,},
|
||||||
{title: "挥发酚 (mg/L)",dataIndex: "volatilePhenol",sorter: true,},
|
{title: "氰化物 (mg/L)",dataIndex: "cyanide",sorter: true,},
|
||||||
{title: "石油类 (mg/L)",dataIndex: "petro",sorter: true,},
|
{title: "挥发酚 (mg/L)",dataIndex: "volatilePhenol",sorter: true,},
|
||||||
{title: "阴离子表面活性剂 (mg/L)",dataIndex: "anionicSurfactant",sorter: true,},
|
{title: "石油类 (mg/L)",dataIndex: "petro",sorter: true,},
|
||||||
{title: "硫化物 (mg/L)",dataIndex: "sulfide",sorter: true,},
|
{title: "阴离子表面活性剂 (mg/L)",dataIndex: "anionicSurfactant",sorter: true,},
|
||||||
{title: "粪大肠菌群(个/L)",dataIndex: "fecalColiforms",sorter: true,},
|
{title: "硫化物 (mg/L)",dataIndex: "sulfide",sorter: true,},
|
||||||
{title: "硫酸盐 (mg/L)",dataIndex: "sulfate",sorter: true,},
|
{title: "粪大肠菌群(个/L)",dataIndex: "fecalColiforms",sorter: true,},
|
||||||
{title: "氯化物 (mg/L)",dataIndex: "chloride",sorter: true,},
|
{title: "硫酸盐 (mg/L)",dataIndex: "sulfate",sorter: true,},
|
||||||
{title: "硝酸盐氮 (mg/L)",dataIndex: "nitrateNitrogen",sorter: true,},
|
{title: "氯化物 (mg/L)",dataIndex: "chloride",sorter: true,},
|
||||||
{title: "铁 (mg/L)",dataIndex: "fe",sorter: true,},
|
{title: "硝酸盐氮 (mg/L)",dataIndex: "nitrateNitrogen",sorter: true,},
|
||||||
{title: "锰 (mg/L)",dataIndex: "mn",sorter: true,},
|
{title: "铁 (mg/L)",dataIndex: "fe",sorter: true,},
|
||||||
{title: "水质类别",dataIndex: "waterQualityCategory",sorter: true,},
|
{title: "锰 (mg/L)",dataIndex: "mn",sorter: true,},
|
||||||
{title: "特征污染物监测项目名称",dataIndex: "characteristicPollutantMonitoringProjectName",sorter: true,},
|
{title: "水质类别",dataIndex: "waterQualityCategory",sorter: true,},
|
||||||
{title: "特征污染物监测数值(mg/L)",dataIndex: "characteristicPollutantMonitoringValue",sorter: true,},
|
{title: "特征污染物监测项目名称",dataIndex: "characteristicPollutantMonitoringProjectName",sorter: true,},
|
||||||
{title: "色(mg/L)",dataIndex: "color",sorter: true,},
|
{title: "特征污染物监测数值(mg/L)",dataIndex: "characteristicPollutantMonitoringValue",sorter: true,},
|
||||||
{title: "嗅和味",dataIndex: "smellAndTaste",sorter: true,},
|
{title: "色(mg/L)",dataIndex: "color",sorter: true,},
|
||||||
{title: "浊度",dataIndex: "turbidity",sorter: true,},
|
{title: "嗅和味",dataIndex: "smellAndTaste",sorter: true,},
|
||||||
{title: "肉眼可见物",dataIndex: "visibleNakedEye",sorter: true,},
|
{title: "浊度",dataIndex: "turbidity",sorter: true,},
|
||||||
{title: "总硬度(mg/L)",dataIndex: "totalHardness",sorter: true,},
|
{title: "肉眼可见物",dataIndex: "visibleNakedEye",sorter: true,},
|
||||||
{title: "溶解性总固体(mg/L)",dataIndex: "totalDissolvedSolids",sorter: true,},
|
{title: "总硬度(mg/L)",dataIndex: "totalHardness",sorter: true,},
|
||||||
{title: "铝(mg/L)",dataIndex: "ai",sorter: true,},
|
{title: "溶解性总固体(mg/L)",dataIndex: "totalDissolvedSolids",sorter: true,},
|
||||||
{title: "耗氧量(mg/L)",dataIndex: "oxygenConsumption",sorter: true,},
|
{title: "铝(mg/L)",dataIndex: "ai",sorter: true,},
|
||||||
{title: "硝酸盐(mg/L)",dataIndex: "nitrate",sorter: true,},
|
{title: "耗氧量(mg/L)",dataIndex: "oxygenConsumption",sorter: true,},
|
||||||
{title: "亚硝酸盐(mg/L)",dataIndex: "nitrite",sorter: true,},
|
{title: "硝酸盐(mg/L)",dataIndex: "nitrate",sorter: true,},
|
||||||
{title: "钠(mg/L)",dataIndex: "na",sorter: true,},
|
{title: "亚硝酸盐(mg/L)",dataIndex: "nitrite",sorter: true,},
|
||||||
{title: "碘化物(mg/L)",dataIndex: "lodide",sorter: true,},
|
{title: "钠(mg/L)",dataIndex: "na",sorter: true,},
|
||||||
{title: "总大肠菌群(个/L)",dataIndex: "totalColiform",sorter: true,},
|
{title: "碘化物(mg/L)",dataIndex: "lodide",sorter: true,},
|
||||||
{title: "菌落总数(CFU/mL))",dataIndex: "totalNumberColonies",sorter: true,},
|
{title: "总大肠菌群(个/L)",dataIndex: "totalColiform",sorter: true,},
|
||||||
{title: "三氯甲烷(μg/L)",dataIndex: "chcl3",sorter: true,},
|
{title: "菌落总数(CFU/mL))",dataIndex: "totalNumberColonies",sorter: true,},
|
||||||
{title: "四氯化碳 (μg/L)",dataIndex: "ccl4",sorter: true,},
|
{title: "三氯甲烷(μg/L)",dataIndex: "chcl3",sorter: true,},
|
||||||
{title: "苯 (μg/L)",dataIndex: "c6h6",sorter: true,},
|
{title: "四氯化碳 (μg/L)",dataIndex: "ccl4",sorter: true,},
|
||||||
{title: "甲苯 (μg/L)",dataIndex: "c7h8",sorter: true,},
|
{title: "苯 (μg/L)",dataIndex: "c6h6",sorter: true,},
|
||||||
{title: "总α放射性(Bq/L)",dataIndex: "totalAlphaRadioactivity",sorter: true,},
|
{title: "甲苯 (μg/L)",dataIndex: "c7h8",sorter: true,},
|
||||||
{title: "总β放射性(Bq/L)",dataIndex: "totalBetaRadioactivity",sorter: true,},
|
{title: "总α放射性(Bq/L)",dataIndex: "totalAlphaRadioactivity",sorter: true,},
|
||||||
{title: "备注",dataIndex: "remark",sorter: true,},
|
{title: "总β放射性(Bq/L)",dataIndex: "totalBetaRadioactivity",sorter: true,},
|
||||||
];
|
{title: "备注",dataIndex: "remark",sorter: true,},
|
||||||
|
];
|
||||||
|
|
||||||
export {tableColumns}
|
export {tableColumns}
|
||||||
@@ -18,6 +18,18 @@
|
|||||||
<a-button>农村地下水导入</a-button>
|
<a-button>农村地下水导入</a-button>
|
||||||
</a-upload>
|
</a-upload>
|
||||||
</a-space>
|
</a-space>
|
||||||
|
<a-dropdown>
|
||||||
|
<template #overlay>
|
||||||
|
<a-menu>
|
||||||
|
<a-menu-item @click="download('农村村庄地表水饮用水','xlsx')"> 农村村庄地表水饮用水</a-menu-item>
|
||||||
|
<a-menu-item @click="download('农村村庄地表水饮用水','xlsx')"> 农村村庄地表水饮用水</a-menu-item>
|
||||||
|
</a-menu>
|
||||||
|
</template>
|
||||||
|
<a-button type="primary" style="left: 10px">
|
||||||
|
模板下载
|
||||||
|
<DownOutlined />
|
||||||
|
</a-button>
|
||||||
|
</a-dropdown>
|
||||||
</template>
|
</template>
|
||||||
<a-tabs v-model:activeKey="activeKey">
|
<a-tabs v-model:activeKey="activeKey">
|
||||||
<a-tab-pane tab="农村饮用水" key="water">
|
<a-tab-pane tab="农村饮用水" key="water">
|
||||||
@@ -33,11 +45,18 @@ import XLSX from "xlsx";
|
|||||||
import utils from "./utils";
|
import utils from "./utils";
|
||||||
import { Modal } from "ant-design-vue";
|
import { Modal } from "ant-design-vue";
|
||||||
import WaterBill from "./water-bill.vue";
|
import WaterBill from "./water-bill.vue";
|
||||||
|
import { DownOutlined } from "@ant-design/icons-vue";
|
||||||
import { saveDrinkingWaterVillageBill } from "@/api/ecology/drinking-water-village";
|
import { saveDrinkingWaterVillageBill } from "@/api/ecology/drinking-water-village";
|
||||||
|
import {
|
||||||
|
downloadTemplatexls,
|
||||||
|
downloadTemplate,
|
||||||
|
downloadTemplatexlsm,
|
||||||
|
} from "@/utils/excel-util";
|
||||||
export default {
|
export default {
|
||||||
name: "DrinkWaterVillageCollectIndex",
|
name: "DrinkWaterVillageCollectIndex",
|
||||||
components: {
|
components: {
|
||||||
WaterBill,
|
WaterBill,
|
||||||
|
DownOutlined,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -45,7 +64,7 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/* 导入本地excel文件 */
|
/* 导入农村地表水文件 */
|
||||||
importFileTop(file) {
|
importFileTop(file) {
|
||||||
const hide = this.$message.loading("导入中..", 0);
|
const hide = this.$message.loading("导入中..", 0);
|
||||||
let reader = new FileReader();
|
let reader = new FileReader();
|
||||||
@@ -58,19 +77,23 @@ export default {
|
|||||||
//0.昼间数据 1.夜间数据 2.其他信息
|
//0.昼间数据 1.夜间数据 2.其他信息
|
||||||
let sheetNames = workbook.SheetNames;
|
let sheetNames = workbook.SheetNames;
|
||||||
// 解析成二维数组
|
// 解析成二维数组
|
||||||
let aoa1 = XLSX.utils.sheet_to_json(workbook.Sheets[sheetNames[0]], {
|
let aoa1 = XLSX.utils.sheet_to_json(
|
||||||
|
workbook.Sheets[sheetNames[0]], {
|
||||||
header: 1,
|
header: 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
const drinkingWaterVillageList = aoa1.filter((item) => {
|
const drinkingWaterVillageList = aoa1.filter((item) => {
|
||||||
return item.length >= 40 && typeof item[0] == "number";
|
// return item.length >= 40 && typeof item[0] == "number";
|
||||||
|
return (
|
||||||
|
item.length >= 40 && item[0] && !item[0].includes("断面代码") && !item[0].includes("导出人") && !item[0].includes("地表水")
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
// 解析成对象数组
|
// 解析成对象数组
|
||||||
console.log(file);
|
// console.log(file);
|
||||||
const billName1 = file.name;
|
const billName1 = file.name;
|
||||||
const billData1 = utils.toVillageTop(drinkingWaterVillageList);
|
const billData1 = utils.toVillageTop(drinkingWaterVillageList);
|
||||||
|
// console.log(billData1);
|
||||||
if (!billData1 || billData1.length == 0) {
|
if (!billData1 || billData1.length == 0) {
|
||||||
hide();
|
hide();
|
||||||
Modal.error({
|
Modal.error({
|
||||||
@@ -126,6 +149,7 @@ export default {
|
|||||||
reader.readAsArrayBuffer(file);
|
reader.readAsArrayBuffer(file);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
/* 导入农村地下水文件 */
|
||||||
importFileBottom(file) {
|
importFileBottom(file) {
|
||||||
const hide = this.$message.loading("导入中..", 0);
|
const hide = this.$message.loading("导入中..", 0);
|
||||||
let reader = new FileReader();
|
let reader = new FileReader();
|
||||||
@@ -138,19 +162,22 @@ export default {
|
|||||||
//0.昼间数据 1.夜间数据 2.其他信息
|
//0.昼间数据 1.夜间数据 2.其他信息
|
||||||
let sheetNames = workbook.SheetNames;
|
let sheetNames = workbook.SheetNames;
|
||||||
// 解析成二维数组
|
// 解析成二维数组
|
||||||
let aoa1 = XLSX.utils.sheet_to_json(workbook.Sheets[sheetNames[0]], {
|
let aoa1 = XLSX.utils.sheet_to_json(
|
||||||
|
workbook.Sheets[sheetNames[0]], {
|
||||||
header: 1,
|
header: 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
const drinkingWaterVillageList = aoa1.filter((item) => {
|
const drinkingWaterVillageList = aoa1.filter((item) => {
|
||||||
return item.length >= 40 && typeof item[0] == "number";
|
return (
|
||||||
|
item.length >= 40 && item[0] && !item[0].includes("点位代码") && !item[0].includes("导出人") && !item[0].includes("地下水")
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
// 解析成对象数组
|
// 解析成对象数组
|
||||||
console.log(file);
|
console.log(file);
|
||||||
const billName1 = file.name;
|
const billName1 = file.name;
|
||||||
const billData1 = utils.toVillageBottom(drinkingWaterVillageList);
|
const billData1 = utils.toVillageBottom(drinkingWaterVillageList);
|
||||||
|
console.log(billData1);
|
||||||
if (!billData1 || billData1.length == 0) {
|
if (!billData1 || billData1.length == 0) {
|
||||||
hide();
|
hide();
|
||||||
Modal.error({
|
Modal.error({
|
||||||
@@ -206,6 +233,16 @@ export default {
|
|||||||
reader.readAsArrayBuffer(file);
|
reader.readAsArrayBuffer(file);
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
|
//下载文件
|
||||||
|
download(filename, fileType) {
|
||||||
|
if (fileType == "xls") {
|
||||||
|
downloadTemplatexls(filename);
|
||||||
|
} else if (fileType == "xlsm") {
|
||||||
|
downloadTemplatexlsm(filename);
|
||||||
|
} else if (fileType == "xlsx") {
|
||||||
|
downloadTemplate(filename);
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -4,11 +4,12 @@ export default {
|
|||||||
toVillageTop(excelData){
|
toVillageTop(excelData){
|
||||||
return excelData.map(item=>{
|
return excelData.map(item=>{
|
||||||
const monitorTime = new Date();
|
const monitorTime = new Date();
|
||||||
monitorTime.setFullYear(item[11]);
|
monitorTime.setFullYear(item[12]);
|
||||||
monitorTime.setMonth(item[12] - 1);
|
monitorTime.setMonth(item[13] - 1);
|
||||||
monitorTime.setDate(item[13]);
|
monitorTime.setDate(item[14]);
|
||||||
const row = {
|
const row = {
|
||||||
monitorTime: monitorTime.getTime(),
|
monitorTime: monitorTime.getTime(),
|
||||||
|
sectionCode:item[0],
|
||||||
province: item[1],
|
province: item[1],
|
||||||
city: item[2],
|
city: item[2],
|
||||||
area: item[3].includes("区")?item[3]:null,
|
area: item[3].includes("区")?item[3]:null,
|
||||||
@@ -17,46 +18,46 @@ export default {
|
|||||||
village: item[5],
|
village: item[5],
|
||||||
place: item[6],
|
place: item[6],
|
||||||
lakeLibraryFlag: item[7],
|
lakeLibraryFlag: item[7],
|
||||||
mustTestVillagesFlag: item[8],
|
// mustTestVillagesFlag: item[8],
|
||||||
longitude: item[9],
|
longitude: item[8],
|
||||||
latitude: item[10],
|
latitude: item[9],
|
||||||
|
numberServingPopulation: item[10],
|
||||||
|
dailyWaterSupplyScale: item[11],
|
||||||
// province: item[11],
|
// province: item[11],
|
||||||
// province: item[12],
|
// province: item[12],
|
||||||
// province: item[13],
|
// province: item[13],
|
||||||
numberServingPopulation: item[14],
|
waterTemperature: item[15],
|
||||||
dailyWaterSupplyScale: item[15],
|
ph: item[16],
|
||||||
waterTemperature: item[16],
|
dissolvedOxygen: item[17],
|
||||||
ph: item[17],
|
permanganateIndex: item[18],
|
||||||
dissolvedOxygen: item[18],
|
fiveDayBod: item[19],
|
||||||
permanganateIndex: item[19],
|
ammonia: item[20],
|
||||||
fiveDayBod: item[20],
|
totalPhosphorus: item[21],
|
||||||
ammonia: item[21],
|
totalNitrogen: item[22],
|
||||||
totalPhosphorus: item[22],
|
cu: item[23],
|
||||||
totalNitrogen: item[23],
|
zn: item[24],
|
||||||
cu: item[24],
|
fluoride: item[25],
|
||||||
zn: item[25],
|
se: item[26],
|
||||||
fluoride: item[26],
|
as: item[27],
|
||||||
se: item[27],
|
hg: item[28],
|
||||||
as: item[28],
|
cd: item[29],
|
||||||
hg: item[29],
|
cr: item[30],
|
||||||
cd: item[30],
|
pb: item[31],
|
||||||
cr: item[31],
|
cyanide: item[32],
|
||||||
pb: item[32],
|
volatilePhenol: item[33],
|
||||||
cyanide: item[33],
|
petro: item[34],
|
||||||
volatilePhenol: item[34],
|
anionicSurfactant: item[35],
|
||||||
petro: item[35],
|
sulfide: item[36],
|
||||||
anionicSurfactant: item[36],
|
fecalColiforms: item[37],
|
||||||
sulfide: item[37],
|
sulfate: item[38],
|
||||||
fecalColiforms: item[38],
|
chloride: item[39],
|
||||||
sulfate: item[39],
|
nitrateNitrogen: item[40],
|
||||||
chloride: item[40],
|
fe: item[41],
|
||||||
nitrateNitrogen: item[41],
|
mn: item[42],
|
||||||
fe: item[42],
|
// waterQualityCategory: item[44],
|
||||||
mn: item[43],
|
characteristicPollutantMonitoringProjectName: item[43],
|
||||||
waterQualityCategory: item[44],
|
characteristicPollutantMonitoringValue: item[44],
|
||||||
characteristicPollutantMonitoringProjectName: item[45],
|
remark: item[45],
|
||||||
characteristicPollutantMonitoringValue: item[46],
|
|
||||||
remark: item[47],
|
|
||||||
|
|
||||||
};
|
};
|
||||||
return row;
|
return row;
|
||||||
@@ -65,73 +66,73 @@ export default {
|
|||||||
// 农村地下水
|
// 农村地下水
|
||||||
toVillageBottom(excelData){
|
toVillageBottom(excelData){
|
||||||
return excelData.map(item=>{
|
return excelData.map(item=>{
|
||||||
const monitorTime = new Date();
|
const monitorTime = new Date();
|
||||||
monitorTime.setFullYear(item[10]);
|
monitorTime.setFullYear(item[11]);
|
||||||
monitorTime.setMonth(item[11] - 1);
|
monitorTime.setMonth(item[12] - 1);
|
||||||
monitorTime.setDate(item[12]);
|
monitorTime.setDate(item[13]);
|
||||||
const row = {
|
const row = {
|
||||||
lakeLibraryFlag: "否",
|
monitorTime: monitorTime.getTime(),
|
||||||
monitorTime: monitorTime.getTime(),
|
sectionCode:item[0],
|
||||||
province: item[1],
|
province: item[1],
|
||||||
city: item[2],
|
city: item[2],
|
||||||
area: item[3].includes("区")?item[3]:null,
|
area: item[3].includes("区")?item[3]:null,
|
||||||
county: !item[3].includes("区")?item[3]:null,
|
county: !item[3].includes("区")?item[3]:null,
|
||||||
township: item[4],
|
township: item[4],
|
||||||
village: item[5],
|
village: item[5],
|
||||||
mustTestVillagesFlag: item[6],
|
place: item[6],
|
||||||
place: item[7],
|
// lakeLibraryFlag: item[7],
|
||||||
longitude: item[8],
|
// mustTestVillagesFlag: item[8],
|
||||||
latitude: item[9],
|
longitude: item[7],
|
||||||
// latitude: item[10],
|
latitude: item[8],
|
||||||
// province: item[11],
|
numberServingPopulation: item[9],
|
||||||
// province: item[12],
|
dailyWaterSupplyScale: item[10],
|
||||||
numberServingPopulation: item[13],
|
// province: item[11],
|
||||||
dailyWaterSupplyScale: item[14],
|
// province: item[12],
|
||||||
color: item[15],
|
// province: item[13],
|
||||||
smellAndTaste: item[16],
|
color:item[14],
|
||||||
turbidity: item[17],
|
smellAndTaste: item[15],
|
||||||
visibleNakedEye: item[18],
|
turbidity: item[16],
|
||||||
ph: item[19],
|
visibleNakedEye: item[17],
|
||||||
totalHardness: item[20],
|
ph: item[18],
|
||||||
totalDissolvedSolids: item[21],
|
totalHardness: item[19],
|
||||||
sulfate: item[22],
|
totalDissolvedSolids: item[20],
|
||||||
chloride: item[23],
|
totalNitrsulfateogen: item[21],
|
||||||
fe: item[24],
|
chloride: item[22],
|
||||||
mn: item[25],
|
fe: item[23],
|
||||||
cu: item[26],
|
mn: item[24],
|
||||||
zn: item[27],
|
cu: item[25],
|
||||||
ai: item[28],
|
zn: item[26],
|
||||||
volatilePhenol: item[29],
|
ai: item[27],
|
||||||
anionicSurfactant: item[30],
|
volatilePhenol: item[28],
|
||||||
oxygenConsumption: item[31],
|
anionicSurfactant: item[29],
|
||||||
nitrate: item[32],
|
oxygenConsumption: item[30],
|
||||||
nitrite: item[33],
|
nitrate: item[31],
|
||||||
ammonia: item[34],
|
nitrite: item[32],
|
||||||
sulfide: item[35],
|
ammonia: item[33],
|
||||||
na: item[36],
|
sulfide: item[34],
|
||||||
fluoride: item[37],
|
na: item[35],
|
||||||
cyanide: item[38],
|
fluoride: item[36],
|
||||||
lodide: item[39],
|
cyanide: item[37],
|
||||||
hg: item[40],
|
lodide: item[38],
|
||||||
as: item[41],
|
hg: item[39],
|
||||||
se: item[42],
|
as: item[40],
|
||||||
cd: item[43],
|
se: item[41],
|
||||||
cr: item[44],
|
cd: item[42],
|
||||||
pb: item[45],
|
cr: item[43],
|
||||||
totalColiform: item[46],
|
pb: item[44],
|
||||||
totalNumberColonies: item[47],
|
totalColiform: item[45],
|
||||||
chcl3: item[48],
|
totalNumberColonies: item[46],
|
||||||
ccl4: item[49],
|
chcl3: item[47],
|
||||||
c6h6: item[50],
|
ccl4: item[48],
|
||||||
c7h8: item[51],
|
c6h6: item[49],
|
||||||
totalAlphaRadioactivity: item[52],
|
c7h8: item[50],
|
||||||
totalBetaRadioactivity: item[53],
|
totalAlphaRadioactivity: item[51],
|
||||||
waterQualityCategory: item[54],
|
totalBetaRadioactivity: item[52],
|
||||||
characteristicPollutantMonitoringProjectName: item[55],
|
characteristicPollutantMonitoringProjectName: item[53],
|
||||||
characteristicPollutantMonitoringValue: item[56],
|
characteristicPollutantMonitoringValue: item[54],
|
||||||
remark: item[57],
|
remark: item[55],
|
||||||
};
|
};
|
||||||
return row;
|
return row;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -173,17 +173,17 @@
|
|||||||
// dataIndex: 'title',
|
// dataIndex: 'title',
|
||||||
// sorter: true
|
// sorter: true
|
||||||
// },
|
// },
|
||||||
{
|
// {
|
||||||
title: '监测时间',
|
// title: '监测时间',
|
||||||
dataIndex: 'reportTime',
|
// dataIndex: 'reportTime',
|
||||||
sorter: true,
|
// sorter: true,
|
||||||
slots: {
|
// slots: {
|
||||||
customRender: 'reportTime',
|
// customRender: 'reportTime',
|
||||||
},
|
// },
|
||||||
// customRender: ({
|
// // customRender: ({
|
||||||
// text
|
// // text
|
||||||
// }) => this.$util.toDateString(text)
|
// // }) => this.$util.toDateString(text)
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: '导入时间',
|
title: '导入时间',
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
@@ -303,24 +303,37 @@
|
|||||||
let {
|
let {
|
||||||
drinkingWaterVillageBillId,
|
drinkingWaterVillageBillId,
|
||||||
billName,
|
billName,
|
||||||
reportTime
|
// reportTime
|
||||||
|
regionLevel,
|
||||||
|
createTime,
|
||||||
|
checked,
|
||||||
|
waterSourceType,
|
||||||
|
drinkingWaterType,
|
||||||
|
userId
|
||||||
} = this.editableData[record.drinkingWaterVillageBillId];
|
} = this.editableData[record.drinkingWaterVillageBillId];
|
||||||
if (!drinkingWaterVillageBillId || !reportTime) {
|
// if (!drinkingWaterVillageBillId || !reportTime) {
|
||||||
|
if (!drinkingWaterVillageBillId) {
|
||||||
this.$message.error('请填写完整信息再提交')
|
this.$message.error('请填写完整信息再提交')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const hide = this.$message.loading('请求中..', 0);
|
const hide = this.$message.loading('请求中..', 0);
|
||||||
reportTime = reportTime.format("x")
|
// reportTime = reportTime.format("x")
|
||||||
reportTime = Number(reportTime)
|
// reportTime = Number(reportTime)
|
||||||
updateDrinkingWaterVillageBill({
|
updateDrinkingWaterVillageBill({
|
||||||
drinkingWaterVillageBillId,
|
drinkingWaterVillageBillId,
|
||||||
billName,
|
billName,
|
||||||
reportTime
|
// reportTime
|
||||||
|
regionLevel,
|
||||||
|
createTime,
|
||||||
|
checked,
|
||||||
|
waterSourceType,
|
||||||
|
drinkingWaterType,
|
||||||
|
userId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
this.$message.success(res.data.msg);
|
this.$message.success(res.data.msg);
|
||||||
record.billName = billName;
|
record.billName = billName;
|
||||||
record.reportTime = reportTime
|
// record.reportTime = reportTime
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.data.msg);
|
this.$message.error(res.data.msg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,14 +53,14 @@
|
|||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="12" :sm="24">
|
<!-- <a-col :md="12" :sm="24">
|
||||||
<a-form-item label="时间" name="monitorTime">
|
<a-form-item label="时间" name="monitorTime">
|
||||||
<a-time-picker
|
<a-time-picker
|
||||||
v-model:value="form.monitorTime"
|
v-model:value="form.monitorTime"
|
||||||
format="HH:mm"
|
format="HH:mm"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col> -->
|
||||||
<a-col v-for="(item,index) in tableColumns" :key="index" :md="12" :sm="24">
|
<a-col v-for="(item,index) in tableColumns" :key="index" :md="12" :sm="24">
|
||||||
<a-form-item :label="item.title" :name="item.dataIndex">
|
<a-form-item :label="item.title" :name="item.dataIndex">
|
||||||
<a-input
|
<a-input
|
||||||
@@ -159,7 +159,15 @@ export default {
|
|||||||
tableColumns,
|
tableColumns,
|
||||||
// 表格列配置
|
// 表格列配置
|
||||||
columns: [
|
columns: [
|
||||||
|
{
|
||||||
|
title: "监测日期",
|
||||||
|
dataIndex: "monitorTime",
|
||||||
|
sorter: true,
|
||||||
|
customRender: ({text})=> moment(text).format("YYYY-MM-DD")
|
||||||
|
},
|
||||||
|
|
||||||
...tableColumns,
|
...tableColumns,
|
||||||
|
|
||||||
{
|
{
|
||||||
title: "区域等级",
|
title: "区域等级",
|
||||||
dataIndex: "regionLevel",
|
dataIndex: "regionLevel",
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
|
|
||||||
const tableColumns = [
|
const tableColumns = [
|
||||||
{title: "点位名称",dataIndex: "place",sorter: true,},
|
{title: "点位名称",dataIndex: "place",sorter: true,},
|
||||||
|
{title: "取水量",dataIndex: "waterWithdrawal",sorter: true,},
|
||||||
{title: "'水温(℃)",dataIndex: "waterTemperature",sorter: true,},
|
{title: "'水温(℃)",dataIndex: "waterTemperature",sorter: true,},
|
||||||
|
// {title: "采样时间",dataIndex: "monitorTime",sorter: true,},
|
||||||
{title: "pH(无量纲)",dataIndex: "ph",sorter: true,},
|
{title: "pH(无量纲)",dataIndex: "ph",sorter: true,},
|
||||||
{title: "溶解氧",dataIndex: "dissolvedOxygen",sorter: true,},
|
{title: "溶解氧",dataIndex: "dissolvedOxygen",sorter: true,},
|
||||||
{title: "高锰酸盐指数",dataIndex: "permanganateIndex",sorter: true,},
|
{title: "高锰酸盐指数",dataIndex: "permanganateIndex",sorter: true,},
|
||||||
@@ -124,7 +127,10 @@ const tableColumns = [
|
|||||||
//新增
|
//新增
|
||||||
{title: "叶绿素(mg/m3)",dataIndex:"chlorophyll",sorter:true,},
|
{title: "叶绿素(mg/m3)",dataIndex:"chlorophyll",sorter:true,},
|
||||||
{title: "透明度(cm)",dataIndex:"transparency",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}
|
export {tableColumns}
|
||||||
@@ -71,11 +71,11 @@
|
|||||||
<a-dropdown>
|
<a-dropdown>
|
||||||
<template #overlay>
|
<template #overlay>
|
||||||
<a-menu style="word-spacing:10px;">
|
<a-menu style="word-spacing:10px;">
|
||||||
<a-menu-item @click="download('市级地表水(在用)导入','xls')"> 市级在用导入{{"\xa0"}} <span style="color:#1890FF">模板下载</span> </a-menu-item>
|
<a-menu-item @click="download('市级(在用)地表水饮用水','xls')" > 市级(在用)地表水饮用水 </a-menu-item>
|
||||||
<a-menu-item @click="download('市级地表水(备用)导入','xlsx')"> 市级备用导入{{"\xa0"}} <span style="color:#1890FF">模板下载</span> </a-menu-item>
|
<a-menu-item @click="download('市级(备用)地表水饮用水','xlsx')" > 市级(备用)地表水饮用水 </a-menu-item>
|
||||||
<a-menu-item @click="download('县级地表水(在用)','xlsm')"> 县级在用导入{{"\xa0"}} <span style="color:#1890FF">模板下载</span> </a-menu-item>
|
<a-menu-item @click="download('县级(在用)地表水饮用水','xlsm')" > 县级(在用)地表水饮用水 </a-menu-item>
|
||||||
<a-menu-item @click="download('县级地表水(备用)','xls')"> 县级备用导入{{"\xa0"}} <span style="color:#1890FF">模板下载</span> </a-menu-item>
|
<a-menu-item @click="download('县级(备用、规划)地表水饮用水','xls')"> 县级(备用、规划)地表水饮用水 </a-menu-item>
|
||||||
<a-menu-item @click="download('县级地下水','xlsx')" style="word-spacing:3px"> 县级地下水导入{{"\xa0"}} <span style="color:#1890FF">模板下载</span> </a-menu-item>
|
<a-menu-item @click="download('县级地下水饮用水','xlsx')" > 县级地下水饮用水 </a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</template>
|
</template>
|
||||||
<a-button type="primary" style="left: 60px">
|
<a-button type="primary" style="left: 60px">
|
||||||
@@ -84,8 +84,10 @@
|
|||||||
</a-button>
|
</a-button>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<a-tabs v-model:activeKey="activeKey">
|
<a-tabs v-model:activeKey="activeKey">
|
||||||
<a-tab-pane tab="饮用水" key="water">
|
<a-tab-pane tab="饮用水页面" key="water">
|
||||||
<water-bill ref="water"></water-bill>
|
<water-bill ref="water"></water-bill>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
</a-tabs>
|
</a-tabs>
|
||||||
@@ -149,7 +151,7 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 解析成对象数组
|
// 解析成对象数组
|
||||||
const billName1 = aoa1[0][0] + aoa1[1][0];
|
const billName1 = file.name;
|
||||||
const billData1 = utils.toCityUseTopWaterObjData(drinkingWaterList);
|
const billData1 = utils.toCityUseTopWaterObjData(drinkingWaterList);
|
||||||
|
|
||||||
if (!billData1 || billData1.length == 0) {
|
if (!billData1 || billData1.length == 0) {
|
||||||
@@ -237,7 +239,7 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 解析成对象数组
|
// 解析成对象数组
|
||||||
const billName1 = aoa1[0][0] + aoa1[1][0];
|
const billName1 = file.name;
|
||||||
const billData1 = utils.toCitySpareTopWaterObjData(drinkingWaterList);
|
const billData1 = utils.toCitySpareTopWaterObjData(drinkingWaterList);
|
||||||
|
|
||||||
if (!billData1 || billData1.length == 0) {
|
if (!billData1 || billData1.length == 0) {
|
||||||
@@ -325,7 +327,7 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 解析成对象数组
|
// 解析成对象数组
|
||||||
const billName1 = aoa1[0][0];
|
const billName1 = file.name;
|
||||||
const billData1 = utils.toCountyUseTopWaterObjData(drinkingWaterList);
|
const billData1 = utils.toCountyUseTopWaterObjData(drinkingWaterList);
|
||||||
|
|
||||||
if (!billData1 || billData1.length == 0) {
|
if (!billData1 || billData1.length == 0) {
|
||||||
@@ -413,7 +415,7 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 解析成对象数组
|
// 解析成对象数组
|
||||||
const billName1 = aoa1[0][0];
|
const billName1 = file.name;
|
||||||
const billData1 = utils.toCountyUseTopWaterObjData(drinkingWaterList);
|
const billData1 = utils.toCountyUseTopWaterObjData(drinkingWaterList);
|
||||||
|
|
||||||
if (!billData1 || billData1.length == 0) {
|
if (!billData1 || billData1.length == 0) {
|
||||||
@@ -501,10 +503,10 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// 解析成对象数组
|
// 解析成对象数组
|
||||||
const billName1 = aoa1[0][1];
|
const billName1 = file.name;
|
||||||
const billData1 =
|
const billData1 =
|
||||||
utils.toCountyUseBottomWaterObjData(drinkingWaterList);
|
utils.toCountyUseBottomWaterObjData(drinkingWaterList);
|
||||||
|
console.log(billData1);
|
||||||
if (!billData1 || billData1.length == 0) {
|
if (!billData1 || billData1.length == 0) {
|
||||||
hide();
|
hide();
|
||||||
Modal.error({
|
Modal.error({
|
||||||
@@ -571,19 +573,6 @@ export default {
|
|||||||
downloadTemplate(filename);
|
downloadTemplate(filename);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
// //下载市级在用地表水文件
|
|
||||||
// downloadCityUseFile(){
|
|
||||||
// downloadTemplate();
|
|
||||||
// },
|
|
||||||
// //下载市级在用地表水文件
|
|
||||||
// downloadCityUseFile(){
|
|
||||||
// downloadTemplate();
|
|
||||||
// },
|
|
||||||
// //下载市级在用地表水文件
|
|
||||||
// downloadCityUseFile(){
|
|
||||||
// downloadTemplate();
|
|
||||||
// },
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import moment from "moment";
|
// import moment from "moment";
|
||||||
export default {
|
export default {
|
||||||
// 市级在用地表水 已可用
|
// 市级在用地表水 已可用
|
||||||
toCityUseTopWaterObjData(excelData) {
|
toCityUseTopWaterObjData(excelData) {
|
||||||
@@ -509,7 +509,7 @@ export default {
|
|||||||
county: item[0],
|
county: item[0],
|
||||||
place: item[1],
|
place: item[1],
|
||||||
waterSourceType: 2, // 1地表水、2地下水
|
waterSourceType: 2, // 1地表水、2地下水
|
||||||
monitorTime: moment(item[3], "YYYY年M月D日H:m").valueOf(),
|
// monitorTime: moment(item[3], "YYYY年MM月DD日HH:mm").valueOf(),
|
||||||
waterTemperature: item[4],
|
waterTemperature: item[4],
|
||||||
chroma: item[5],
|
chroma: item[5],
|
||||||
smellAndTaste: item[6],
|
smellAndTaste: item[6],
|
||||||
@@ -622,4 +622,13 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
importWaterWithdrawalData(excelData){
|
||||||
|
return excelData.map(item => {
|
||||||
|
const row = {
|
||||||
|
place:item[0],
|
||||||
|
waterWithdrawal:item[1],
|
||||||
|
}
|
||||||
|
return row;
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -53,14 +53,14 @@
|
|||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="12" :sm="24">
|
<!-- <a-col :md="12" :sm="24">
|
||||||
<a-form-item label="时间" name="monitorTime">
|
<a-form-item label="时间" name="monitorTime">
|
||||||
<a-time-picker
|
<a-time-picker
|
||||||
v-model:value="form.monitorTime"
|
v-model:value="form.monitorTime"
|
||||||
format="HH:mm"
|
format="HH:mm"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col> -->
|
||||||
<a-col v-for="(item,index) in tableColumns" :key="index" :md="12" :sm="24">
|
<a-col v-for="(item,index) in tableColumns" :key="index" :md="12" :sm="24">
|
||||||
<a-form-item :label="item.title" :name="item.dataIndex">
|
<a-form-item :label="item.title" :name="item.dataIndex">
|
||||||
<a-input
|
<a-input
|
||||||
@@ -159,6 +159,12 @@ export default {
|
|||||||
tableColumns,
|
tableColumns,
|
||||||
// 表格列配置
|
// 表格列配置
|
||||||
columns: [
|
columns: [
|
||||||
|
// {
|
||||||
|
// title: "监测日期",
|
||||||
|
// dataIndex: "monitorTime",
|
||||||
|
// sorter: true,
|
||||||
|
// customRender: ({text})=> moment(text).format("YYYY年MM月DD日HH:mm")
|
||||||
|
// },
|
||||||
...tableColumns,
|
...tableColumns,
|
||||||
{
|
{
|
||||||
title: "区域等级",
|
title: "区域等级",
|
||||||
@@ -254,19 +260,22 @@ export default {
|
|||||||
save() {
|
save() {
|
||||||
const hide = this.$message.loading("请求中..", 0);
|
const hide = this.$message.loading("请求中..", 0);
|
||||||
const form = _.cloneDeep(this.form);
|
const form = _.cloneDeep(this.form);
|
||||||
const date = new Date();
|
// const date = new Date();
|
||||||
date.setFullYear(form.monitorDate.year());
|
// date.setFullYear(form.monitorDate.year());
|
||||||
date.setMonth(form.monitorDate.month());
|
// date.setMonth(form.monitorDate.month());
|
||||||
date.setDate(form.monitorDate.date());
|
// date.setDate(form.monitorDate.date());
|
||||||
date.setHours(form.monitorTime.hour());
|
// date.setHours(form.monitorTime.hour());
|
||||||
date.setMinutes(form.monitorTime.minutes());
|
// date.setMinutes(form.monitorTime.minutes());
|
||||||
form.monitorTime = date.getTime();
|
// form.monitorTime = date.getTime();
|
||||||
form.monitorYear = date.getFullYear();
|
// form.monitorYear = date.getFullYear();
|
||||||
form.monitorMonth = date.getMonth() + 1;
|
// form.monitorMonth = date.getMonth() + 1;
|
||||||
form.monitorDay = date.getDate();
|
// form.monitorDay = date.getDate();
|
||||||
form.monitorHour = date.getHours();
|
// form.monitorHour = date.getHours();
|
||||||
form.monitorMinute = date.getMinutes();
|
// form.monitorMinute = date.getMinutes();
|
||||||
delete form["monitorDate"];
|
// delete form["monitorDate"];
|
||||||
|
console.log(form,'form');
|
||||||
|
const { billId } = this.$route.params;
|
||||||
|
form.drinkingWaterBillId = billId;
|
||||||
if (form.drinkingWaterId) {
|
if (form.drinkingWaterId) {
|
||||||
updateDrinkingWater(form)
|
updateDrinkingWater(form)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user