web 模块中的页面 不同模块,筛选条件不同,按模块区分

This commit is contained in:
任珮宇 2024-01-15 18:23:56 +08:00
parent eb70334a46
commit 448cc91f72
22 changed files with 426 additions and 254 deletions

View File

@ -99,7 +99,6 @@ const columns = [
import { compareDate } from '../../commom'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getAction, getFileAction } from '../../../../api/manage'
import dateFormat from '../../../../components/jeecg/JEasyCron/format-date'
import moment from 'moment'
export default {
name: 'menuTree',
@ -110,9 +109,13 @@ export default {
isImmediate: true,
columns,
queryParam: {
startTime: sessionStorage.getItem('currStartDate') || moment().subtract(6, 'days').format('YYYY-MM-DD'),
endTime: sessionStorage.getItem('currEndDate') || moment().format('YYYY-MM-DD'),
stationIds: sessionStorage.getItem('selectedSta').split(',') || [],
startTime: sessionStorage.getItem('currStartDate_sta')
? sessionStorage.getItem('currStartDate_sta')
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
endTime: sessionStorage.getItem('currEndDate_sta')
? sessionStorage.getItem('currEndDate_sta')
: moment().format('YYYY-MM-DD'),
stationIds: [],
},
url: {
list: '/webStatistics/findMetPage',
@ -185,13 +188,19 @@ export default {
getAction(this.url.findStationList, { menuName: '' }).then((res) => {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
//
let arr = sessionStorage.getItem('selectedSta_sta')
? sessionStorage.getItem('selectedSta_sta').split(',')
: []
this.queryParam.stationIds = arr.map((item) => Number(item))
this.searchQueryData()
} else {
this.stationList = []
}
})
},
handleSelectChange(val) {
console.log(val)
window.sessionStorage.setItem('selectedSta_sta', val)
let length = this.stationList.length
if (val.length === length) {
this.allChecked = true
@ -203,13 +212,21 @@ export default {
this.allChecked = val
if (val) {
this.queryParam.stationIds = this.stationList.map((item) => item.value)
window.sessionStorage.setItem('selectedSta_sta', this.queryParam.stationIds)
} else {
this.queryParam.stationIds = []
window.sessionStorage.setItem('selectedSta_sta', [])
}
},
filterOption(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
handleStartDateChange(date) {
window.sessionStorage.setItem('currStartDate_sta', date)
},
handleEndDateChange(date) {
window.sessionStorage.setItem('currEndDate_sta', date)
},
},
computed: {
formItems() {
@ -263,6 +280,9 @@ export default {
width: '200px',
},
},
on: {
change: this.handleStartDateChange,
},
style: {
width: 'auto',
},
@ -279,6 +299,9 @@ export default {
width: '200px',
},
},
on: {
change: this.handleEndDateChange,
},
style: {
width: 'auto',
},

View File

@ -1,18 +1,25 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="CALIBPHD" pageType="CALIB"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:columns="columns"
:dataType="dataType"
fileName="CALIBPHD"
pageType="CALIB"
menuType="beta"
></List>
</div>
</template>
<script>
import List from "../../../../list.vue"
import List from '../../../../list.vue'
import { getAction } from '../../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -73,26 +80,25 @@ export default {
},
stationList: [],
columns,
dataType:"C"
dataType: 'C',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
},
@ -100,5 +106,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,18 +1,25 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="DETBKPHD" pageType="ACQ"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:columns="columns"
:dataType="dataType"
fileName="DETBKPHD"
pageType="ACQ"
menuType="beta"
></List>
</div>
</template>
<script>
import List from "../../../../list.vue"
import List from '../../../../list.vue'
import { getAction } from '../../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -55,7 +62,7 @@ const columns = [
title: 'ACQUISITION STOP TIME',
align: 'left',
dataIndex: 'acquisitionStop',
}
},
]
export default {
components: {
@ -68,24 +75,24 @@ export default {
},
stationList: [],
columns,
dataType:"D"
dataType: 'D',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -94,5 +101,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,18 +1,25 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="QCPHD" pageType="ACQ"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:columns="columns"
:dataType="dataType"
fileName="QCPHD"
pageType="ACQ"
menuType="beta"
></List>
</div>
</template>
<script>
import List from "../../../../list.vue"
import List from '../../../../list.vue'
import { getAction } from '../../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -55,7 +62,7 @@ const columns = [
title: 'ACQUISITION STOP TIME',
align: 'left',
dataIndex: 'acquisitionStop',
}
},
]
export default {
components: {
@ -68,24 +75,24 @@ export default {
},
stationList: [],
columns,
dataType:"Q"
dataType: 'Q',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -94,5 +101,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,18 +1,26 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :spectralQualifie="spectralQualifie" :columns="columns" :dataType="dataType" fileName="SPHDF" pageType="COLL"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:spectralQualifie="spectralQualifie"
:columns="columns"
:dataType="dataType"
fileName="SPHDF"
pageType="COLL"
menuType="beta"
></List>
</div>
</template>
<script>
import List from "../../../../list.vue"
import List from '../../../../list.vue'
import { getAction } from '../../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -55,7 +63,7 @@ const columns = [
title: 'COLLECTION STOP TIME',
align: 'left',
dataIndex: 'collectStop',
}
},
]
export default {
components: {
@ -68,25 +76,25 @@ export default {
},
stationList: [],
columns,
dataType: "S",
spectralQualifie:"FULL"
dataType: 'S',
spectralQualifie: 'FULL',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -95,5 +103,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,18 +1,26 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :spectralQualifie="spectralQualifie" :columns="columns" :dataType="dataType" fileName="SPHDP" pageType="COLL"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:spectralQualifie="spectralQualifie"
:columns="columns"
:dataType="dataType"
fileName="SPHDP"
pageType="COLL"
menuType="beta"
></List>
</div>
</template>
<script>
import List from "../../../../list.vue"
import List from '../../../../list.vue'
import { getAction } from '../../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -55,7 +63,7 @@ const columns = [
title: 'COLLECTION STOP TIME',
align: 'left',
dataIndex: 'collectStop',
}
},
]
export default {
components: {
@ -68,25 +76,25 @@ export default {
},
stationList: [],
columns,
dataType: "S",
spectralQualifie:"PREL"
dataType: 'S',
spectralQualifie: 'PREL',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -95,5 +103,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,18 +1,25 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="CALIBPHD" pageType="CALIB"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:columns="columns"
:dataType="dataType"
fileName="CALIBPHD"
pageType="CALIB"
menuType="gamma"
></List>
</div>
</template>
<script>
import List from "../../../../list.vue"
import List from '../../../../list.vue'
import { getAction } from '../../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -73,24 +80,24 @@ export default {
},
stationList: [],
columns,
dataType:"C"
dataType: 'C',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -99,5 +106,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,18 +1,25 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="DETBKPHD" pageType="ACQ"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:columns="columns"
:dataType="dataType"
fileName="DETBKPHD"
pageType="ACQ"
menuType="gamma"
></List>
</div>
</template>
<script>
import List from "../../../../list.vue"
import List from '../../../../list.vue'
import { getAction } from '../../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -55,7 +62,7 @@ const columns = [
title: 'ACQUISITION STOP TIME',
align: 'left',
dataIndex: 'acquisitionStop',
}
},
]
export default {
components: {
@ -68,24 +75,24 @@ export default {
},
stationList: [],
columns,
dataType:"D"
dataType: 'D',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -94,5 +101,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,18 +1,25 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="QCPHD" pageType="ACQ"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:columns="columns"
:dataType="dataType"
fileName="QCPHD"
pageType="ACQ"
menuType="gamma"
></List>
</div>
</template>
<script>
import List from "../../../../list.vue"
import List from '../../../../list.vue'
import { getAction } from '../../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -55,7 +62,7 @@ const columns = [
title: 'ACQUISITION STOP TIME',
align: 'left',
dataIndex: 'acquisitionStop',
}
},
]
export default {
components: {
@ -68,24 +75,24 @@ export default {
},
stationList: [],
columns,
dataType:"Q"
dataType: 'Q',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -94,5 +101,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,18 +1,26 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :spectralQualifie="spectralQualifie" :columns="columns" :dataType="dataType" fileName="SPHDF" pageType="COLL"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:spectralQualifie="spectralQualifie"
:columns="columns"
:dataType="dataType"
fileName="SPHDF"
pageType="COLL"
menuType="gamma"
></List>
</div>
</template>
<script>
import List from "../../../../list.vue"
import List from '../../../../list.vue'
import { getAction } from '../../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -55,7 +63,7 @@ const columns = [
title: 'COLLECTION STOP TIME',
align: 'left',
dataIndex: 'collectStop',
}
},
]
export default {
components: {
@ -68,25 +76,25 @@ export default {
},
stationList: [],
columns,
dataType: "S",
spectralQualifie:"FULL"
dataType: 'S',
spectralQualifie: 'FULL',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -95,5 +103,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,18 +1,26 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :spectralQualifie="spectralQualifie" :columns="columns" :dataType="dataType" fileName="SPHDP" pageType="COLL"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:spectralQualifie="spectralQualifie"
:columns="columns"
:dataType="dataType"
fileName="SPHDP"
pageType="COLL"
menuType="gamma"
></List>
</div>
</template>
<script>
import List from "../../../../list.vue"
import List from '../../../../list.vue'
import { getAction } from '../../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -55,7 +63,7 @@ const columns = [
title: 'COLLECTION STOP TIME',
align: 'left',
dataIndex: 'collectStop',
}
},
]
export default {
components: {
@ -68,25 +76,25 @@ export default {
},
stationList: [],
columns,
dataType: "S",
spectralQualifie:"PREL"
dataType: 'S',
spectralQualifie: 'PREL',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -95,5 +103,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,6 +1,13 @@
<template>
<div style="height: 100%">
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="BLANKPHD" pageType="ACQ"></List>
<List
:stationList="stationList"
:columns="columns"
:dataType="dataType"
fileName="BLANKPHD"
pageType="ACQ"
menuType="par"
></List>
</div>
</template>
<script>

View File

@ -1,18 +1,25 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="CALIBPHD" pageType="CALIB"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:columns="columns"
:dataType="dataType"
fileName="CALIBPHD"
pageType="CALIB"
menuType="par"
></List>
</div>
</template>
<script>
import List from "../../../list.vue"
import List from '../../../list.vue'
import { getAction } from '../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -73,24 +80,24 @@ export default {
},
stationList: [],
columns,
dataType:"C"
dataType: 'C',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -99,5 +106,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,6 +1,13 @@
<template>
<div style="height: 100%">
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="DETBKPHD" pageType="ACQ"></List>
<List
:stationList="stationList"
:columns="columns"
:dataType="dataType"
fileName="DETBKPHD"
pageType="ACQ"
menuType="par"
></List>
</div>
</template>

View File

@ -1,18 +1,25 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="QCPHD" pageType="ACQ"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:columns="columns"
:dataType="dataType"
fileName="QCPHD"
pageType="ACQ"
menuType="par"
></List>
</div>
</template>
<script>
import List from "../../../list.vue"
import List from '../../../list.vue'
import { getAction } from '../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -68,24 +75,24 @@ export default {
},
stationList: [],
columns,
dataType:"Q"
dataType: 'Q',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -94,5 +101,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,18 +1,26 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :spectralQualifie="spectralQualifie" :columns="columns" :dataType="dataType" fileName="SPHDF" pageType="COLL"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:spectralQualifie="spectralQualifie"
:columns="columns"
:dataType="dataType"
fileName="SPHDF"
pageType="COLL"
menuType="par"
></List>
</div>
</template>
<script>
import List from "../../../list.vue"
import List from '../../../list.vue'
import { getAction } from '../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -68,25 +76,25 @@ export default {
},
stationList: [],
columns,
dataType: "S",
spectralQualifie:"FULL"
dataType: 'S',
spectralQualifie: 'FULL',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -95,5 +103,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -1,18 +1,26 @@
<template>
<div style="height: 100%;">
<List :stationList="stationList" :spectralQualifie="spectralQualifie" :columns="columns" :dataType="dataType" fileName="SPHDP" pageType="COLL"></List>
<div style="height: 100%">
<List
:stationList="stationList"
:spectralQualifie="spectralQualifie"
:columns="columns"
:dataType="dataType"
fileName="SPHDP"
pageType="COLL"
menuType="par"
></List>
</div>
</template>
<script>
import List from "../../../list.vue"
import List from '../../../list.vue'
import { getAction } from '../../../../../api/manage'
const columns = [
{
title: 'NO',
align: 'left',
width:80,
width: 80,
scopedSlots: {
customRender: 'index',
},
@ -55,7 +63,7 @@ const columns = [
title: 'COLLECTION STOP TIME',
align: 'left',
dataIndex: 'collectStop',
}
},
]
export default {
components: {
@ -68,25 +76,25 @@ export default {
},
stationList: [],
columns,
dataType: "S",
spectralQualifie:"PREL"
dataType: 'S',
spectralQualifie: 'PREL',
}
},
mounted() {
console.log(this.dataType);
this.findStationList();
console.log(this.dataType)
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
if (res.success) {
if (res.result.length>0) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList=[]
this.stationList = []
}
} else {
this.$message.warning("This operation fails. Contact your system administrator")
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
@ -95,5 +103,4 @@ export default {
</script>
<style lang="less" scoped>
</style>

View File

@ -79,7 +79,6 @@ const columns = [
import { compareDate } from '../../commom'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getAction, getFileAction } from '../../../../api/manage'
import dateFormat from '../../../../components/jeecg/JEasyCron/format-date'
import moment from 'moment'
export default {
name: 'menuTree',
@ -90,9 +89,13 @@ export default {
isImmediate: true,
columns,
queryParam: {
startTime: sessionStorage.getItem('currStartDate') || moment().subtract(6, 'days').format('YYYY-MM-DD'),
endTime: sessionStorage.getItem('currEndDate') || moment().format('YYYY-MM-DD'),
stationIds: sessionStorage.getItem('selectedSta').split(',') || [],
startTime: sessionStorage.getItem('currStartDate_sta')
? sessionStorage.getItem('currStartDate_sta')
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
endTime: sessionStorage.getItem('currEndDate_sta')
? sessionStorage.getItem('currEndDate_sta')
: moment().format('YYYY-MM-DD'),
stationIds: [],
},
url: {
list: '/webStatistics/findAlertSohPage',
@ -113,11 +116,6 @@ export default {
handleExcel() {
if (this.dataSource.length > 0) {
this.excelLoading = true
// this.queryParam = {
// startTime: "2023-07-17",
// endTime: "2023-07-17",
// stationIds: [1]
// }
let params = {
...this.queryParam,
}
@ -145,11 +143,6 @@ export default {
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
if (days <= 10) {
this.isImmediate = false
// this.queryParam = {
// startTime: "2023-01-01",
// endTime: "2023-07-10",
// stationIds: [209, 210]
// }
let params = {
...this.queryParam,
pageNo: 1,
@ -176,6 +169,12 @@ export default {
if (res.success) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
//
let arr = sessionStorage.getItem('selectedSta_sta')
? sessionStorage.getItem('selectedSta_sta').split(',')
: []
this.queryParam.stationIds = arr.map((item) => Number(item))
this.searchQueryData()
} else {
this.stationList = []
}
@ -185,7 +184,7 @@ export default {
})
},
handleSelectChange(val) {
console.log(val)
window.sessionStorage.setItem('selectedSta_sta', val)
let length = this.stationList.length
if (val.length === length) {
this.allChecked = true
@ -197,13 +196,21 @@ export default {
this.allChecked = val
if (val) {
this.queryParam.stationIds = this.stationList.map((item) => item.value)
window.sessionStorage.setItem('selectedSta_sta', this.queryParam.stationIds)
} else {
this.queryParam.stationIds = []
window.sessionStorage.setItem('selectedSta_sta', [])
}
},
filterOption(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
handleStartDateChange(date) {
window.sessionStorage.setItem('currStartDate_sta', date)
},
handleEndDateChange(date) {
window.sessionStorage.setItem('currEndDate_sta', date)
},
},
computed: {
formItems() {
@ -257,6 +264,9 @@ export default {
width: '200px',
},
},
on: {
change: this.handleStartDateChange,
},
style: {
width: 'auto',
},
@ -273,6 +283,9 @@ export default {
width: '200px',
},
},
on: {
change: this.handleEndDateChange,
},
style: {
width: 'auto',
},

View File

@ -91,9 +91,13 @@ export default {
isImmediate: true,
columns,
queryParam: {
startTime: sessionStorage.getItem('currStartDate') || moment().subtract(6, 'days').format('YYYY-MM-DD'),
endTime: sessionStorage.getItem('currEndDate') || moment().format('YYYY-MM-DD'),
stationIds: sessionStorage.getItem('selectedSta').split(',') || [],
startTime: sessionStorage.getItem('currStartDate_sta')
? sessionStorage.getItem('currStartDate_sta')
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
endTime: sessionStorage.getItem('currEndDate_sta')
? sessionStorage.getItem('currEndDate_sta')
: moment().format('YYYY-MM-DD'),
stationIds: [],
},
url: {
list: '/webStatistics/findSohPage',
@ -151,11 +155,6 @@ export default {
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
if (days <= 10) {
this.isImmediate = false
// this.queryParam = {
// startTime: "2023-01-01",
// endTime: "2023-07-10",
// stationIds: [209, 210]
// }
let params = {
...this.queryParam,
pageNo: 1,
@ -182,6 +181,12 @@ export default {
if (res.success) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
//
let arr = sessionStorage.getItem('selectedSta_sta')
? sessionStorage.getItem('selectedSta_sta').split(',')
: []
this.queryParam.stationIds = arr.map((item) => Number(item))
this.searchQueryData()
} else {
this.stationList = []
}
@ -191,7 +196,7 @@ export default {
})
},
handleSelectChange(val) {
console.log(val)
window.sessionStorage.setItem('selectedSta_sta', val)
let length = this.stationList.length
if (val.length === length) {
this.allChecked = true
@ -203,13 +208,21 @@ export default {
this.allChecked = val
if (val) {
this.queryParam.stationIds = this.stationList.map((item) => item.value)
window.sessionStorage.setItem('selectedSta_sta', this.queryParam.stationIds)
} else {
this.queryParam.stationIds = []
window.sessionStorage.setItem('selectedSta_sta', [])
}
},
filterOption(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
handleStartDateChange(date) {
window.sessionStorage.setItem('currStartDate_sta', date)
},
handleEndDateChange(date) {
window.sessionStorage.setItem('currEndDate_sta', date)
},
},
computed: {
formItems() {
@ -263,6 +276,9 @@ export default {
width: '200px',
},
},
on: {
change: this.handleStartDateChange,
},
style: {
width: 'auto',
},
@ -279,6 +295,9 @@ export default {
width: '200px',
},
},
on: {
change: this.handleEndDateChange,
},
style: {
width: 'auto',
},

View File

@ -100,11 +100,11 @@ export default {
isImmediate: true,
columns,
queryParam: {
startTime: sessionStorage.getItem('currStartDate')
? sessionStorage.getItem('currStartDate')
startTime: sessionStorage.getItem('currStartDate_pro')
? sessionStorage.getItem('currStartDate_pro')
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
endTime: sessionStorage.getItem('currEndDate')
? sessionStorage.getItem('currEndDate')
endTime: sessionStorage.getItem('currEndDate_pro')
? sessionStorage.getItem('currEndDate_pro')
: moment().format('YYYY-MM-DD'),
stationIds: [],
qualifie: undefined,
@ -165,11 +165,6 @@ export default {
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
if (days <= 10) {
this.isImmediate = false
// this.queryParam = {
// startTime: "2023-01-01",
// endTime: "2023-07-10",
// stationIds: [209, 210]
// }
let params = {
...this.queryParam,
pageNo: 1,
@ -197,7 +192,9 @@ export default {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
//
let arr = sessionStorage.getItem('selectedSta') ? sessionStorage.getItem('selectedSta').split(',') : []
let arr = sessionStorage.getItem('selectedSta_pro')
? sessionStorage.getItem('selectedSta_pro').split(',')
: []
this.queryParam.stationIds = arr.map((item) => Number(item))
this.queryParam.qualifie = sessionStorage.getItem('qualifie')
? sessionStorage.getItem('qualifie')
@ -212,7 +209,7 @@ export default {
})
},
handleSelectChange(val) {
console.log(val)
window.sessionStorage.setItem('selectedSta_pro', val)
let length = this.stationList.length
if (val.length === length) {
this.allChecked = true
@ -224,14 +221,22 @@ export default {
this.allChecked = val
if (val) {
this.queryParam.stationIds = this.stationList.map((item) => item.value)
window.sessionStorage.setItem('selectedSta_pro', this.queryParam.stationIds)
} else {
this.queryParam.stationIds = []
window.sessionStorage.setItem('selectedSta_pro', [])
}
},
handleQualifieChange(val) {
this.queryParam.qualifie = val
sessionStorage.setItem('qualifie', val)
},
handleStartDateChange(date) {
window.sessionStorage.setItem('currStartDate_pro', date)
},
handleEndDateChange(date) {
window.sessionStorage.setItem('currEndDate_pro', date)
},
getBeforeDate(n) {
var n = n
var d = new Date()
@ -309,6 +314,9 @@ export default {
width: '200px',
},
},
on: {
change: this.handleStartDateChange,
},
style: {
width: 'auto',
},
@ -325,6 +333,9 @@ export default {
width: '200px',
},
},
on: {
change: this.handleEndDateChange,
},
style: {
width: 'auto',
},

View File

@ -100,11 +100,11 @@ export default {
isImmediate: true,
columns,
queryParam: {
startTime: sessionStorage.getItem('currStartDate')
? sessionStorage.getItem('currStartDate')
startTime: sessionStorage.getItem('currStartDate_pro')
? sessionStorage.getItem('currStartDate_pro')
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
endTime: sessionStorage.getItem('currEndDate')
? sessionStorage.getItem('currEndDate')
endTime: sessionStorage.getItem('currEndDate_pro')
? sessionStorage.getItem('currEndDate_pro')
: moment().format('YYYY-MM-DD'),
stationIds: [],
qualifie: undefined,
@ -197,7 +197,9 @@ export default {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
//
let arr = sessionStorage.getItem('selectedSta') ? sessionStorage.getItem('selectedSta').split(',') : []
let arr = sessionStorage.getItem('selectedSta_pro')
? sessionStorage.getItem('selectedSta_pro').split(',')
: []
this.queryParam.stationIds = arr.map((item) => Number(item))
this.queryParam.qualifie = sessionStorage.getItem('qualifie')
? sessionStorage.getItem('qualifie')
@ -212,6 +214,7 @@ export default {
})
},
handleSelectChange(val) {
window.sessionStorage.setItem('selectedSta_pro', val)
let length = this.stationList.length
if (val.length === length) {
this.allChecked = true
@ -223,14 +226,22 @@ export default {
this.allChecked = val
if (val) {
this.queryParam.stationIds = this.stationList.map((item) => item.value)
window.sessionStorage.setItem('selectedSta_pro', this.queryParam.stationIds)
} else {
this.queryParam.stationIds = []
window.sessionStorage.setItem('selectedSta_pro', [])
}
},
handleQualifieChange(val) {
this.queryParam.qualifie = val
sessionStorage.setItem('qualifie', val)
},
handleStartDateChange(date) {
window.sessionStorage.setItem('currStartDate_pro', date)
},
handleEndDateChange(date) {
window.sessionStorage.setItem('currEndDate_pro', date)
},
getBeforeDate(n) {
var n = n
var d = new Date()
@ -308,6 +319,9 @@ export default {
width: '200px',
},
},
on: {
change: this.handleStartDateChange,
},
style: {
width: 'auto',
},
@ -324,6 +338,9 @@ export default {
width: '200px',
},
},
on: {
change: this.handleEndDateChange,
},
style: {
width: 'auto',
},

View File

@ -72,6 +72,10 @@ export default {
type: String,
default: '',
},
menuType: {
type: String,
default: '',
},
},
mixins: [JeecgListMixin],
components: {
@ -80,13 +84,22 @@ export default {
watch: {
stationList: {
handler(val) {
let arr = sessionStorage.getItem('selectedSta') ? sessionStorage.getItem('selectedSta').split(',') : []
let arr = sessionStorage.getItem(`selectedSta_${this.menuType}`)
? sessionStorage.getItem(`selectedSta_${this.menuType}`).split(',')
: []
this.queryParam.stationIds = arr.map((item) => Number(item))
this.loadData()
;(this.queryParam.startTime = sessionStorage.getItem(`currStartDate_${this.menuType}`)
? sessionStorage.getItem(`currStartDate_${this.menuType}`)
: moment().subtract(6, 'days').format('YYYY-MM-DD')),
(this.queryParam.endTime = sessionStorage.getItem(`currEndDate_${this.menuType}`)
? sessionStorage.getItem(`currEndDate_${this.menuType}`)
: moment().format('YYYY-MM-DD')),
this.loadData()
},
},
},
data() {
this.disableMixinCreated = true
return {
excelLoading: false,
spinning: false,
@ -94,12 +107,8 @@ export default {
isDetail: false,
queryParam: {
dataType: this.dataType,
startTime: sessionStorage.getItem('currStartDate')
? sessionStorage.getItem('currStartDate')
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
endTime: sessionStorage.getItem('currEndDate')
? sessionStorage.getItem('currEndDate')
: moment().format('YYYY-MM-DD'),
startTime: '',
endTime: '',
stationIds: [],
spectralQualifie: this.spectralQualifie,
},
@ -188,7 +197,7 @@ export default {
},
handleSelectChange(val) {
console.log(val)
window.sessionStorage.setItem('selectedSta', val)
window.sessionStorage.setItem(`selectedSta_${this.menuType}`, val)
let length = this.stationList.length
if (val.length === length) {
this.allChecked = true
@ -200,44 +209,21 @@ export default {
this.allChecked = val
if (val) {
this.queryParam.stationIds = this.stationList.map((item) => item.value)
window.sessionStorage.setItem('selectedSta', vathis.queryParam.stationIdsl)
window.sessionStorage.setItem(`selectedSta_${this.menuType}`, this.queryParam.stationIds)
} else {
this.queryParam.stationIds = []
window.sessionStorage.setItem('selectedSta', [])
window.sessionStorage.setItem(`selectedSta_${this.menuType}`, [])
}
},
filterOption(input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
handleStartDateChange(date, dateString) {
console.log(date, dateString)
window.sessionStorage.setItem('currStartDate', date)
handleStartDateChange(date) {
window.sessionStorage.setItem(`currStartDate_${this.menuType}`, date)
},
handleEndDateChange(date) {
window.sessionStorage.setItem('currEndDate', date)
window.sessionStorage.setItem(`currEndDate_${this.menuType}`, date)
},
// // n
// getBeforeDate(n) {
// var n = n
// var d = new Date()
// var year = d.getFullYear()
// var mon = d.getMonth() + 1
// var day = d.getDate()
// if (day <= n) {
// if (mon > 1) {
// mon = mon - 1
// } else {
// year = year - 1
// mon = 12
// }
// }
// d.setDate(d.getDate() - n)
// year = d.getFullYear()
// mon = d.getMonth() + 1
// day = d.getDate()
// var s = year + '-' + (mon < 10 ? '0' + mon : mon) + '-' + (day < 10 ? '0' + day : day)
// return s
// },
},
computed: {
formItems() {