新接口捆绑
This commit is contained in:
@@ -19,10 +19,10 @@
|
|||||||
row-key="drinkingWaterId"
|
row-key="drinkingWaterId"
|
||||||
:datasource="datasource"
|
:datasource="datasource"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:total="count"
|
|
||||||
:where="where"
|
:where="where"
|
||||||
:scroll="{ x: 'max-content' }"
|
:scroll="{ x: 'max-content' }"
|
||||||
@done="(d) => (data = d.data)"
|
@done="(d) => (data = d.data)"
|
||||||
|
@change="handleTableChange"
|
||||||
>
|
>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
@@ -124,7 +124,9 @@ export default {
|
|||||||
// this.loadOptionData();
|
// this.loadOptionData();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleTableChange(page){
|
||||||
|
console.log(page)
|
||||||
|
},
|
||||||
// 获取列表数据
|
// 获取列表数据
|
||||||
getPageData(){
|
getPageData(){
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import moment from "moment"
|
// import moment from "moment"
|
||||||
//市级数据总览表格
|
//市级数据总览表格
|
||||||
|
|
||||||
export const filterColumns = [
|
export const filterColumns = [
|
||||||
@@ -147,7 +147,8 @@ const tableColumns = [
|
|||||||
{ title: "取水点经度", dataIndex: "longitude", sorter: true, },
|
{ title: "取水点经度", dataIndex: "longitude", sorter: true, },
|
||||||
{ title: "取水点纬度", dataIndex: "latitude", sorter: true, },
|
{ title: "取水点纬度", dataIndex: "latitude", sorter: true, },
|
||||||
{ title: "本月取水量", dataIndex: "waterWithdrawal", 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: "reportTime", sorter: true, customRender: ({text}) => moment(text, "YYYY/MM/DD HH:mm:ss").format("YYYY/MM/DD")},
|
||||||
|
{ title: "采样时间", dataIndex: "reportTime", sorter: true,},
|
||||||
{ title: "水期代码", dataIndex: "waterPhaseCode",sorter: true,
|
{ title: "水期代码", dataIndex: "waterPhaseCode",sorter: true,
|
||||||
slots:{customRender:'waterCode' }
|
slots:{customRender:'waterCode' }
|
||||||
},
|
},
|
||||||
@@ -301,7 +302,7 @@ const tableColumns2 = [
|
|||||||
{ title: "取水点经度", dataIndex: "longitude", sorter: true, },
|
{ title: "取水点经度", dataIndex: "longitude", sorter: true, },
|
||||||
{ title: "取水点纬度", dataIndex: "latitude", sorter: true, },
|
{ title: "取水点纬度", dataIndex: "latitude", sorter: true, },
|
||||||
{ title: "本月取水量", dataIndex: "waterWithdrawal", 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: "reportTime", sorter: true},
|
||||||
{ title: "水期代码", dataIndex: "waterPhaseCode",sorter: true,
|
{ title: "水期代码", dataIndex: "waterPhaseCode",sorter: true,
|
||||||
slots:{customRender:'waterCode' }
|
slots:{customRender:'waterCode' }
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user