江河模块修改
This commit is contained in:
@@ -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,},
|
||||
|
||||
@@ -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,
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user