spectrumAnalysis/getDBSearchList 接口增加参数

This commit is contained in:
任珮宇 2024-01-11 14:01:15 +08:00
parent 0fd0634c70
commit 3add369ae1

View File

@ -108,6 +108,7 @@ export default {
this.columns = cloneDeep(columns)
this.disableMixinCreated = true
return {
searchSampleType: 'All',
visible: false,
loadType: 'compare',
queryParam: {
@ -252,6 +253,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 }))
@ -342,16 +344,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 = ''