SampleType切换的时候应该修改sample下拉框对对应的内容,默认选择第一个
This commit is contained in:
parent
ffb78dc975
commit
2196ded56c
|
@ -114,6 +114,7 @@ export default {
|
|||
return {
|
||||
queryParam: {
|
||||
menuTypes: 'G,B',
|
||||
sampleType: 'P',
|
||||
startDate: moment().add(-7, 'd').format('YYYY-MM-DD'),
|
||||
endDate: moment().format('YYYY-MM-DD'),
|
||||
dbName: 'auto',
|
||||
|
@ -323,7 +324,16 @@ export default {
|
|||
value: 'G',
|
||||
},
|
||||
]
|
||||
this.sampleTypeOption = event == 'B' ? arr_B : event == 'G' ? arr_G : arr_A
|
||||
if (event == 'B') {
|
||||
this.sampleTypeOption = arr_B
|
||||
this.queryParam.sampleType = 'B'
|
||||
} else if (event == 'G') {
|
||||
this.sampleTypeOption = arr_G
|
||||
this.queryParam.sampleType = 'P'
|
||||
} else {
|
||||
this.sampleTypeOption = arr_A
|
||||
this.queryParam.sampleType = 'P'
|
||||
}
|
||||
this.getStationAndDetectorList(event)
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user