江河模块修改

This commit is contained in:
shixiaoman
2021-11-30 15:27:26 +08:00
parent 6d1ede1f1c
commit 0c9e147c1c
6 changed files with 434 additions and 396 deletions

View File

@@ -56,12 +56,6 @@ const tableColumns = [
const tableCityColumns = [
{title: "城区", dataIndex: "area", sorter: true,},
{title: "县", dataIndex: "county", sorter: true,},
{title: "所在流域", dataIndex: "watershed", sorter: true,},
{title: "所在河流", dataIndex: "river", sorter: true,},
{title: "断面名称", dataIndex: "sectionName", sorter: true,},
{title: "站点名称", dataIndex: "place", sorter: true,},
{title: "本期水质", dataIndex: "periodWaterQuality", sorter: true,},
{title: "水温", dataIndex: "waterTemperature", sorter: true,},
{title: "pH值", dataIndex: "ph", sorter: true,},

View File

@@ -49,7 +49,7 @@
>
<a-row gutter="12" >
<a-col :md="12" :sm="24">
<a-form-item label="采样时间" name="monitorTime">
<a-form-item label="采样时间" name="monitorTime" >
<a-date-picker
v-model:value="form.monitorTime"
:locale="locale"
@@ -155,6 +155,7 @@ import {
} from "@/api/ecology/river-station";
import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
import { tableCityColumns } from "./colums";
import moment from "moment";
// import utils from "./utils";
export default {
name: "RiverStationCollectWater",
@@ -170,6 +171,18 @@ export default {
tableCityColumns,
// 表格列配置
columns: [
{title: "城区", dataIndex: "area", sorter: true,},
{title: "县", dataIndex: "county", sorter: true,},
{title: "所在流域", dataIndex: "watershed", sorter: true,},
{title: "所在河流", dataIndex: "river", sorter: true,},
{title: "断面名称", dataIndex: "sectionName", sorter: true,},
{title: "站点名称", dataIndex: "place", sorter: true,},
{
title: "采样开始时间",
dataIndex: "monitorTime",
sorter: true,
customRender: ({text})=> moment(text,"YYYY/MM/DD").format("YYYY-MM-DD")
},
...tableCityColumns,
{