新接口捆绑

This commit is contained in:
庞东林
2021-12-14 15:16:39 +08:00
parent c36a162d33
commit ada1fb7749
2 changed files with 8 additions and 5 deletions

View File

@@ -19,10 +19,10 @@
row-key="drinkingWaterId"
:datasource="datasource"
:columns="columns"
:total="count"
:where="where"
:scroll="{ x: 'max-content' }"
@done="(d) => (data = d.data)"
@change="handleTableChange"
>
<template #footer>
<div class="footer">
@@ -124,7 +124,9 @@ export default {
// this.loadOptionData();
},
methods: {
handleTableChange(page){
console.log(page)
},
// 获取列表数据
getPageData(){
this.loading = true;

View File

@@ -1,4 +1,4 @@
import moment from "moment"
// import moment from "moment"
//市级数据总览表格
export const filterColumns = [
@@ -147,7 +147,8 @@ const tableColumns = [
{ 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: "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,
slots:{customRender:'waterCode' }
},
@@ -301,7 +302,7 @@ const tableColumns2 = [
{ 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: "reportTime", sorter: true},
{ title: "水期代码", dataIndex: "waterPhaseCode",sorter: true,
slots:{customRender:'waterCode' }
},