Load From Database 弹窗,获取stations 接口增加 sampleType 字段
This commit is contained in:
parent
6c92722749
commit
4e8da8dd72
|
@ -122,6 +122,7 @@ export default {
|
||||||
this.columns = columns
|
this.columns = columns
|
||||||
this.disableMixinCreated = true
|
this.disableMixinCreated = true
|
||||||
return {
|
return {
|
||||||
|
searchSampleType: 'All',
|
||||||
visible: false,
|
visible: false,
|
||||||
queryParam: {
|
queryParam: {
|
||||||
menuTypes: 'G,B',
|
menuTypes: 'G,B',
|
||||||
|
@ -246,6 +247,7 @@ export default {
|
||||||
|
|
||||||
const { success, result, message } = await getAction('/spectrumAnalysis/getDBSearchList', {
|
const { success, result, message } = await getAction('/spectrumAnalysis/getDBSearchList', {
|
||||||
AllUsers: this.allUsersValue,
|
AllUsers: this.allUsersValue,
|
||||||
|
sampleType: this.searchSampleType,
|
||||||
})
|
})
|
||||||
if (success) {
|
if (success) {
|
||||||
this.stationList = result.stationCode.map((item) => ({ label: item, value: item }))
|
this.stationList = result.stationCode.map((item) => ({ label: item, value: item }))
|
||||||
|
@ -334,16 +336,22 @@ export default {
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
if (event == 'B') {
|
if (event == 'B') {
|
||||||
|
this.searchSampleType = 'Beta'
|
||||||
|
this.getStationAndDetectorList()
|
||||||
this.sampleTypeOption = arr_B
|
this.sampleTypeOption = arr_B
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.queryParam.sampleType = 'B'
|
this.queryParam.sampleType = 'B'
|
||||||
})
|
})
|
||||||
} else if (event == 'G') {
|
} else if (event == 'G') {
|
||||||
|
this.searchSampleType = 'Gamma'
|
||||||
|
this.getStationAndDetectorList()
|
||||||
this.sampleTypeOption = arr_G
|
this.sampleTypeOption = arr_G
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.queryParam.sampleType = 'P'
|
this.queryParam.sampleType = 'P'
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
this.searchSampleType = 'All'
|
||||||
|
this.getStationAndDetectorList()
|
||||||
this.sampleTypeOption = arr_A
|
this.sampleTypeOption = arr_A
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.queryParam.sampleType = ''
|
this.queryParam.sampleType = ''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user