web 模块中的页面 不同模块,筛选条件不同,按模块区分
This commit is contained in:
parent
eb70334a46
commit
448cc91f72
|
@ -99,7 +99,6 @@ const columns = [
|
||||||
import { compareDate } from '../../commom'
|
import { compareDate } from '../../commom'
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { getAction, getFileAction } from '../../../../api/manage'
|
import { getAction, getFileAction } from '../../../../api/manage'
|
||||||
import dateFormat from '../../../../components/jeecg/JEasyCron/format-date'
|
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
export default {
|
export default {
|
||||||
name: 'menuTree',
|
name: 'menuTree',
|
||||||
|
@ -110,9 +109,13 @@ export default {
|
||||||
isImmediate: true,
|
isImmediate: true,
|
||||||
columns,
|
columns,
|
||||||
queryParam: {
|
queryParam: {
|
||||||
startTime: sessionStorage.getItem('currStartDate') || moment().subtract(6, 'days').format('YYYY-MM-DD'),
|
startTime: sessionStorage.getItem('currStartDate_sta')
|
||||||
endTime: sessionStorage.getItem('currEndDate') || moment().format('YYYY-MM-DD'),
|
? sessionStorage.getItem('currStartDate_sta')
|
||||||
stationIds: sessionStorage.getItem('selectedSta').split(',') || [],
|
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
|
||||||
|
endTime: sessionStorage.getItem('currEndDate_sta')
|
||||||
|
? sessionStorage.getItem('currEndDate_sta')
|
||||||
|
: moment().format('YYYY-MM-DD'),
|
||||||
|
stationIds: [],
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
list: '/webStatistics/findMetPage',
|
list: '/webStatistics/findMetPage',
|
||||||
|
@ -185,13 +188,19 @@ export default {
|
||||||
getAction(this.url.findStationList, { menuName: '' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: '' }).then((res) => {
|
||||||
if (res.result.length > 0) {
|
if (res.result.length > 0) {
|
||||||
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
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 {
|
} else {
|
||||||
this.stationList = []
|
this.stationList = []
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSelectChange(val) {
|
handleSelectChange(val) {
|
||||||
console.log(val)
|
window.sessionStorage.setItem('selectedSta_sta', val)
|
||||||
let length = this.stationList.length
|
let length = this.stationList.length
|
||||||
if (val.length === length) {
|
if (val.length === length) {
|
||||||
this.allChecked = true
|
this.allChecked = true
|
||||||
|
@ -203,13 +212,21 @@ export default {
|
||||||
this.allChecked = val
|
this.allChecked = val
|
||||||
if (val) {
|
if (val) {
|
||||||
this.queryParam.stationIds = this.stationList.map((item) => item.value)
|
this.queryParam.stationIds = this.stationList.map((item) => item.value)
|
||||||
|
window.sessionStorage.setItem('selectedSta_sta', this.queryParam.stationIds)
|
||||||
} else {
|
} else {
|
||||||
this.queryParam.stationIds = []
|
this.queryParam.stationIds = []
|
||||||
|
window.sessionStorage.setItem('selectedSta_sta', [])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
filterOption(input, option) {
|
filterOption(input, option) {
|
||||||
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
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: {
|
computed: {
|
||||||
formItems() {
|
formItems() {
|
||||||
|
@ -263,6 +280,9 @@ export default {
|
||||||
width: '200px',
|
width: '200px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
on: {
|
||||||
|
change: this.handleStartDateChange,
|
||||||
|
},
|
||||||
style: {
|
style: {
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
},
|
},
|
||||||
|
@ -279,6 +299,9 @@ export default {
|
||||||
width: '200px',
|
width: '200px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
on: {
|
||||||
|
change: this.handleEndDateChange,
|
||||||
|
},
|
||||||
style: {
|
style: {
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,18 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<div style="height: 100%">
|
||||||
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="CALIBPHD" pageType="CALIB"></List>
|
<List
|
||||||
|
:stationList="stationList"
|
||||||
|
:columns="columns"
|
||||||
|
:dataType="dataType"
|
||||||
|
fileName="CALIBPHD"
|
||||||
|
pageType="CALIB"
|
||||||
|
menuType="beta"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../../list.vue"
|
import List from '../../../../list.vue'
|
||||||
import { getAction } from '../../../../../../api/manage'
|
import { getAction } from '../../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -73,26 +80,25 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType:"C"
|
dataType: 'C',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,18 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<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="beta"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../../list.vue"
|
import List from '../../../../list.vue'
|
||||||
import { getAction } from '../../../../../../api/manage'
|
import { getAction } from '../../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -55,7 +62,7 @@ const columns = [
|
||||||
title: 'ACQUISITION STOP TIME',
|
title: 'ACQUISITION STOP TIME',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'acquisitionStop',
|
dataIndex: 'acquisitionStop',
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -68,24 +75,24 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType:"D"
|
dataType: 'D',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,18 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<div style="height: 100%">
|
||||||
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="QCPHD" pageType="ACQ"></List>
|
<List
|
||||||
|
:stationList="stationList"
|
||||||
|
:columns="columns"
|
||||||
|
:dataType="dataType"
|
||||||
|
fileName="QCPHD"
|
||||||
|
pageType="ACQ"
|
||||||
|
menuType="beta"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../../list.vue"
|
import List from '../../../../list.vue'
|
||||||
import { getAction } from '../../../../../../api/manage'
|
import { getAction } from '../../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -55,7 +62,7 @@ const columns = [
|
||||||
title: 'ACQUISITION STOP TIME',
|
title: 'ACQUISITION STOP TIME',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'acquisitionStop',
|
dataIndex: 'acquisitionStop',
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -68,24 +75,24 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType:"Q"
|
dataType: 'Q',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,18 +1,26 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<div style="height: 100%">
|
||||||
<List :stationList="stationList" :spectralQualifie="spectralQualifie" :columns="columns" :dataType="dataType" fileName="SPHDF" pageType="COLL"></List>
|
<List
|
||||||
|
:stationList="stationList"
|
||||||
|
:spectralQualifie="spectralQualifie"
|
||||||
|
:columns="columns"
|
||||||
|
:dataType="dataType"
|
||||||
|
fileName="SPHDF"
|
||||||
|
pageType="COLL"
|
||||||
|
menuType="beta"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../../list.vue"
|
import List from '../../../../list.vue'
|
||||||
import { getAction } from '../../../../../../api/manage'
|
import { getAction } from '../../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -55,7 +63,7 @@ const columns = [
|
||||||
title: 'COLLECTION STOP TIME',
|
title: 'COLLECTION STOP TIME',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'collectStop',
|
dataIndex: 'collectStop',
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -68,25 +76,25 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType: "S",
|
dataType: 'S',
|
||||||
spectralQualifie:"FULL"
|
spectralQualifie: 'FULL',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,18 +1,26 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<div style="height: 100%">
|
||||||
<List :stationList="stationList" :spectralQualifie="spectralQualifie" :columns="columns" :dataType="dataType" fileName="SPHDP" pageType="COLL"></List>
|
<List
|
||||||
|
:stationList="stationList"
|
||||||
|
:spectralQualifie="spectralQualifie"
|
||||||
|
:columns="columns"
|
||||||
|
:dataType="dataType"
|
||||||
|
fileName="SPHDP"
|
||||||
|
pageType="COLL"
|
||||||
|
menuType="beta"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../../list.vue"
|
import List from '../../../../list.vue'
|
||||||
import { getAction } from '../../../../../../api/manage'
|
import { getAction } from '../../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -55,7 +63,7 @@ const columns = [
|
||||||
title: 'COLLECTION STOP TIME',
|
title: 'COLLECTION STOP TIME',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'collectStop',
|
dataIndex: 'collectStop',
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -68,25 +76,25 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType: "S",
|
dataType: 'S',
|
||||||
spectralQualifie:"PREL"
|
spectralQualifie: 'PREL',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Noble Gas Beta-Gamma' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,18 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<div style="height: 100%">
|
||||||
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="CALIBPHD" pageType="CALIB"></List>
|
<List
|
||||||
|
:stationList="stationList"
|
||||||
|
:columns="columns"
|
||||||
|
:dataType="dataType"
|
||||||
|
fileName="CALIBPHD"
|
||||||
|
pageType="CALIB"
|
||||||
|
menuType="gamma"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../../list.vue"
|
import List from '../../../../list.vue'
|
||||||
import { getAction } from '../../../../../../api/manage'
|
import { getAction } from '../../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -73,24 +80,24 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType:"C"
|
dataType: 'C',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,18 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<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="gamma"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../../list.vue"
|
import List from '../../../../list.vue'
|
||||||
import { getAction } from '../../../../../../api/manage'
|
import { getAction } from '../../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -55,7 +62,7 @@ const columns = [
|
||||||
title: 'ACQUISITION STOP TIME',
|
title: 'ACQUISITION STOP TIME',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'acquisitionStop',
|
dataIndex: 'acquisitionStop',
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -68,24 +75,24 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType:"D"
|
dataType: 'D',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,18 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<div style="height: 100%">
|
||||||
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="QCPHD" pageType="ACQ"></List>
|
<List
|
||||||
|
:stationList="stationList"
|
||||||
|
:columns="columns"
|
||||||
|
:dataType="dataType"
|
||||||
|
fileName="QCPHD"
|
||||||
|
pageType="ACQ"
|
||||||
|
menuType="gamma"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../../list.vue"
|
import List from '../../../../list.vue'
|
||||||
import { getAction } from '../../../../../../api/manage'
|
import { getAction } from '../../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -55,7 +62,7 @@ const columns = [
|
||||||
title: 'ACQUISITION STOP TIME',
|
title: 'ACQUISITION STOP TIME',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'acquisitionStop',
|
dataIndex: 'acquisitionStop',
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -68,24 +75,24 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType:"Q"
|
dataType: 'Q',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,18 +1,26 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<div style="height: 100%">
|
||||||
<List :stationList="stationList" :spectralQualifie="spectralQualifie" :columns="columns" :dataType="dataType" fileName="SPHDF" pageType="COLL"></List>
|
<List
|
||||||
|
:stationList="stationList"
|
||||||
|
:spectralQualifie="spectralQualifie"
|
||||||
|
:columns="columns"
|
||||||
|
:dataType="dataType"
|
||||||
|
fileName="SPHDF"
|
||||||
|
pageType="COLL"
|
||||||
|
menuType="gamma"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../../list.vue"
|
import List from '../../../../list.vue'
|
||||||
import { getAction } from '../../../../../../api/manage'
|
import { getAction } from '../../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -55,7 +63,7 @@ const columns = [
|
||||||
title: 'COLLECTION STOP TIME',
|
title: 'COLLECTION STOP TIME',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'collectStop',
|
dataIndex: 'collectStop',
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -68,25 +76,25 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType: "S",
|
dataType: 'S',
|
||||||
spectralQualifie:"FULL"
|
spectralQualifie: 'FULL',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,18 +1,26 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<div style="height: 100%">
|
||||||
<List :stationList="stationList" :spectralQualifie="spectralQualifie" :columns="columns" :dataType="dataType" fileName="SPHDP" pageType="COLL"></List>
|
<List
|
||||||
|
:stationList="stationList"
|
||||||
|
:spectralQualifie="spectralQualifie"
|
||||||
|
:columns="columns"
|
||||||
|
:dataType="dataType"
|
||||||
|
fileName="SPHDP"
|
||||||
|
pageType="COLL"
|
||||||
|
menuType="gamma"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../../list.vue"
|
import List from '../../../../list.vue'
|
||||||
import { getAction } from '../../../../../../api/manage'
|
import { getAction } from '../../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -55,7 +63,7 @@ const columns = [
|
||||||
title: 'COLLECTION STOP TIME',
|
title: 'COLLECTION STOP TIME',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'collectStop',
|
dataIndex: 'collectStop',
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -68,25 +76,25 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType: "S",
|
dataType: 'S',
|
||||||
spectralQualifie:"PREL"
|
spectralQualifie: 'PREL',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Noble Gas HPGe' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,6 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%">
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -1,18 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<div style="height: 100%">
|
||||||
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="CALIBPHD" pageType="CALIB"></List>
|
<List
|
||||||
|
:stationList="stationList"
|
||||||
|
:columns="columns"
|
||||||
|
:dataType="dataType"
|
||||||
|
fileName="CALIBPHD"
|
||||||
|
pageType="CALIB"
|
||||||
|
menuType="par"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../list.vue"
|
import List from '../../../list.vue'
|
||||||
import { getAction } from '../../../../../api/manage'
|
import { getAction } from '../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -73,24 +80,24 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType:"C"
|
dataType: 'C',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,6 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%">
|
<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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,25 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<div style="height: 100%">
|
||||||
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="QCPHD" pageType="ACQ"></List>
|
<List
|
||||||
|
:stationList="stationList"
|
||||||
|
:columns="columns"
|
||||||
|
:dataType="dataType"
|
||||||
|
fileName="QCPHD"
|
||||||
|
pageType="ACQ"
|
||||||
|
menuType="par"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../list.vue"
|
import List from '../../../list.vue'
|
||||||
import { getAction } from '../../../../../api/manage'
|
import { getAction } from '../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -68,24 +75,24 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType:"Q"
|
dataType: 'Q',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,18 +1,26 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<div style="height: 100%">
|
||||||
<List :stationList="stationList" :spectralQualifie="spectralQualifie" :columns="columns" :dataType="dataType" fileName="SPHDF" pageType="COLL"></List>
|
<List
|
||||||
|
:stationList="stationList"
|
||||||
|
:spectralQualifie="spectralQualifie"
|
||||||
|
:columns="columns"
|
||||||
|
:dataType="dataType"
|
||||||
|
fileName="SPHDF"
|
||||||
|
pageType="COLL"
|
||||||
|
menuType="par"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../list.vue"
|
import List from '../../../list.vue'
|
||||||
import { getAction } from '../../../../../api/manage'
|
import { getAction } from '../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -68,25 +76,25 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType: "S",
|
dataType: 'S',
|
||||||
spectralQualifie:"FULL"
|
spectralQualifie: 'FULL',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -1,18 +1,26 @@
|
||||||
<template>
|
<template>
|
||||||
<div style="height: 100%;">
|
<div style="height: 100%">
|
||||||
<List :stationList="stationList" :spectralQualifie="spectralQualifie" :columns="columns" :dataType="dataType" fileName="SPHDP" pageType="COLL"></List>
|
<List
|
||||||
|
:stationList="stationList"
|
||||||
|
:spectralQualifie="spectralQualifie"
|
||||||
|
:columns="columns"
|
||||||
|
:dataType="dataType"
|
||||||
|
fileName="SPHDP"
|
||||||
|
pageType="COLL"
|
||||||
|
menuType="par"
|
||||||
|
></List>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from "../../../list.vue"
|
import List from '../../../list.vue'
|
||||||
import { getAction } from '../../../../../api/manage'
|
import { getAction } from '../../../../../api/manage'
|
||||||
|
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
title: 'NO',
|
title: 'NO',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width:80,
|
width: 80,
|
||||||
scopedSlots: {
|
scopedSlots: {
|
||||||
customRender: 'index',
|
customRender: 'index',
|
||||||
},
|
},
|
||||||
|
@ -55,7 +63,7 @@ const columns = [
|
||||||
title: 'COLLECTION STOP TIME',
|
title: 'COLLECTION STOP TIME',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'collectStop',
|
dataIndex: 'collectStop',
|
||||||
}
|
},
|
||||||
]
|
]
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -68,25 +76,25 @@ export default {
|
||||||
},
|
},
|
||||||
stationList: [],
|
stationList: [],
|
||||||
columns,
|
columns,
|
||||||
dataType: "S",
|
dataType: 'S',
|
||||||
spectralQualifie:"PREL"
|
spectralQualifie: 'PREL',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
console.log(this.dataType);
|
console.log(this.dataType)
|
||||||
this.findStationList();
|
this.findStationList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findStationList() {
|
findStationList() {
|
||||||
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
|
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
|
||||||
if (res.success) {
|
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 }))
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
||||||
} else {
|
} else {
|
||||||
this.stationList=[]
|
this.stationList = []
|
||||||
}
|
}
|
||||||
} else {
|
} 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>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
|
||||||
</style>
|
</style>
|
|
@ -79,7 +79,6 @@ const columns = [
|
||||||
import { compareDate } from '../../commom'
|
import { compareDate } from '../../commom'
|
||||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||||
import { getAction, getFileAction } from '../../../../api/manage'
|
import { getAction, getFileAction } from '../../../../api/manage'
|
||||||
import dateFormat from '../../../../components/jeecg/JEasyCron/format-date'
|
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
export default {
|
export default {
|
||||||
name: 'menuTree',
|
name: 'menuTree',
|
||||||
|
@ -90,9 +89,13 @@ export default {
|
||||||
isImmediate: true,
|
isImmediate: true,
|
||||||
columns,
|
columns,
|
||||||
queryParam: {
|
queryParam: {
|
||||||
startTime: sessionStorage.getItem('currStartDate') || moment().subtract(6, 'days').format('YYYY-MM-DD'),
|
startTime: sessionStorage.getItem('currStartDate_sta')
|
||||||
endTime: sessionStorage.getItem('currEndDate') || moment().format('YYYY-MM-DD'),
|
? sessionStorage.getItem('currStartDate_sta')
|
||||||
stationIds: sessionStorage.getItem('selectedSta').split(',') || [],
|
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
|
||||||
|
endTime: sessionStorage.getItem('currEndDate_sta')
|
||||||
|
? sessionStorage.getItem('currEndDate_sta')
|
||||||
|
: moment().format('YYYY-MM-DD'),
|
||||||
|
stationIds: [],
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
list: '/webStatistics/findAlertSohPage',
|
list: '/webStatistics/findAlertSohPage',
|
||||||
|
@ -113,11 +116,6 @@ export default {
|
||||||
handleExcel() {
|
handleExcel() {
|
||||||
if (this.dataSource.length > 0) {
|
if (this.dataSource.length > 0) {
|
||||||
this.excelLoading = true
|
this.excelLoading = true
|
||||||
// this.queryParam = {
|
|
||||||
// startTime: "2023-07-17",
|
|
||||||
// endTime: "2023-07-17",
|
|
||||||
// stationIds: [1]
|
|
||||||
// }
|
|
||||||
let params = {
|
let params = {
|
||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
}
|
}
|
||||||
|
@ -145,11 +143,6 @@ export default {
|
||||||
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
|
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
|
||||||
if (days <= 10) {
|
if (days <= 10) {
|
||||||
this.isImmediate = false
|
this.isImmediate = false
|
||||||
// this.queryParam = {
|
|
||||||
// startTime: "2023-01-01",
|
|
||||||
// endTime: "2023-07-10",
|
|
||||||
// stationIds: [209, 210]
|
|
||||||
// }
|
|
||||||
let params = {
|
let params = {
|
||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
|
@ -176,6 +169,12 @@ export default {
|
||||||
if (res.success) {
|
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 }))
|
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 {
|
} else {
|
||||||
this.stationList = []
|
this.stationList = []
|
||||||
}
|
}
|
||||||
|
@ -185,7 +184,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSelectChange(val) {
|
handleSelectChange(val) {
|
||||||
console.log(val)
|
window.sessionStorage.setItem('selectedSta_sta', val)
|
||||||
let length = this.stationList.length
|
let length = this.stationList.length
|
||||||
if (val.length === length) {
|
if (val.length === length) {
|
||||||
this.allChecked = true
|
this.allChecked = true
|
||||||
|
@ -197,13 +196,21 @@ export default {
|
||||||
this.allChecked = val
|
this.allChecked = val
|
||||||
if (val) {
|
if (val) {
|
||||||
this.queryParam.stationIds = this.stationList.map((item) => item.value)
|
this.queryParam.stationIds = this.stationList.map((item) => item.value)
|
||||||
|
window.sessionStorage.setItem('selectedSta_sta', this.queryParam.stationIds)
|
||||||
} else {
|
} else {
|
||||||
this.queryParam.stationIds = []
|
this.queryParam.stationIds = []
|
||||||
|
window.sessionStorage.setItem('selectedSta_sta', [])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
filterOption(input, option) {
|
filterOption(input, option) {
|
||||||
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
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: {
|
computed: {
|
||||||
formItems() {
|
formItems() {
|
||||||
|
@ -257,6 +264,9 @@ export default {
|
||||||
width: '200px',
|
width: '200px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
on: {
|
||||||
|
change: this.handleStartDateChange,
|
||||||
|
},
|
||||||
style: {
|
style: {
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
},
|
},
|
||||||
|
@ -273,6 +283,9 @@ export default {
|
||||||
width: '200px',
|
width: '200px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
on: {
|
||||||
|
change: this.handleEndDateChange,
|
||||||
|
},
|
||||||
style: {
|
style: {
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
},
|
},
|
||||||
|
|
|
@ -91,9 +91,13 @@ export default {
|
||||||
isImmediate: true,
|
isImmediate: true,
|
||||||
columns,
|
columns,
|
||||||
queryParam: {
|
queryParam: {
|
||||||
startTime: sessionStorage.getItem('currStartDate') || moment().subtract(6, 'days').format('YYYY-MM-DD'),
|
startTime: sessionStorage.getItem('currStartDate_sta')
|
||||||
endTime: sessionStorage.getItem('currEndDate') || moment().format('YYYY-MM-DD'),
|
? sessionStorage.getItem('currStartDate_sta')
|
||||||
stationIds: sessionStorage.getItem('selectedSta').split(',') || [],
|
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
|
||||||
|
endTime: sessionStorage.getItem('currEndDate_sta')
|
||||||
|
? sessionStorage.getItem('currEndDate_sta')
|
||||||
|
: moment().format('YYYY-MM-DD'),
|
||||||
|
stationIds: [],
|
||||||
},
|
},
|
||||||
url: {
|
url: {
|
||||||
list: '/webStatistics/findSohPage',
|
list: '/webStatistics/findSohPage',
|
||||||
|
@ -151,11 +155,6 @@ export default {
|
||||||
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
|
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
|
||||||
if (days <= 10) {
|
if (days <= 10) {
|
||||||
this.isImmediate = false
|
this.isImmediate = false
|
||||||
// this.queryParam = {
|
|
||||||
// startTime: "2023-01-01",
|
|
||||||
// endTime: "2023-07-10",
|
|
||||||
// stationIds: [209, 210]
|
|
||||||
// }
|
|
||||||
let params = {
|
let params = {
|
||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
|
@ -182,6 +181,12 @@ export default {
|
||||||
if (res.success) {
|
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 }))
|
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 {
|
} else {
|
||||||
this.stationList = []
|
this.stationList = []
|
||||||
}
|
}
|
||||||
|
@ -191,7 +196,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSelectChange(val) {
|
handleSelectChange(val) {
|
||||||
console.log(val)
|
window.sessionStorage.setItem('selectedSta_sta', val)
|
||||||
let length = this.stationList.length
|
let length = this.stationList.length
|
||||||
if (val.length === length) {
|
if (val.length === length) {
|
||||||
this.allChecked = true
|
this.allChecked = true
|
||||||
|
@ -203,13 +208,21 @@ export default {
|
||||||
this.allChecked = val
|
this.allChecked = val
|
||||||
if (val) {
|
if (val) {
|
||||||
this.queryParam.stationIds = this.stationList.map((item) => item.value)
|
this.queryParam.stationIds = this.stationList.map((item) => item.value)
|
||||||
|
window.sessionStorage.setItem('selectedSta_sta', this.queryParam.stationIds)
|
||||||
} else {
|
} else {
|
||||||
this.queryParam.stationIds = []
|
this.queryParam.stationIds = []
|
||||||
|
window.sessionStorage.setItem('selectedSta_sta', [])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
filterOption(input, option) {
|
filterOption(input, option) {
|
||||||
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
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: {
|
computed: {
|
||||||
formItems() {
|
formItems() {
|
||||||
|
@ -263,6 +276,9 @@ export default {
|
||||||
width: '200px',
|
width: '200px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
on: {
|
||||||
|
change: this.handleStartDateChange,
|
||||||
|
},
|
||||||
style: {
|
style: {
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
},
|
},
|
||||||
|
@ -279,6 +295,9 @@ export default {
|
||||||
width: '200px',
|
width: '200px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
on: {
|
||||||
|
change: this.handleEndDateChange,
|
||||||
|
},
|
||||||
style: {
|
style: {
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
},
|
},
|
||||||
|
|
|
@ -100,11 +100,11 @@ export default {
|
||||||
isImmediate: true,
|
isImmediate: true,
|
||||||
columns,
|
columns,
|
||||||
queryParam: {
|
queryParam: {
|
||||||
startTime: sessionStorage.getItem('currStartDate')
|
startTime: sessionStorage.getItem('currStartDate_pro')
|
||||||
? sessionStorage.getItem('currStartDate')
|
? sessionStorage.getItem('currStartDate_pro')
|
||||||
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
|
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
|
||||||
endTime: sessionStorage.getItem('currEndDate')
|
endTime: sessionStorage.getItem('currEndDate_pro')
|
||||||
? sessionStorage.getItem('currEndDate')
|
? sessionStorage.getItem('currEndDate_pro')
|
||||||
: moment().format('YYYY-MM-DD'),
|
: moment().format('YYYY-MM-DD'),
|
||||||
stationIds: [],
|
stationIds: [],
|
||||||
qualifie: undefined,
|
qualifie: undefined,
|
||||||
|
@ -165,11 +165,6 @@ export default {
|
||||||
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
|
let days = compareDate(this.queryParam.startTime, this.queryParam.endTime)
|
||||||
if (days <= 10) {
|
if (days <= 10) {
|
||||||
this.isImmediate = false
|
this.isImmediate = false
|
||||||
// this.queryParam = {
|
|
||||||
// startTime: "2023-01-01",
|
|
||||||
// endTime: "2023-07-10",
|
|
||||||
// stationIds: [209, 210]
|
|
||||||
// }
|
|
||||||
let params = {
|
let params = {
|
||||||
...this.queryParam,
|
...this.queryParam,
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
|
@ -197,7 +192,9 @@ export default {
|
||||||
if (res.result.length > 0) {
|
if (res.result.length > 0) {
|
||||||
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
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.stationIds = arr.map((item) => Number(item))
|
||||||
this.queryParam.qualifie = sessionStorage.getItem('qualifie')
|
this.queryParam.qualifie = sessionStorage.getItem('qualifie')
|
||||||
? sessionStorage.getItem('qualifie')
|
? sessionStorage.getItem('qualifie')
|
||||||
|
@ -212,7 +209,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSelectChange(val) {
|
handleSelectChange(val) {
|
||||||
console.log(val)
|
window.sessionStorage.setItem('selectedSta_pro', val)
|
||||||
let length = this.stationList.length
|
let length = this.stationList.length
|
||||||
if (val.length === length) {
|
if (val.length === length) {
|
||||||
this.allChecked = true
|
this.allChecked = true
|
||||||
|
@ -224,14 +221,22 @@ export default {
|
||||||
this.allChecked = val
|
this.allChecked = val
|
||||||
if (val) {
|
if (val) {
|
||||||
this.queryParam.stationIds = this.stationList.map((item) => item.value)
|
this.queryParam.stationIds = this.stationList.map((item) => item.value)
|
||||||
|
window.sessionStorage.setItem('selectedSta_pro', this.queryParam.stationIds)
|
||||||
} else {
|
} else {
|
||||||
this.queryParam.stationIds = []
|
this.queryParam.stationIds = []
|
||||||
|
window.sessionStorage.setItem('selectedSta_pro', [])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleQualifieChange(val) {
|
handleQualifieChange(val) {
|
||||||
this.queryParam.qualifie = val
|
this.queryParam.qualifie = val
|
||||||
sessionStorage.setItem('qualifie', val)
|
sessionStorage.setItem('qualifie', val)
|
||||||
},
|
},
|
||||||
|
handleStartDateChange(date) {
|
||||||
|
window.sessionStorage.setItem('currStartDate_pro', date)
|
||||||
|
},
|
||||||
|
handleEndDateChange(date) {
|
||||||
|
window.sessionStorage.setItem('currEndDate_pro', date)
|
||||||
|
},
|
||||||
getBeforeDate(n) {
|
getBeforeDate(n) {
|
||||||
var n = n
|
var n = n
|
||||||
var d = new Date()
|
var d = new Date()
|
||||||
|
@ -309,6 +314,9 @@ export default {
|
||||||
width: '200px',
|
width: '200px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
on: {
|
||||||
|
change: this.handleStartDateChange,
|
||||||
|
},
|
||||||
style: {
|
style: {
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
},
|
},
|
||||||
|
@ -325,6 +333,9 @@ export default {
|
||||||
width: '200px',
|
width: '200px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
on: {
|
||||||
|
change: this.handleEndDateChange,
|
||||||
|
},
|
||||||
style: {
|
style: {
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
},
|
},
|
||||||
|
|
|
@ -100,11 +100,11 @@ export default {
|
||||||
isImmediate: true,
|
isImmediate: true,
|
||||||
columns,
|
columns,
|
||||||
queryParam: {
|
queryParam: {
|
||||||
startTime: sessionStorage.getItem('currStartDate')
|
startTime: sessionStorage.getItem('currStartDate_pro')
|
||||||
? sessionStorage.getItem('currStartDate')
|
? sessionStorage.getItem('currStartDate_pro')
|
||||||
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
|
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
|
||||||
endTime: sessionStorage.getItem('currEndDate')
|
endTime: sessionStorage.getItem('currEndDate_pro')
|
||||||
? sessionStorage.getItem('currEndDate')
|
? sessionStorage.getItem('currEndDate_pro')
|
||||||
: moment().format('YYYY-MM-DD'),
|
: moment().format('YYYY-MM-DD'),
|
||||||
stationIds: [],
|
stationIds: [],
|
||||||
qualifie: undefined,
|
qualifie: undefined,
|
||||||
|
@ -197,7 +197,9 @@ export default {
|
||||||
if (res.result.length > 0) {
|
if (res.result.length > 0) {
|
||||||
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
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.stationIds = arr.map((item) => Number(item))
|
||||||
this.queryParam.qualifie = sessionStorage.getItem('qualifie')
|
this.queryParam.qualifie = sessionStorage.getItem('qualifie')
|
||||||
? sessionStorage.getItem('qualifie')
|
? sessionStorage.getItem('qualifie')
|
||||||
|
@ -212,6 +214,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSelectChange(val) {
|
handleSelectChange(val) {
|
||||||
|
window.sessionStorage.setItem('selectedSta_pro', val)
|
||||||
let length = this.stationList.length
|
let length = this.stationList.length
|
||||||
if (val.length === length) {
|
if (val.length === length) {
|
||||||
this.allChecked = true
|
this.allChecked = true
|
||||||
|
@ -223,14 +226,22 @@ export default {
|
||||||
this.allChecked = val
|
this.allChecked = val
|
||||||
if (val) {
|
if (val) {
|
||||||
this.queryParam.stationIds = this.stationList.map((item) => item.value)
|
this.queryParam.stationIds = this.stationList.map((item) => item.value)
|
||||||
|
window.sessionStorage.setItem('selectedSta_pro', this.queryParam.stationIds)
|
||||||
} else {
|
} else {
|
||||||
this.queryParam.stationIds = []
|
this.queryParam.stationIds = []
|
||||||
|
window.sessionStorage.setItem('selectedSta_pro', [])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleQualifieChange(val) {
|
handleQualifieChange(val) {
|
||||||
this.queryParam.qualifie = val
|
this.queryParam.qualifie = val
|
||||||
sessionStorage.setItem('qualifie', val)
|
sessionStorage.setItem('qualifie', val)
|
||||||
},
|
},
|
||||||
|
handleStartDateChange(date) {
|
||||||
|
window.sessionStorage.setItem('currStartDate_pro', date)
|
||||||
|
},
|
||||||
|
handleEndDateChange(date) {
|
||||||
|
window.sessionStorage.setItem('currEndDate_pro', date)
|
||||||
|
},
|
||||||
getBeforeDate(n) {
|
getBeforeDate(n) {
|
||||||
var n = n
|
var n = n
|
||||||
var d = new Date()
|
var d = new Date()
|
||||||
|
@ -308,6 +319,9 @@ export default {
|
||||||
width: '200px',
|
width: '200px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
on: {
|
||||||
|
change: this.handleStartDateChange,
|
||||||
|
},
|
||||||
style: {
|
style: {
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
},
|
},
|
||||||
|
@ -324,6 +338,9 @@ export default {
|
||||||
width: '200px',
|
width: '200px',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
on: {
|
||||||
|
change: this.handleEndDateChange,
|
||||||
|
},
|
||||||
style: {
|
style: {
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
},
|
},
|
||||||
|
|
|
@ -72,6 +72,10 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
menuType: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mixins: [JeecgListMixin],
|
mixins: [JeecgListMixin],
|
||||||
components: {
|
components: {
|
||||||
|
@ -80,13 +84,22 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
stationList: {
|
stationList: {
|
||||||
handler(val) {
|
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.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() {
|
data() {
|
||||||
|
this.disableMixinCreated = true
|
||||||
return {
|
return {
|
||||||
excelLoading: false,
|
excelLoading: false,
|
||||||
spinning: false,
|
spinning: false,
|
||||||
|
@ -94,12 +107,8 @@ export default {
|
||||||
isDetail: false,
|
isDetail: false,
|
||||||
queryParam: {
|
queryParam: {
|
||||||
dataType: this.dataType,
|
dataType: this.dataType,
|
||||||
startTime: sessionStorage.getItem('currStartDate')
|
startTime: '',
|
||||||
? sessionStorage.getItem('currStartDate')
|
endTime: '',
|
||||||
: moment().subtract(6, 'days').format('YYYY-MM-DD'),
|
|
||||||
endTime: sessionStorage.getItem('currEndDate')
|
|
||||||
? sessionStorage.getItem('currEndDate')
|
|
||||||
: moment().format('YYYY-MM-DD'),
|
|
||||||
stationIds: [],
|
stationIds: [],
|
||||||
spectralQualifie: this.spectralQualifie,
|
spectralQualifie: this.spectralQualifie,
|
||||||
},
|
},
|
||||||
|
@ -188,7 +197,7 @@ export default {
|
||||||
},
|
},
|
||||||
handleSelectChange(val) {
|
handleSelectChange(val) {
|
||||||
console.log(val)
|
console.log(val)
|
||||||
window.sessionStorage.setItem('selectedSta', val)
|
window.sessionStorage.setItem(`selectedSta_${this.menuType}`, val)
|
||||||
let length = this.stationList.length
|
let length = this.stationList.length
|
||||||
if (val.length === length) {
|
if (val.length === length) {
|
||||||
this.allChecked = true
|
this.allChecked = true
|
||||||
|
@ -200,44 +209,21 @@ export default {
|
||||||
this.allChecked = val
|
this.allChecked = val
|
||||||
if (val) {
|
if (val) {
|
||||||
this.queryParam.stationIds = this.stationList.map((item) => item.value)
|
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 {
|
} else {
|
||||||
this.queryParam.stationIds = []
|
this.queryParam.stationIds = []
|
||||||
window.sessionStorage.setItem('selectedSta', [])
|
window.sessionStorage.setItem(`selectedSta_${this.menuType}`, [])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
filterOption(input, option) {
|
filterOption(input, option) {
|
||||||
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||||
},
|
},
|
||||||
handleStartDateChange(date, dateString) {
|
handleStartDateChange(date) {
|
||||||
console.log(date, dateString)
|
window.sessionStorage.setItem(`currStartDate_${this.menuType}`, date)
|
||||||
window.sessionStorage.setItem('currStartDate', date)
|
|
||||||
},
|
},
|
||||||
handleEndDateChange(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: {
|
computed: {
|
||||||
formItems() {
|
formItems() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user