fix: 修改statistics paramer history 弹窗中的部分参数
This commit is contained in:
parent
0f0b3eac14
commit
5cc9a647a8
src/views/spectrumAnalysis
beta-gamma-analysis.vue
components/Modals/BetaGammaModals
|
@ -299,7 +299,7 @@ export default {
|
||||||
this.changeChartByType('sample')
|
this.changeChartByType('sample')
|
||||||
|
|
||||||
this.$store.commit('ADD_SAMPLE_DATA', {
|
this.$store.commit('ADD_SAMPLE_DATA', {
|
||||||
inputFileName,
|
inputFileName: this.sample.sampleFileName,
|
||||||
data: result,
|
data: result,
|
||||||
from: 'file'
|
from: 'file'
|
||||||
})
|
})
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</a-space>
|
</a-space>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
<a-form-model-item label="Detector">
|
<a-form-model-item label="Detector">
|
||||||
<custom-select :options="detectorList" v-model="queryParams.detectorName" size="small"></custom-select>
|
<custom-select :options="detectorList" v-model="queryParams.detectorId" size="small"></custom-select>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</title-over-border>
|
</title-over-border>
|
||||||
|
@ -301,20 +301,21 @@ export default {
|
||||||
// 设置左上角台站和探测器列表
|
// 设置左上角台站和探测器列表
|
||||||
setStationAndDetector({ detectorList, stationName, stationId }) {
|
setStationAndDetector({ detectorList, stationName, stationId }) {
|
||||||
this.queryParams.stationName = stationName
|
this.queryParams.stationName = stationName
|
||||||
this.detectorList = detectorList.map(({ detectorCode }) => ({
|
this.detectorList = detectorList.map(({ detectorCode, detectorId }) => ({
|
||||||
label: detectorCode,
|
label: detectorCode,
|
||||||
value: detectorCode
|
value: detectorId || ''
|
||||||
}))
|
}))
|
||||||
this.queryParams.detectorName = detectorList[0].detectorCode
|
this.queryParams.detectorName = detectorList[0].detectorCode
|
||||||
|
this.queryParams.detectorId = detectorList[0].detectorId || ''
|
||||||
this.queryParams.stationId = stationId
|
this.queryParams.stationId = stationId
|
||||||
},
|
},
|
||||||
|
|
||||||
// 重置左上角查询信息
|
// 重置左上角查询信息
|
||||||
handleReset() {
|
handleReset() {
|
||||||
this.queryParams.stationName = this.initialMDC.stationName
|
this.queryParams.stationName = this.initialMDC.stationName
|
||||||
this.detectorList = this.initialMDC.detectorList.map(({ detectorCode }) => ({
|
this.detectorList = this.initialMDC.detectorList.map(({ detectorCode, detectorId }) => ({
|
||||||
label: detectorCode,
|
label: detectorCode,
|
||||||
value: detectorCode
|
value: detectorId || ''
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -326,7 +327,11 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const { success, message, result } = await postAction('/spectrumAnalysis/statisticsQuery', this.queryParams)
|
const find = this.detectorList.find(item => item.value == this.queryParams.detectorId)
|
||||||
|
const { success, message, result } = await postAction('/spectrumAnalysis/statisticsQuery', {
|
||||||
|
detectorCode: find.label,
|
||||||
|
...this.queryParams
|
||||||
|
})
|
||||||
if (success) {
|
if (success) {
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<a-form-model-item label="Detector">
|
<a-form-model-item label="Detector">
|
||||||
<custom-select
|
<custom-select
|
||||||
:options="detectorList"
|
:options="detectorList"
|
||||||
v-model="queryParams.detectorName"
|
v-model="queryParams.detectorId"
|
||||||
size="small"
|
size="small"
|
||||||
dropdownClassName="statistics-paramer-history-select"
|
dropdownClassName="statistics-paramer-history-select"
|
||||||
></custom-select>
|
></custom-select>
|
||||||
|
@ -204,27 +204,32 @@ export default {
|
||||||
// 设置左上角台站和探测器列表
|
// 设置左上角台站和探测器列表
|
||||||
setStationAndDetector({ detectorList, stationName, stationId }) {
|
setStationAndDetector({ detectorList, stationName, stationId }) {
|
||||||
this.queryParams.stationName = stationName
|
this.queryParams.stationName = stationName
|
||||||
this.detectorList = detectorList.map(({ detectorCode }) => ({
|
this.detectorList = detectorList.map(({ detectorCode, detectorId }) => ({
|
||||||
label: detectorCode,
|
label: detectorCode,
|
||||||
value: detectorCode,
|
value: detectorId || '',
|
||||||
}))
|
}))
|
||||||
this.queryParams.detectorName = detectorList[0].detectorCode
|
this.queryParams.detectorName = detectorList[0].detectorCode
|
||||||
this.queryParams.stationId = stationId
|
this.queryParams.detectorId = detectorList[0].detectorId || ''
|
||||||
|
this.queryParams.stationId = stationId || ''
|
||||||
},
|
},
|
||||||
|
|
||||||
// 重置左上角查询信息
|
// 重置左上角查询信息
|
||||||
handleReset() {
|
handleReset() {
|
||||||
this.queryParams.stationName = this.initialMDC.stationName
|
this.queryParams.stationName = this.initialMDC.stationName
|
||||||
this.detectorList = this.initialMDC.detectorList.map(({ detectorCode }) => ({
|
this.detectorList = this.initialMDC.detectorList.map(({ detectorCode, detectorId }) => ({
|
||||||
label: detectorCode,
|
label: detectorCode,
|
||||||
value: detectorCode,
|
value: detectorId || '',
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
|
|
||||||
// 查询右侧图表信息
|
// 查询右侧图表信息
|
||||||
async handleStatisticsQuery() {
|
async handleStatisticsQuery() {
|
||||||
try {
|
try {
|
||||||
const { success, message, result } = await getAction('/spectrumAnalysis/statisticsQueryBtn', this.queryParams)
|
const find = this.detectorList.find(item => item.value == this.queryParams.detectorId)
|
||||||
|
const { success, message, result } = await getAction('/spectrumAnalysis/statisticsQueryBtn', {
|
||||||
|
detectorCode: find.label,
|
||||||
|
...this.queryParams
|
||||||
|
})
|
||||||
if (success) {
|
if (success) {
|
||||||
if (result) {
|
if (result) {
|
||||||
const data = result.m_Values
|
const data = result.m_Values
|
||||||
|
|
Loading…
Reference in New Issue
Block a user