修改前端样式

This commit is contained in:
Szn
2022-01-26 15:15:31 +08:00
parent 022a8f6a2c
commit 09c0fa2c30
144 changed files with 22918 additions and 551 deletions

22373
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -89,6 +89,20 @@ const airYearRankUrl = "/zhenQiWang/ambientAirZhenqiCityYearComprehensiveAqiRank
const airYearProvincialCapitalRankUrl = "/zhenQiWang/ambientAirZhenqiCityYearComprehensiveAqiRankData/listProvincialCapitalRank"; const airYearProvincialCapitalRankUrl = "/zhenQiWang/ambientAirZhenqiCityYearComprehensiveAqiRankData/listProvincialCapitalRank";
const airPm25YearRankUrl = "/zhenQiWang/ambientAirZhenqiCityYearPm25RankData/page"; const airPm25YearRankUrl = "/zhenQiWang/ambientAirZhenqiCityYearPm25RankData/page";
const airPm25YearProvincialCapitalRankUrl = "/zhenQiWang/ambientAirZhenqiCityYearPm25RankData/listProvincialCapitalRank"; const airPm25YearProvincialCapitalRankUrl = "/zhenQiWang/ambientAirZhenqiCityYearPm25RankData/listProvincialCapitalRank";
//PM2.5爬虫
const getPmNewData = function(data){
return axios.get("/zhenQiWang/ambientAirZhenqiCityYearPm25RankData/crawler",{params:{data}})
}
//月综合指数爬虫
const getMonthNewData = function(data){
return axios.get("/zhenQiWang/ambientAirZhenqiCityMonthComprehensiveAqiRankData/crawler",{params:{data}})
}
//年综合指数爬虫
const getYearNewData = function(data){
return axios.get("/zhenQiWang/ambientAirZhenqiCityYearComprehensiveAqiRankData/crawler",{params:{data}})
}
export { export {
pageBillUrl, pageBillUrl,
saveAirBill, saveAirBill,
@@ -116,8 +130,11 @@ export {
airYearProvincialCapitalRankUrl, airYearProvincialCapitalRankUrl,
airPm25YearProvincialCapitalRankUrl, airPm25YearProvincialCapitalRankUrl,
airMonthProvincialCapitalRankUrl, airMonthProvincialCapitalRankUrl,
getYearOptions, getYearOptions,
getTrendChart, getTrendChart,
getCityPlace, getCityPlace,
getCountryPlace getCountryPlace,
getMonthNewData,
getYearNewData,
getPmNewData,
} }

View File

@@ -86,7 +86,7 @@ export default {
website: 'Website', website: 'Website',
document: 'Document', document: 'Document',
authorization: 'Authorization', authorization: 'Authorization',
copyright: 'Copyright © 2021 南宁生态环境监测' copyright: 'Copyright © 2021 广西壮族自治区南宁生态环境监测中心'
}, },
logout: { logout: {
title: 'Confirm', title: 'Confirm',

View File

@@ -86,7 +86,7 @@ export default {
website: '官网', website: '官网',
document: '文档', document: '文档',
authorization: '授权', authorization: '授权',
copyright: 'Copyright © 2021 南宁生态环境监测' copyright: 'Copyright © 2021 广西壮族自治区南宁生态环境监测中心'
}, },
logout: { logout: {
title: '提示', title: '提示',

View File

@@ -86,7 +86,7 @@ export default {
website: '官網', website: '官網',
document: '檔案', document: '檔案',
authorization: '授權', authorization: '授權',
copyright: 'Copyright © 2021 南宁生态环境监测' copyright: 'Copyright © 2021 广西壮族自治区南宁生态环境监测中心'
}, },
logout: { logout: {
title: '詢問', title: '詢問',

View File

@@ -238,3 +238,76 @@ export default {
} }
} }
</script> </script>
<style>
/*表头背景颜色和字体*/
.ant-table-thead > tr > th{
background: #40a9ff !important;
color: #FFFFFF !important;
border-left: 1px solid #FFFFFF !important;
border-collapse: collapse;
}
/*表头图标*/
:root .ant-table-thead > tr > th .ant-table-column-sorter .ant-table-column-sorter-inner .ant-table-column-sorter-up, :root .ant-table-thead > tr > th .ant-table-column-sorter .ant-table-column-sorter-inner .ant-table-column-sorter-down{
color: #FFFFFF;
}
/*表头白色边框*/
.ant-table-thead > tr > th.ant-table-column-has-actions.ant-table-column-has-sorters{
border-left: 1px solid #FFFFFF !important;
}
/*表格边框线*/
.ant-table-bordered .ant-table-thead > tr > th, .ant-table-bordered .ant-table-tbody > tr > td{
/*border-right: 1px solid #40a9ff !important;*/
}
.ant-table-tbody > tr > td{
border-bottom: 1px solid #40a9ff !important;
border-left: 1px solid #40a9ff !important;
border-collapse: collapse;
}
.ant-table-row-cell-break-word{
border-left: 1px solid #FFFFFF !important;
}
.ant-table-thead > tr > th.ant-table-selection-column, .ant-table-tbody > tr > td.ant-table-selection-column{
border-left: 1px solid #40a9ff !important;
}
/*表格第一列选择框*/
.ant-checkbox-inner{
border: 1px solid #40a9ff !important;
}
/*表格底部的条数*/
.ant-pagination.mini .ant-pagination-total-text, .ant-pagination.mini .ant-pagination-simple-pager{
color: #40a9ff !important;
}
/*下拉框*/
.ant-select:not(.ant-select-customize-input) .ant-select-selector{
border: 1px solid #1890ff !important;
}
/*下拉框后面图标颜色*/
.ant-select-arrow{
color: #1890ff !important;
}
/*输入框*/
.ant-input,
.ant-input-affix-wrapper {
border: 1px solid #1890ff !important
}
.ant-input-affix-wrapper .ant-input{
border: none !important;
}
/*输入框后面图标的颜色*/
.ant-calendar-picker-icon{
color: #1890ff !important;
}
/*输入年份数字狂的颜色*/
.ant-input-number{
border: 1px solid #1890ff !important;
}
.ant-form-inline .ant-form-item{
/*margin-top: 10px !important;*/
}
.ant-form{
margin-bottom: 10px !important;
}
.ant-form-inline{
align-content: center !important;
}
</style>

View File

@@ -85,9 +85,9 @@ function checkStateValue(key, value) {
function getState(setting) { function getState(setting) {
const state = { const state = {
// 侧边栏风格: light(亮色), dark(暗色) // 侧边栏风格: light(亮色), dark(暗色)
sideStyle: 'dark', sideStyle: 'light',
// 顶栏风格: light(亮色), dark(暗色), primary(主色) // 顶栏风格: light(亮色), dark(暗色), primary(主色)
headStyle: 'light', headStyle: 'primary',
// 标签页风格: default(默认), dot(圆点), card(卡片) // 标签页风格: default(默认), dot(圆点), card(卡片)
tabStyle: 'default', tabStyle: 'default',
// 布局风格: side(默认), top(顶栏菜单), mix(混合菜单) // 布局风格: side(默认), top(顶栏菜单), mix(混合菜单)
@@ -105,9 +105,9 @@ function getState(setting) {
// 是否开启多标签 // 是否开启多标签
showTabs: true, showTabs: true,
// logo是否自适应宽度 // logo是否自适应宽度
logoAutoSize: false, logoAutoSize: true,
// 侧栏是否多彩图标 // 侧栏是否多彩图标
colorfulIcon: false, colorfulIcon: true,
// 侧边栏是否只保持一个子菜单展开 // 侧边栏是否只保持一个子菜单展开
sideUniqueOpen: true, sideUniqueOpen: true,
// 是否开启页脚 // 是否开启页脚

View File

@@ -18,7 +18,7 @@
> >
<a-button>数据导入</a-button> <a-button>数据导入</a-button>
</a-upload> </a-upload>
<a-button @click="download">模板下载</a-button> <a-button @click="download" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">模板下载</a-button>
</a-space> </a-space>
</template> </template>
<a-tabs v-model:activeKey="activeKey"> <a-tabs v-model:activeKey="activeKey">
@@ -167,4 +167,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -34,7 +34,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{span: 24}"> <a-form-item class="ele-text-right" :wrapper-col="{span: 24}">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-form> </a-form>
@@ -338,7 +338,7 @@
this.$message.error(e.msg); this.$message.error(e.msg);
}).finally(() => hide()); }).finally(() => hide());
}, },
} }
} }
</script> </script>
@@ -386,4 +386,4 @@
.editable-cell:hover .editable-cell-icon { .editable-cell:hover .editable-cell-icon {
display: inline-block; display: inline-block;
} }
</style> </style>

View File

@@ -34,7 +34,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -374,4 +374,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -21,7 +21,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -129,7 +129,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
<a-button @click="exportData" type="primary">导出</a-button> <a-button @click="exportData" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出</a-button>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -413,4 +413,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -36,8 +36,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-form> </a-form>

View File

@@ -11,8 +11,8 @@
</a-form-item> </a-form-item>
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form> </a-form>
<!-- 表格 --> <!-- 表格 -->
@@ -179,4 +179,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -11,8 +11,8 @@
</a-form-item> </a-form-item>
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form> </a-form>
<!-- 表格 --> <!-- 表格 -->
@@ -178,4 +178,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -11,8 +11,8 @@
</a-form-item> </a-form-item>
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form> </a-form>
<!-- 表格 --> <!-- 表格 -->
@@ -159,4 +159,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -32,7 +32,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{span: 24}"> <a-form-item class="ele-text-right" :wrapper-col="{span: 24}">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-form> </a-form>
@@ -397,4 +397,4 @@ export default {
.editable-cell:hover .editable-cell-icon { .editable-cell:hover .editable-cell-icon {
display: inline-block; display: inline-block;
} }
</style> </style>

View File

@@ -34,7 +34,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -525,4 +525,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
> >
<a-button type="primary">数据导入</a-button> <a-button type="primary">数据导入</a-button>
</a-upload> </a-upload>
<a-button @click="download">模板下载</a-button> <a-button @click="download" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">模板下载</a-button>
</a-space> </a-space>
</template> </template>
@@ -157,4 +157,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -132,7 +132,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
<a-button @click="exportData" type="primary">导出</a-button> <a-button @click="exportData" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出</a-button>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -418,4 +418,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -136,7 +136,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
<a-button @click="exportData" type="primary">导出</a-button> <a-button @click="exportData" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出</a-button>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -419,4 +419,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -115,7 +115,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
<a-button @click="exportData" type="primary">导出</a-button> <a-button @click="exportData" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出</a-button>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -386,4 +386,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -131,7 +131,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
<a-button @click="exportData" type="primary">导出</a-button> <a-button @click="exportData" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出</a-button>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -389,4 +389,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -19,8 +19,8 @@
<a-col :lg="24" :md="24" :sm="24" :xs="24"> <a-col :lg="24" :md="24" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -193,4 +193,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,8 +20,10 @@
<!-- <a-radio-button :value="2">PM2.5</a-radio-button>--> <!-- <a-radio-button :value="2">PM2.5</a-radio-button>-->
<!-- </a-radio-group>--> <!-- </a-radio-group>-->
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="newData" style="background: #8F54FFFF; border-color: #8F54FFFF;color: #FFFFFF">同步最新</a-button>
<a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form> </a-form>
<!-- 表格 --> <!-- 表格 -->
@@ -44,6 +46,7 @@ import XLSX from "xlsx";
import { import {
airMonthRankUrl, airMonthRankUrl,
airMonthProvincialCapitalRankUrl, airMonthProvincialCapitalRankUrl,
getMonthNewData,
} from "@/api/ecology/atmosphere/air"; } from "@/api/ecology/atmosphere/air";
import locale from "ant-design-vue/es/date-picker/locale/zh_CN"; import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
import moment from "moment"; import moment from "moment";
@@ -153,8 +156,17 @@ export default {
} }
this.reload(); this.reload();
}, },
//同步最新数据
newData(){
getMonthNewData().then( res =>{
this.$notification.open({
message: '温馨提示',
description: res.data.msg,
duration: 2,
});
})
},
exportFile() { exportFile() {
const columns = this.columns; const columns = this.columns;
const arr = []; const arr = [];
const th = columns.map((item) => item.title); const th = columns.map((item) => item.title);
@@ -172,4 +184,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -21,8 +21,9 @@
<a-radio-button :value="2">PM2.5</a-radio-button> <a-radio-button :value="2">PM2.5</a-radio-button>
</a-radio-group> </a-radio-group>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="newData" style="background: #8F54FFFF; border-color: #8F54FFFF;color: #FFFFFF">同步最新</a-button>
<a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-row> </a-row>
</a-form> </a-form>
@@ -45,10 +46,12 @@
// import _ from "lodash"; // import _ from "lodash";
import XLSX from "xlsx"; import XLSX from "xlsx";
import { import {
airYearRankUrl, airYearRankUrl,
airPm25YearRankUrl, airPm25YearRankUrl,
airYearProvincialCapitalRankUrl, airYearProvincialCapitalRankUrl,
airPm25YearProvincialCapitalRankUrl airPm25YearProvincialCapitalRankUrl,
getYearNewData,
getPmNewData,
} from "@/api/ecology/atmosphere/air"; } from "@/api/ecology/atmosphere/air";
import locale from "ant-design-vue/es/date-picker/locale/zh_CN"; import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
import moment from "moment"; import moment from "moment";
@@ -171,6 +174,26 @@ export default {
} }
this.reload(); this.reload();
}, },
//同步最新数据
newData(){
if (this.rankType == 1) {
getYearNewData().then( res =>{
this.$notification.open({
message: '温馨提示',
description: res.data.msg,
duration: 2,
});
})
} else {
getPmNewData().then( res =>{
this.$notification.open({
message: '温馨提示',
description: res.data.msg,
duration: 2,
});
})
}
},
exportFile() { exportFile() {
const columns = this.columns; const columns = this.columns;
@@ -190,4 +213,5 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style>
</style>

View File

@@ -22,8 +22,8 @@
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form> </a-form>

View File

@@ -31,8 +31,8 @@
<a-col :lg="24" :md="24" :sm="24" :xs="24"> <a-col :lg="24" :md="24" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>

View File

@@ -25,8 +25,8 @@
<a-col :lg="24" :md="24" :sm="24" :xs="24"> <a-col :lg="24" :md="24" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -225,4 +225,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -34,8 +34,8 @@
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form> </a-form>
<!-- 表格 --> <!-- 表格 -->

View File

@@ -24,8 +24,8 @@
</a-form-item> </a-form-item>
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form> </a-form>
<!-- 表格 --> <!-- 表格 -->

View File

@@ -18,7 +18,7 @@
> >
<a-button type="primary">数据导入</a-button> <a-button type="primary">数据导入</a-button>
</a-upload> </a-upload>
<a-button @click="download">模板下载</a-button> <a-button @click="download" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">模板下载</a-button>
</a-space> </a-space>
</template> </template>
<a-tabs v-model:activeKey="activeKey"> <a-tabs v-model:activeKey="activeKey">

View File

@@ -35,7 +35,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{span: 24}"> <a-form-item class="ele-text-right" :wrapper-col="{span: 24}">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-form> </a-form>

View File

@@ -39,7 +39,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -222,7 +222,7 @@
/> />
</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="functionCode"> <a-form-item label="功能区代码" name="functionCode">
<a-input <a-input
@@ -746,4 +746,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -139,7 +139,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
<a-button @click="exportData" type="primary">导出</a-button> <a-button @click="exportData" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出</a-button>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -416,4 +416,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -145,7 +145,7 @@
> >
<a-button>导入</a-button> <a-button>导入</a-button>
</a-upload> </a-upload>
<a-button @click="exportData" type="primary">导出</a-button> <a-button @click="exportData" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出</a-button>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -506,4 +506,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -31,8 +31,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -221,4 +221,4 @@ export default {
</script> </script>
<style scoped> <style scoped>
</style> </style>

View File

@@ -73,8 +73,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -557,4 +557,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -30,8 +30,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -50,7 +50,7 @@
> >
<template #toolbar> <template #toolbar>
<!-- <a-space> <!-- <a-space>
</a-space> --> </a-space> -->
</template> </template>
</ele-pro-table> </ele-pro-table>
@@ -198,15 +198,15 @@ export default {
let sheet = XLSX.utils.aoa_to_sheet(array); let sheet = XLSX.utils.aoa_to_sheet(array);
// 合并单元格 // 合并单元格
sheet['!merges'] = [ sheet['!merges'] = [
{s: {r: 0, c: 0}, e: {r: 2, c: 0}}, {s: {r: 0, c: 0}, e: {r: 2, c: 0}},
{s: {r: 0, c: 1}, e: {r: 0, c: 2}}, {s: {r: 0, c: 1}, e: {r: 0, c: 2}},
{s: {r: 0, c: 3}, e: {r: 0, c: 4}}, {s: {r: 0, c: 3}, e: {r: 0, c: 4}},
{s: {r: 0, c: 5}, e: {r: 0, c: 6}}, {s: {r: 0, c: 5}, e: {r: 0, c: 6}},
{s: {r: 0, c: 7}, e: {r: 0, c: 8}}, {s: {r: 0, c: 7}, e: {r: 0, c: 8}},
{s: {r: 1, c: 1}, e: {r: 1, c: 2}}, {s: {r: 1, c: 1}, e: {r: 1, c: 2}},
{s: {r: 1, c: 3}, e: {r: 1, c: 4}}, {s: {r: 1, c: 3}, e: {r: 1, c: 4}},
{s: {r: 1, c: 5}, e: {r: 1, c: 6}}, {s: {r: 1, c: 5}, e: {r: 1, c: 6}},
{s: {r: 1, c: 7}, e: {r: 1, c: 8}} {s: {r: 1, c: 7}, e: {r: 1, c: 8}}
]; ];
this.$util.exportSheet(XLSX, sheet, new Date().getTime().toString()); this.$util.exportSheet(XLSX, sheet, new Date().getTime().toString());
}, },
@@ -215,4 +215,4 @@ export default {
</script> </script>
<style scoped> <style scoped>
</style> </style>

View File

@@ -30,8 +30,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -50,7 +50,7 @@
> >
<template #toolbar> <template #toolbar>
<!-- <a-space> <!-- <a-space>
</a-space> --> </a-space> -->
</template> </template>
</ele-pro-table> </ele-pro-table>
@@ -198,15 +198,15 @@ export default {
let sheet = XLSX.utils.aoa_to_sheet(array); let sheet = XLSX.utils.aoa_to_sheet(array);
// 合并单元格 // 合并单元格
sheet['!merges'] = [ sheet['!merges'] = [
{s: {r: 0, c: 0}, e: {r: 2, c: 0}}, {s: {r: 0, c: 0}, e: {r: 2, c: 0}},
{s: {r: 0, c: 1}, e: {r: 0, c: 2}}, {s: {r: 0, c: 1}, e: {r: 0, c: 2}},
{s: {r: 0, c: 3}, e: {r: 0, c: 4}}, {s: {r: 0, c: 3}, e: {r: 0, c: 4}},
{s: {r: 0, c: 5}, e: {r: 0, c: 6}}, {s: {r: 0, c: 5}, e: {r: 0, c: 6}},
{s: {r: 0, c: 7}, e: {r: 0, c: 8}}, {s: {r: 0, c: 7}, e: {r: 0, c: 8}},
{s: {r: 1, c: 1}, e: {r: 1, c: 2}}, {s: {r: 1, c: 1}, e: {r: 1, c: 2}},
{s: {r: 1, c: 3}, e: {r: 1, c: 4}}, {s: {r: 1, c: 3}, e: {r: 1, c: 4}},
{s: {r: 1, c: 5}, e: {r: 1, c: 6}}, {s: {r: 1, c: 5}, e: {r: 1, c: 6}},
{s: {r: 1, c: 7}, e: {r: 1, c: 8}} {s: {r: 1, c: 7}, e: {r: 1, c: 8}}
]; ];
this.$util.exportSheet(XLSX, sheet, new Date().getTime().toString()); this.$util.exportSheet(XLSX, sheet, new Date().getTime().toString());
}, },
@@ -215,4 +215,4 @@ export default {
</script> </script>
<style scoped> <style scoped>
</style> </style>

View File

@@ -18,7 +18,7 @@
> >
<a-button type="primary">数据导入</a-button> <a-button type="primary">数据导入</a-button>
</a-upload> </a-upload>
<a-button @click="download">模板下载</a-button> <a-button @click="download" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">模板下载</a-button>
</a-space> </a-space>
</template> </template>
<a-tabs v-model:activeKey="activeKey"> <a-tabs v-model:activeKey="activeKey">

View File

@@ -34,7 +34,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{span: 24}"> <a-form-item class="ele-text-right" :wrapper-col="{span: 24}">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-form> </a-form>

View File

@@ -45,7 +45,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -867,4 +867,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -140,7 +140,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
<a-button @click="exportData" type="primary">导出</a-button> <a-button @click="exportData" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出</a-button>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -431,4 +431,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -21,7 +21,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -167,7 +167,7 @@
> >
<a-button>导入</a-button> <a-button>导入</a-button>
</a-upload> </a-upload>
<a-button @click="exportData" type="primary">导出</a-button> <a-button @click="exportData" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出</a-button>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">

View File

@@ -32,8 +32,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-form> </a-form>

View File

@@ -84,8 +84,8 @@
<a-form-item class="ele-text-left" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-left" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -23,8 +23,8 @@
<a-form-item class="ele-text-left" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-left" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-form> </a-form>

View File

@@ -14,7 +14,7 @@
<!-- 搜索表单 --> <!-- 搜索表单 -->
<a-form :model="where" layout="inline" :labelCol="{ offset: 1 }"> <a-form :model="where" layout="inline" :labelCol="{ offset: 1 }">
<a-row> <a-row>
<a-button @click="exportFile">导出excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出excel</a-button>
<!-- <a-col :lg="6" :md="12" :sm="24" :xs="24">--> <!-- <a-col :lg="6" :md="12" :sm="24" :xs="24">-->
<!-- <a-form-item label="昼夜:">--> <!-- <a-form-item label="昼夜:">-->
<!-- <a-select--> <!-- <a-select-->
@@ -37,7 +37,7 @@
</a-row> </a-row>
</a-form> </a-form>
<!-- <a-space> <!-- <a-space>
</a-space> --> </a-space> -->
</template> </template>
</ele-pro-table> </ele-pro-table>
@@ -145,4 +145,4 @@ export default {
</script> </script>
<style scoped> <style scoped>
</style> </style>

View File

@@ -18,7 +18,7 @@
> >
<a-button type="primary">数据导入</a-button> <a-button type="primary">数据导入</a-button>
</a-upload> </a-upload>
<a-button @click="download">模板下载</a-button> <a-button @click="download" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">模板下载</a-button>
</a-space> </a-space>
</template> </template>
<a-tabs v-model:activeKey="activeKey"> <a-tabs v-model:activeKey="activeKey">

View File

@@ -34,7 +34,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{span: 24}"> <a-form-item class="ele-text-right" :wrapper-col="{span: 24}">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-form> </a-form>

View File

@@ -36,7 +36,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -723,4 +723,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -425,4 +425,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -510,4 +510,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-col> </a-col>
</a-row> </a-row>
@@ -126,7 +126,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
<a-button @click="exportData" type="primary">导出</a-button> <a-button @click="exportData" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出</a-button>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -387,4 +387,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -11,7 +11,7 @@
<a-space> <a-space>
<!-- <a-button type="primary" @click="reload">查询</a-button>--> <!-- <a-button type="primary" @click="reload">查询</a-button>-->
<!-- <a-button @click="reset">重置</a-button> --> <!-- <a-button @click="reset">重置</a-button> -->
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
<!-- <a-col :lg="6" :md="12" :sm="24" :xs="24">--> <!-- <a-col :lg="6" :md="12" :sm="24" :xs="24">-->
<!-- <a-form-item label="年份">--> <!-- <a-form-item label="年份">-->
@@ -185,4 +185,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -60,8 +60,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -529,4 +529,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -49,7 +49,7 @@
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<!-- <a-button @click="reset">重置</a-button> --> <!-- <a-button @click="reset">重置</a-button> -->
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -160,4 +160,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -37,7 +37,7 @@
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<!-- <a-button @click="reset">重置</a-button> --> <!-- <a-button @click="reset">重置</a-button> -->
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -210,4 +210,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -39,7 +39,7 @@
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<!-- <a-button @click="reset">重置</a-button> --> <!-- <a-button @click="reset">重置</a-button> -->
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -235,4 +235,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -39,7 +39,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{span: 24}"> <a-form-item class="ele-text-right" :wrapper-col="{span: 24}">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -35,7 +35,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{span: 24}"> <a-form-item class="ele-text-right" :wrapper-col="{span: 24}">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -40,7 +40,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{span: 24}"> <a-form-item class="ele-text-right" :wrapper-col="{span: 24}">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -35,7 +35,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{span: 24}"> <a-form-item class="ele-text-right" :wrapper-col="{span: 24}">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -38,7 +38,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{span: 24}"> <a-form-item class="ele-text-right" :wrapper-col="{span: 24}">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -23,7 +23,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -165,9 +165,9 @@ export default {
sorter: true, sorter: true,
customRender: ({text})=> moment(text).format("YYYY-MM-DD") customRender: ({text})=> moment(text).format("YYYY-MM-DD")
}, },
...tableColumns2, ...tableColumns2,
{ {
title: "区域等级", title: "区域等级",
dataIndex: "regionLevel", dataIndex: "regionLevel",
@@ -352,4 +352,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -25,7 +25,7 @@
<a-menu-item @click="download('农村村庄地下水饮用水','xlsx')"> 农村村庄地下水饮用水</a-menu-item> <a-menu-item @click="download('农村村庄地下水饮用水','xlsx')"> 农村村庄地下水饮用水</a-menu-item>
</a-menu> </a-menu>
</template> </template>
<a-button type="primary" style="left: 10px"> <a-button type="primary" style="left: 10px;background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">
模板下载 模板下载
<DownOutlined /> <DownOutlined />
</a-button> </a-button>

View File

@@ -57,7 +57,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{span: 24}"> <a-form-item class="ele-text-right" :wrapper-col="{span: 24}">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -304,7 +304,7 @@
let workbook = XLSX.read(data, { let workbook = XLSX.read(data, {
type: "array", type: "array",
}); });
let sheetNames = workbook.SheetNames; let sheetNames = workbook.SheetNames;
// 解析成二维数组 // 解析成二维数组
let aoa1 = XLSX.utils.sheet_to_json( let aoa1 = XLSX.utils.sheet_to_json(
@@ -410,7 +410,7 @@
path: "/water/drinking-water-village/collect/bottomWater/" + record.drinkingWaterVillageBillId path: "/water/drinking-water-village/collect/bottomWater/" + record.drinkingWaterVillageBillId
}) })
} }
}, },
edit(record) { edit(record) {
this.editableData[record.drinkingWaterVillageBillId] = _.cloneDeep(record); this.editableData[record.drinkingWaterVillageBillId] = _.cloneDeep(record);
@@ -518,7 +518,7 @@
this.$message.error(e.msg); this.$message.error(e.msg);
}).finally(() => hide()); }).finally(() => hide());
}, },
} }
} }
</script> </script>
@@ -569,4 +569,4 @@
.editable-cell:hover .editable-cell-icon { .editable-cell:hover .editable-cell-icon {
display: inline-block; display: inline-block;
} }
</style> </style>

View File

@@ -23,7 +23,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -165,9 +165,9 @@ export default {
sorter: true, sorter: true,
customRender: ({text})=> moment(text).format("YYYY-MM-DD") customRender: ({text})=> moment(text).format("YYYY-MM-DD")
}, },
...tableColumns, ...tableColumns,
{ {
title: "区域等级", title: "区域等级",
dataIndex: "regionLevel", dataIndex: "regionLevel",
@@ -352,4 +352,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -35,15 +35,15 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
<!-- <a-space> <!-- <a-space>
</a-space> --> </a-space> -->
</template> </template>
<template #Leq="{ text, record }"> <template #Leq="{ text, record }">
@@ -255,4 +255,4 @@ export default {
</script> </script>
<style scoped> <style scoped>
</style> </style>

View File

@@ -36,8 +36,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -68,8 +68,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -92,7 +92,7 @@
<!-- 搜索表单 --> <!-- 搜索表单 -->
<!-- <a-space> <!-- <a-space>
</a-space> --> </a-space> -->
</template> </template>
</ele-pro-table> </ele-pro-table>
@@ -505,4 +505,4 @@ export default {
</script> </script>
<style scoped> <style scoped>
</style> </style>

View File

@@ -79,13 +79,13 @@
<a-menu-item @click="download('各取水点取水量情况表','xlsx')" > 各取水点取水量取水量表 </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;background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">
模板下载 模板下载
<DownOutlined /> <DownOutlined />
</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">
@@ -579,5 +579,5 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -77,7 +77,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -380,7 +380,7 @@ export default {
let workbook = XLSX.read(data, { let workbook = XLSX.read(data, {
type: "array", type: "array",
}); });
let sheetNames = workbook.SheetNames; let sheetNames = workbook.SheetNames;
// 解析成二维数组 // 解析成二维数组
let aoa1 = XLSX.utils.sheet_to_json( let aoa1 = XLSX.utils.sheet_to_json(

View File

@@ -23,7 +23,7 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -275,7 +275,7 @@ export default {
// delete form["monitorDate"]; // delete form["monitorDate"];
console.log(form,'form'); console.log(form,'form');
const { billId } = this.$route.params; const { billId } = this.$route.params;
form.drinkingWaterBillId = billId; form.drinkingWaterBillId = billId;
if (form.drinkingWaterId) { if (form.drinkingWaterId) {
updateDrinkingWater(form) updateDrinkingWater(form)
.then((res) => { .then((res) => {
@@ -353,4 +353,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportData" type="primary">按年份导出</a-button> <a-button @click="exportData" type="primary">按年份导出</a-button>
</a-space> </a-space>
</a-col> </a-col>
@@ -55,7 +55,7 @@
:width="800" :width="800"
:body-style="{ paddingBottom: '8px' }" :body-style="{ paddingBottom: '8px' }"
@ok="save" @ok="save"
> >
<a-form <a-form
ref="form" ref="form"
@@ -159,7 +159,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -364,7 +364,7 @@ export default {
hide(); hide();
}) })
}, },
getOptions(){ getOptions(){
getColumnOptions("year").then(res => { getColumnOptions("year").then(res => {
console.log(res) console.log(res)
@@ -418,4 +418,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<!-- <a-button @click="exportData" type="primary">按年份导出</a-button> --> <!-- <a-button @click="exportData" type="primary">按年份导出</a-button> -->
</a-space> </a-space>
</a-col> </a-col>
@@ -55,7 +55,7 @@
:width="800" :width="800"
:body-style="{ paddingBottom: '8px' }" :body-style="{ paddingBottom: '8px' }"
@ok="save" @ok="save"
> >
<a-form <a-form
ref="form" ref="form"
@@ -159,7 +159,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -246,7 +246,7 @@ export default {
// 表格搜索条件 // 表格搜索条件
where: { where: {
// sort: "sectionCode", // sort: "sectionCode",
}, },
// 表格选中数据 // 表格选中数据
selectionList: [], selectionList: [],
@@ -367,7 +367,7 @@ export default {
hide(); hide();
}) })
}, },
getOptions(){ getOptions(){
getCountyBottomColumnOptions("year").then(res => { getCountyBottomColumnOptions("year").then(res => {
console.log(res) console.log(res)
@@ -421,4 +421,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportData" type="primary">按年份导出</a-button> <a-button @click="exportData" type="primary">按年份导出</a-button>
</a-space> </a-space>
</a-col> </a-col>
@@ -55,7 +55,7 @@
:width="800" :width="800"
:body-style="{ paddingBottom: '8px' }" :body-style="{ paddingBottom: '8px' }"
@ok="save" @ok="save"
> >
<a-form <a-form
ref="form" ref="form"
@@ -156,7 +156,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -362,7 +362,7 @@ export default {
hide(); hide();
}) })
}, },
getOptions(){ getOptions(){
getCountyColumnOptions("year").then(res => { getCountyColumnOptions("year").then(res => {
console.log(res) console.log(res)
@@ -416,4 +416,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportData" type="primary">按年份导出</a-button> <a-button @click="exportData" type="primary">按年份导出</a-button>
</a-space> </a-space>
</a-col> </a-col>
@@ -55,7 +55,7 @@
:width="800" :width="800"
:body-style="{ paddingBottom: '8px' }" :body-style="{ paddingBottom: '8px' }"
@ok="save" @ok="save"
> >
<a-form <a-form
ref="form" ref="form"
@@ -153,7 +153,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -186,7 +186,7 @@
<script> <script>
// import _ from "lodash"; // import _ from "lodash";
import { import {
pageVillageBottomDictUrl, pageVillageBottomDictUrl,
saveDrinkingWaterVillageBottomDict, saveDrinkingWaterVillageBottomDict,
removeDrinkingWaterVillageBottomDict, removeDrinkingWaterVillageBottomDict,
@@ -209,7 +209,7 @@ export default {
selection: [], selection: [],
// 表格列配置 // 表格列配置
columns: [ columns: [
{title: "年份",dataIndex: "year",sorter: true}, {title: "年份",dataIndex: "year",sorter: true},
{title: "断面代码",dataIndex: "sectionCode",sorter: true}, {title: "断面代码",dataIndex: "sectionCode",sorter: true},
{title: "省",dataIndex: "province",sorter: true,}, {title: "省",dataIndex: "province",sorter: true,},
@@ -357,7 +357,7 @@ export default {
hide(); hide();
}) })
}, },
getOptions(){ getOptions(){
getVillageBottomColumnOptions("year").then(res => { getVillageBottomColumnOptions("year").then(res => {
console.log(res) console.log(res)
@@ -411,4 +411,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -20,7 +20,7 @@
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportData" type="primary">按年份导出</a-button> <a-button @click="exportData" type="primary">按年份导出</a-button>
</a-space> </a-space>
</a-col> </a-col>
@@ -55,7 +55,7 @@
:width="800" :width="800"
:body-style="{ paddingBottom: '8px' }" :body-style="{ paddingBottom: '8px' }"
@ok="save" @ok="save"
> >
<a-form <a-form
ref="form" ref="form"
@@ -109,7 +109,7 @@
<a-form-item label="日供水规模(吨)" name="dailyWaterSupplyScale"> <a-form-item label="日供水规模(吨)" name="dailyWaterSupplyScale">
<a-input v-model:value="form.dailyWaterSupplyScale" placeholder="请输入日供水规模(吨)" allow-clear /> <a-input v-model:value="form.dailyWaterSupplyScale" placeholder="请输入日供水规模(吨)" allow-clear />
</a-form-item> </a-form-item>
</a-form> </a-form>
</a-modal> </a-modal>
<!-- 表格 --> <!-- 表格 -->
@@ -154,7 +154,7 @@
>删除 >删除
</a-button> </a-button>
</a-popconfirm> </a-popconfirm>
</a-space> </a-space>
</template> </template>
<template #action="{ record }"> <template #action="{ record }">
@@ -357,7 +357,7 @@ export default {
hide(); hide();
}) })
}, },
getOptions(){ getOptions(){
getVillageTopColumnOptions("year").then(res => { getVillageTopColumnOptions("year").then(res => {
console.log(res) console.log(res)
@@ -411,4 +411,4 @@ export default {
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
</style> </style>

View File

@@ -22,8 +22,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -25,8 +25,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -8,13 +8,13 @@
:wrapper-col="{ md: { span: 18 }, sm: { span: 24 } }" :wrapper-col="{ md: { span: 18 }, sm: { span: 24 } }"
> >
<a-row> <a-row>
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -59,7 +59,7 @@ export default {
name: "DrinkingWaterBase", name: "DrinkingWaterBase",
components: {}, components: {},
data() { data() {
return { return {
data: [], data: [],
@@ -86,12 +86,12 @@ export default {
{title:"备注",dataIndex:"remark"}, {title:"备注",dataIndex:"remark"},
// {title:"水源地性质",dataIndex:"waterSourceProperty",}, // {title:"水源地性质",dataIndex:"waterSourceProperty",},
], ],
// 表格列配置 // 表格列配置
// palceOptions: [], // palceOptions: [],
// areaOptions: [], // areaOptions: [],
// roadOptions: [], // roadOptions: [],
@@ -149,7 +149,7 @@ export default {
// }, // },
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.$refs.table.reload({ this.$refs.table.reload({
where: this.where, where: this.where,
}); });

View File

@@ -66,8 +66,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -8,7 +8,7 @@
:wrapper-col="{ md: { span: 18 }, sm: { span: 24 } }" :wrapper-col="{ md: { span: 18 }, sm: { span: 24 } }"
> >
<a-row> <a-row>
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
<a-form-item label="水源类型:"> <a-form-item label="水源类型:">
<a-select <a-select
@@ -30,8 +30,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -73,7 +73,7 @@ export default {
name: "DrinkingWaterBase", name: "DrinkingWaterBase",
components: {}, components: {},
data() { data() {
return { return {
data: [], data: [],
@@ -94,12 +94,12 @@ export default {
}, },
{title:"主要污染指标",dataIndex:"",}, {title:"主要污染指标",dataIndex:"",},
], ],
// 表格列配置 // 表格列配置
// palceOptions: [], // palceOptions: [],
// areaOptions: [], // areaOptions: [],
// roadOptions: [], // roadOptions: [],
@@ -157,7 +157,7 @@ export default {
// }, // },
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.$refs.table.reload({ this.$refs.table.reload({
where: this.where, where: this.where,
}); });

View File

@@ -39,8 +39,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -57,7 +57,7 @@
:scroll="{ x: 'max-content' }" :scroll="{ x: 'max-content' }"
@done="(d) => (data = d.data)" @done="(d) => (data = d.data)"
> >
</ele-pro-table> </ele-pro-table>
</a-card> </a-card>
</div> </div>

View File

@@ -43,7 +43,7 @@
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
@@ -70,8 +70,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="searchData">查询</a-button> <a-button type="primary" @click="searchData">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -228,7 +228,7 @@ export default {
onCheckAllChange (e) { onCheckAllChange (e) {
this.filter = e.target.checked ? filterColumns.map((item) => item.dataIndex) : [] this.filter = e.target.checked ? filterColumns.map((item) => item.dataIndex) : []
}, },
handleChange(e) { handleChange(e) {
@@ -336,4 +336,4 @@ export default {
cursor: pointer; cursor: pointer;
height: 32px; height: 32px;
} }
</style> </style>

View File

@@ -43,7 +43,7 @@
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
@@ -70,8 +70,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="searchData">查询</a-button> <a-button type="primary" @click="searchData">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -228,7 +228,7 @@ export default {
onCheckAllChange (e) { onCheckAllChange (e) {
this.filter = e.target.checked ? filterColumns.map((item) => item.dataIndex) : [] this.filter = e.target.checked ? filterColumns.map((item) => item.dataIndex) : []
}, },
handleChange(e) { handleChange(e) {
@@ -330,4 +330,4 @@ export default {
cursor: pointer; cursor: pointer;
height: 32px; height: 32px;
} }
</style> </style>

View File

@@ -43,7 +43,7 @@
/> />
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
<a-row> <a-row>
<a-col :lg="6" :md="12" :sm="24" :xs="24"> <a-col :lg="6" :md="12" :sm="24" :xs="24">
@@ -70,8 +70,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="searchData">查询</a-button> <a-button type="primary" @click="searchData">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -228,7 +228,7 @@ export default {
onCheckAllChange (e) { onCheckAllChange (e) {
this.filter = e.target.checked ? filterColumns.map((item) => item.dataIndex) : [] this.filter = e.target.checked ? filterColumns.map((item) => item.dataIndex) : []
}, },
handleChange(e) { handleChange(e) {
@@ -331,4 +331,4 @@ export default {
cursor: pointer; cursor: pointer;
height: 32px; height: 32px;
} }
</style> </style>

View File

@@ -22,8 +22,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -25,8 +25,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -56,8 +56,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -75,15 +75,15 @@
@done="(d) => (data = d.data)" @done="(d) => (data = d.data)"
> >
<template #waterCode="{text,record}"> <template #waterCode="{text,record}">
<span > <span >
{{ {{
record.reportTime==null? text="": record.reportTime==null? text="":
record.reportTime.substr(5,2)=="01" || record.reportTime.substr(5,2) == "02" ||record.reportTime.substr(5,2) == "03" ||record.reportTime.substr(5,2)=="12" record.reportTime.substr(5,2)=="01" || record.reportTime.substr(5,2) == "02" ||record.reportTime.substr(5,2) == "03" ||record.reportTime.substr(5,2)=="12"
? text="K": ? text="K":
record.reportTime.substr(5,2)=="04" || record.reportTime.substr(5,2) == "05" ||record.reportTime.substr(5,2)=="10"||record.reportTime.substr(5,2)=="11" record.reportTime.substr(5,2)=="04" || record.reportTime.substr(5,2) == "05" ||record.reportTime.substr(5,2)=="10"||record.reportTime.substr(5,2)=="11"
? text="P": ? text="P":
record.reportTime.substr(5,2)=="06" || record.reportTime.substr(5,2) == "07" ||record.reportTime.substr(5,2)=="08"||record.reportTime.substr(5,2)=="09" record.reportTime.substr(5,2)=="06" || record.reportTime.substr(5,2) == "07" ||record.reportTime.substr(5,2)=="08"||record.reportTime.substr(5,2)=="09"
? text="F":text="无采样时间" ? text="F":text="无采样时间"
}} }}
@@ -114,7 +114,7 @@ export default {
name: "DrinkingWaterBase", name: "DrinkingWaterBase",
components: {}, components: {},
data() { data() {
return { return {
data: [], data: [],
@@ -141,12 +141,12 @@ export default {
{title:"备注",dataIndex:"remark"}, {title:"备注",dataIndex:"remark"},
// {title:"水源地性质",dataIndex:"waterSourceProperty",}, // {title:"水源地性质",dataIndex:"waterSourceProperty",},
], ],
// 表格列配置 // 表格列配置
// palceOptions: [], // palceOptions: [],
// areaOptions: [], // areaOptions: [],
// roadOptions: [], // roadOptions: [],
@@ -204,7 +204,7 @@ export default {
// }, // },
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.$refs.table.reload({ this.$refs.table.reload({
where: this.where, where: this.where,
}); });

View File

@@ -65,8 +65,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -84,14 +84,14 @@
@done="(d) => (data = d.data)" @done="(d) => (data = d.data)"
> >
<template #waterCode="{text,record}"> <template #waterCode="{text,record}">
<span > <span >
{{ {{
record.reportTime==null? text="": record.reportTime==null? text="":
record.reportTime.substr(5,2)=="01" || record.reportTime.substr(5,2) == "02" ||record.reportTime.substr(5,2) == "03" ||record.reportTime.substr(5,2)=="12" record.reportTime.substr(5,2)=="01" || record.reportTime.substr(5,2) == "02" ||record.reportTime.substr(5,2) == "03" ||record.reportTime.substr(5,2)=="12"
? text="K": ? text="K":
record.reportTime.substr(5,2)=="04" || record.reportTime.substr(5,2) == "05" ||record.reportTime.substr(5,2)=="10"||record.reportTime.substr(5,2)=="11" record.reportTime.substr(5,2)=="04" || record.reportTime.substr(5,2) == "05" ||record.reportTime.substr(5,2)=="10"||record.reportTime.substr(5,2)=="11"
? text="P": ? text="P":
record.reportTime.substr(5,2)=="06" || record.reportTime.substr(5,2) == "07" ||record.reportTime.substr(5,2)=="08"||record.reportTime.substr(5,2)=="09" record.reportTime.substr(5,2)=="06" || record.reportTime.substr(5,2) == "07" ||record.reportTime.substr(5,2)=="08"||record.reportTime.substr(5,2)=="09"
? text="F":text="无采样时间" ? text="F":text="无采样时间"
}} }}
@@ -122,7 +122,7 @@ export default {
name: "DrinkingWaterBase", name: "DrinkingWaterBase",
components: {}, components: {},
data() { data() {
return { return {
data: [], data: [],
@@ -132,20 +132,20 @@ export default {
url: pageDrinkingWaterCountyStatisticUrl, url: pageDrinkingWaterCountyStatisticUrl,
selection: [], selection: [],
columns:[ columns:[
// { // {
// title: "水期代码", // title: "水期代码",
// dataIndex: "waterPhaseCode", // dataIndex: "waterPhaseCode",
// sorter: true, // sorter: true,
// slots:{customRender:'waterCode' } // slots:{customRender:'waterCode' }
// }, // },
...tableColumns2, ...tableColumns2,
], ],
// 表格列配置 // 表格列配置
// palceOptions: [], // palceOptions: [],
// areaOptions: [], // areaOptions: [],
// roadOptions: [], // roadOptions: [],
@@ -203,7 +203,7 @@ export default {
// }, // },
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.$refs.table.reload({ this.$refs.table.reload({
where: this.where, where: this.where,
}); });

View File

@@ -28,8 +28,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -47,14 +47,14 @@
@done="(d) => (data = d.data)" @done="(d) => (data = d.data)"
> >
<template #waterCode="{text,record}"> <template #waterCode="{text,record}">
<span > <span >
{{ {{
record.reportTime==null? text="": record.reportTime==null? text="":
record.reportTime.substr(5,2)=="01" || record.reportTime.substr(5,2) == "02" ||record.reportTime.substr(5,2) == "03" ||record.reportTime.substr(5,2)=="12" record.reportTime.substr(5,2)=="01" || record.reportTime.substr(5,2) == "02" ||record.reportTime.substr(5,2) == "03" ||record.reportTime.substr(5,2)=="12"
? text="K": ? text="K":
record.reportTime.substr(5,2)=="04" || record.reportTime.substr(5,2) == "05" ||record.reportTime.substr(5,2)=="10"||record.reportTime.substr(5,2)=="11" record.reportTime.substr(5,2)=="04" || record.reportTime.substr(5,2) == "05" ||record.reportTime.substr(5,2)=="10"||record.reportTime.substr(5,2)=="11"
? text="P": ? text="P":
record.reportTime.substr(5,2)=="06" || record.reportTime.substr(5,2) == "07" ||record.reportTime.substr(5,2)=="08"||record.reportTime.substr(5,2)=="09" record.reportTime.substr(5,2)=="06" || record.reportTime.substr(5,2) == "07" ||record.reportTime.substr(5,2)=="08"||record.reportTime.substr(5,2)=="09"
? text="F":text="无采样时间" ? text="F":text="无采样时间"
}} }}
@@ -85,7 +85,7 @@ export default {
name: "DrinkingWaterBase", name: "DrinkingWaterBase",
components: {}, components: {},
data() { data() {
return { return {
data: [], data: [],
@@ -106,12 +106,12 @@ export default {
}, },
{title:"主要污染指标",dataIndex:"",}, {title:"主要污染指标",dataIndex:"",},
], ],
// 表格列配置 // 表格列配置
// palceOptions: [], // palceOptions: [],
// areaOptions: [], // areaOptions: [],
// roadOptions: [], // roadOptions: [],
@@ -169,7 +169,7 @@ export default {
// }, // },
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.$refs.table.reload({ this.$refs.table.reload({
where: this.where, where: this.where,
}); });

View File

@@ -39,8 +39,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -57,7 +57,7 @@
:scroll="{ x: 'max-content' }" :scroll="{ x: 'max-content' }"
@done="(d) => (data = d.data)" @done="(d) => (data = d.data)"
> >
</ele-pro-table> </ele-pro-table>
</a-card> </a-card>
</div> </div>

View File

@@ -22,8 +22,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -25,8 +25,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询</a-button> <a-button type="primary" @click="reload">查询</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>

View File

@@ -74,8 +74,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询3</a-button> <a-button type="primary" @click="reload">查询3</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -139,7 +139,7 @@ export default {
// areaOptions: [], // areaOptions: [],
// roadOptions: [], // roadOptions: [],
regionLevelOptions: [], regionLevelOptions: [],
reportTimeScope: [], reportTimeScope: [],
// 表格搜索条件 // 表格搜索条件
where: { where: {

View File

@@ -69,8 +69,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询3</a-button> <a-button type="primary" @click="reload">查询3</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -88,14 +88,14 @@
@done="(d) => (data = d.data)" @done="(d) => (data = d.data)"
> >
<template #waterCode="{text,record}"> <template #waterCode="{text,record}">
<span > <span >
{{ {{
record.monitorTime==null? text="": record.monitorTime==null? text="":
record.monitorTime.substr(5,2)=="01" || record.monitorTime.substr(5,2) == "02" ||record.monitorTime.substr(5,2) == "03" ||record.monitorTime.substr(5,2)=="12" record.monitorTime.substr(5,2)=="01" || record.monitorTime.substr(5,2) == "02" ||record.monitorTime.substr(5,2) == "03" ||record.monitorTime.substr(5,2)=="12"
? text="K": ? text="K":
record.monitorTime.substr(5,2)=="04" || record.monitorTime.substr(5,2) == "05" ||record.monitorTime.substr(5,2)=="10"||record.monitorTime.substr(5,2)=="11" record.monitorTime.substr(5,2)=="04" || record.monitorTime.substr(5,2) == "05" ||record.monitorTime.substr(5,2)=="10"||record.monitorTime.substr(5,2)=="11"
? text="P": ? text="P":
record.monitorTime.substr(5,2)=="06" || record.monitorTime.substr(5,2) == "07" ||record.monitorTime.substr(5,2)=="08"||record.monitorTime.substr(5,2)=="09" record.monitorTime.substr(5,2)=="06" || record.monitorTime.substr(5,2) == "07" ||record.monitorTime.substr(5,2)=="08"||record.monitorTime.substr(5,2)=="09"
? text="F":text="无采样时间" ? text="F":text="无采样时间"
}} }}
@@ -126,7 +126,7 @@ export default {
name: "DrinkingWaterBase", name: "DrinkingWaterBase",
components: {}, components: {},
data() { data() {
return { return {
data: [], data: [],
@@ -136,20 +136,20 @@ export default {
url: pageDrinkingWaterVillageStatisticUrl, url: pageDrinkingWaterVillageStatisticUrl,
selection: [], selection: [],
columns:[ columns:[
// { // {
// title: "水期代码", // title: "水期代码",
// dataIndex: "waterPhaseCode", // dataIndex: "waterPhaseCode",
// sorter: true, // sorter: true,
// slots:{customRender:'waterCode' } // slots:{customRender:'waterCode' }
// }, // },
...tableColumns3, ...tableColumns3,
], ],
reportTimeScope: [], reportTimeScope: [],
// 表格列配置 // 表格列配置
// palceOptions: [], // palceOptions: [],
// areaOptions: [], // areaOptions: [],
// roadOptions: [], // roadOptions: [],
@@ -207,7 +207,7 @@ export default {
// }, // },
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.$refs.table.reload({ this.$refs.table.reload({
where: this.where, where: this.where,
}); });

View File

@@ -28,8 +28,8 @@
<a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }"> <a-form-item class="ele-text-right" :wrapper-col="{ span: 24 }">
<a-space> <a-space>
<a-button type="primary" @click="reload">查询3</a-button> <a-button type="primary" @click="reload">查询3</a-button>
<a-button @click="reset">重置</a-button> <a-button @click="reset" style="background: #FFA200FF; border-color: #FFA200FF;color: #FFFFFF">重置</a-button>
<a-button @click="exportFile">导出Excel</a-button> <a-button @click="exportFile" style="background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">导出Excel</a-button>
</a-space> </a-space>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -71,7 +71,7 @@ export default {
name: "DrinkingWaterBase", name: "DrinkingWaterBase",
components: {}, components: {},
data() { data() {
return { return {
data: [], data: [],
@@ -92,12 +92,12 @@ export default {
}, },
{title:"主要污染指标",dataIndex:"",}, {title:"主要污染指标",dataIndex:"",},
], ],
// 表格列配置 // 表格列配置
// palceOptions: [], // palceOptions: [],
// areaOptions: [], // areaOptions: [],
// roadOptions: [], // roadOptions: [],
@@ -155,7 +155,7 @@ export default {
// }, // },
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.$refs.table.reload({ this.$refs.table.reload({
where: this.where, where: this.where,
}); });

View File

@@ -54,7 +54,7 @@
<a-menu-item @click="download('其它内湖水质监测报告表','/template/其它内湖水质监测报告表.xls')" > 其它内湖水质监测报告表 </a-menu-item> <a-menu-item @click="download('其它内湖水质监测报告表','/template/其它内湖水质监测报告表.xls')" > 其它内湖水质监测报告表 </a-menu-item>
</a-menu> </a-menu>
</template> </template>
<a-button type="primary" style="left: 60px"> <a-button type="primary" style="left: 60px;background: #2FA524FF; border-color: #2FA524FF;color: #FFFFFF">
模板下载 模板下载
<DownOutlined /> <DownOutlined />
</a-button> </a-button>
@@ -108,7 +108,7 @@ export default {
this.reload() this.reload()
}, },
methods: { methods: {
getInnerData(){ getInnerData(){
getInnerData({page: 1, limit: 1000}).then(res=>{ getInnerData({page: 1, limit: 1000}).then(res=>{
this.waterData = res.data.data this.waterData = res.data.data
@@ -124,11 +124,11 @@ export default {
// 模板下载 // 模板下载
download (name,url){ download (name,url){
var a = document.createElement("a"); var a = document.createElement("a");
a.href = url; a.href = url;
a.download = `${name}-导入模板`; a.download = `${name}-导入模板`;
a.style.display = "none"; a.style.display = "none";
document.body.appendChild(a); document.body.appendChild(a);
a.click(); a.click();
a.remove(); a.remove();
}, },
handleMenuClick(e) { handleMenuClick(e) {
@@ -151,7 +151,7 @@ export default {
}else{ }else{
Modal.error({ title:res.data.msg || '文件导入失败', }); Modal.error({ title:res.data.msg || '文件导入失败', });
} }
hide() hide()
}).catch(err=>{ }).catch(err=>{
console.log(err) console.log(err)
@@ -170,7 +170,7 @@ export default {
if(item.billName==file.name){ if(item.billName==file.name){
isHas = true isHas = true
} }
}) })
} }
if(isHas){ if(isHas){
@@ -225,7 +225,7 @@ export default {
if(item.billName==file.name){ if(item.billName==file.name){
isHas = true isHas = true
} }
}) })
} }
if(isHas){ if(isHas){
@@ -278,7 +278,7 @@ export default {
if(item.billName==file.name){ if(item.billName==file.name){
isHas = true isHas = true
} }
}) })
} }
if(isHas){ if(isHas){

Some files were not shown because too many files have changed in this diff Show More