AnalysisSystemForRadionucli.../src/views/statistics/imsData/radionuclide/particulate/blankphd.vue

104 lines
2.0 KiB
Vue

<template>
<div style="height: 100%">
<List
:stationList="stationList"
:columns="columns"
:dataType="dataType"
fileName="BLANKPHD"
pageType="ACQ"
menuType="par"
></List>
</div>
</template>
<script>
const columns = [
{
title: 'NO',
align: 'left',
width: 80,
scopedSlots: {
customRender: 'index',
},
customHeaderCell: () => {
return {
style: {
'padding-left': '26px !important',
},
}
},
customCell: () => {
return {
style: {
'padding-left': '26px !important',
},
}
},
},
{
title: 'STATION',
align: 'left',
dataIndex: 'stationName',
},
{
title: 'DETECTOR CODE',
align: 'left',
dataIndex: 'siteDetCode',
},
{
title: 'SPECTRAL QUALIFIER',
align: 'left',
dataIndex: 'spectralQualifie',
},
{
title: 'ACQUISITION START TIME',
align: 'left',
dataIndex: 'acquisitionStart',
},
{
title: 'ACQUISITION STOP TIME',
align: 'left',
dataIndex: 'acquisitionStop',
},
]
import { getAction, getFileAction } from '../../../../../api/manage'
import List from '../../../list.vue'
export default {
components: {
List,
},
data() {
return {
columns,
dataType: 'B',
url: {
findStationList: '/webStatistics/findStationList',
},
stationList: [],
}
},
created() {
this.findStationList()
},
methods: {
findStationList() {
getAction(this.url.findStationList, { menuName: 'Particulate' }).then((res) => {
if (res.success) {
if (res.result.length > 0) {
this.stationList = res.result.map((res) => ({ label: res.stationCode, value: res.stationId }))
} else {
this.stationList = []
}
} else {
this.$message.warning('This operation fails. Contact your system administrator')
}
})
},
},
}
</script>
<style lang="less" scoped>
.icon-edit {
margin-right: 10px;
}
</style>