2023-06-08 19:44:39 +08:00
|
|
|
<template>
|
2023-10-09 13:55:03 +08:00
|
|
|
<div style="height: 100%">
|
2023-10-09 15:30:32 +08:00
|
|
|
<List :stationList="stationList" :columns="columns" :dataType="dataType" fileName="BLANKPHD" pageType="ACQ"></List>
|
2023-06-29 17:58:11 +08:00
|
|
|
</div>
|
2023-06-08 19:44:39 +08:00
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
const columns = [
|
|
|
|
|
{
|
|
|
|
|
title: 'NO',
|
|
|
|
|
align: 'left',
|
2023-10-09 13:55:03 +08:00
|
|
|
width: 80,
|
2023-06-08 19:44:39 +08:00
|
|
|
scopedSlots: {
|
|
|
|
|
customRender: 'index',
|
|
|
|
|
},
|
|
|
|
|
customHeaderCell: () => {
|
|
|
|
|
return {
|
|
|
|
|
style: {
|
|
|
|
|
'padding-left': '26px !important',
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
customCell: () => {
|
|
|
|
|
return {
|
|
|
|
|
style: {
|
|
|
|
|
'padding-left': '26px !important',
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'STATION',
|
|
|
|
|
align: 'left',
|
2023-06-12 14:29:57 +08:00
|
|
|
dataIndex: 'stationName',
|
2023-06-08 19:44:39 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'DETECTOR CODE',
|
|
|
|
|
align: 'left',
|
2023-06-12 14:29:57 +08:00
|
|
|
dataIndex: 'siteDetCode',
|
2023-06-08 19:44:39 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'SPECTRAL QUALIFIER',
|
|
|
|
|
align: 'left',
|
2023-06-12 14:29:57 +08:00
|
|
|
dataIndex: 'spectralQualifie',
|
2023-06-08 19:44:39 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'ACQUISITION START TIME',
|
|
|
|
|
align: 'left',
|
2023-06-12 14:29:57 +08:00
|
|
|
dataIndex: 'acquisitionStart',
|
2023-06-08 19:44:39 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'ACQUISITION STOP TIME',
|
|
|
|
|
align: 'left',
|
2023-06-12 14:29:57 +08:00
|
|
|
dataIndex: 'acquisitionStop',
|
2023-06-08 19:44:39 +08:00
|
|
|
},
|
|
|
|
|
]
|
2023-07-18 13:53:52 +08:00
|
|
|
import { getAction, getFileAction } from '../../../../../api/manage'
|
2023-10-09 13:55:03 +08:00
|
|
|
import List from '../../../list.vue'
|
2023-06-08 19:44:39 +08:00
|
|
|
export default {
|
2023-06-29 17:58:11 +08:00
|
|
|
components: {
|
2023-10-09 13:55:03 +08:00
|
|
|
List,
|
2023-06-29 17:58:11 +08:00
|
|
|
},
|
2023-06-08 19:44:39 +08:00
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
columns,
|
2023-10-09 13:55:03 +08:00
|
|
|
dataType: 'B',
|
2023-06-08 19:44:39 +08:00
|
|
|
url: {
|
2023-06-12 14:29:57 +08:00
|
|
|
findStationList: '/webStatistics/findStationList',
|
2023-06-08 19:44:39 +08:00
|
|
|
},
|
2023-06-12 14:29:57 +08:00
|
|
|
stationList: [],
|
2023-06-08 19:44:39 +08:00
|
|
|
}
|
|
|
|
|
},
|
2023-06-12 14:29:57 +08:00
|
|
|
created() {
|
|
|
|
|
this.findStationList()
|
|
|
|
|
},
|
2023-06-08 19:44:39 +08:00
|
|
|
methods: {
|
2023-06-12 14:29:57 +08:00
|
|
|
findStationList() {
|
|
|
|
|
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
|
2023-07-14 15:18:08 +08:00
|
|
|
if (res.success) {
|
2023-10-09 13:55:03 +08:00
|
|
|
if (res.result.length > 0) {
|
2023-07-14 15:18:08 +08:00
|
|
|
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
|
|
|
|
|
} else {
|
2023-10-09 13:55:03 +08:00
|
|
|
this.stationList = []
|
2023-07-14 15:18:08 +08:00
|
|
|
}
|
2023-06-29 17:58:11 +08:00
|
|
|
} else {
|
2023-10-09 13:55:03 +08:00
|
|
|
this.$message.warning('This operation fails. Contact your system administrator')
|
2023-06-29 17:58:11 +08:00
|
|
|
}
|
2023-06-12 14:29:57 +08:00
|
|
|
})
|
|
|
|
|
},
|
2023-06-08 19:44:39 +08:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less" scoped>
|
2023-10-09 13:55:03 +08:00
|
|
|
.icon-edit {
|
2023-07-05 11:51:13 +08:00
|
|
|
margin-right: 10px;
|
|
|
|
|
}
|
2023-06-08 19:44:39 +08:00
|
|
|
</style>
|
|
|
|
|
|