Load From Database 弹窗,获取stations 接口增加 sampleType 字段

This commit is contained in:
任珮宇 2024-01-11 10:11:13 +08:00
parent 6c92722749
commit 4e8da8dd72

View File

@ -122,6 +122,7 @@ export default {
this.columns = columns
this.disableMixinCreated = true
return {
searchSampleType: 'All',
visible: false,
queryParam: {
menuTypes: 'G,B',
@ -246,6 +247,7 @@ export default {
const { success, result, message } = await getAction('/spectrumAnalysis/getDBSearchList', {
AllUsers: this.allUsersValue,
sampleType: this.searchSampleType,
})
if (success) {
this.stationList = result.stationCode.map((item) => ({ label: item, value: item }))
@ -334,16 +336,22 @@ export default {
},
]
if (event == 'B') {
this.searchSampleType = 'Beta'
this.getStationAndDetectorList()
this.sampleTypeOption = arr_B
this.$nextTick(() => {
this.queryParam.sampleType = 'B'
})
} else if (event == 'G') {
this.searchSampleType = 'Gamma'
this.getStationAndDetectorList()
this.sampleTypeOption = arr_G
this.$nextTick(() => {
this.queryParam.sampleType = 'P'
})
} else {
this.searchSampleType = 'All'
this.getStationAndDetectorList()
this.sampleTypeOption = arr_A
this.$nextTick(() => {
this.queryParam.sampleType = ''