beta 查看RRR的接口参数调整
beta、gamma 查看RRR 逻辑调整,增加权限,(分析后才可以查看)
This commit is contained in:
parent
c493d0abdc
commit
0efe3364d5
|
@ -335,6 +335,7 @@ export default {
|
||||||
} = this.sampleDetail[this.spectraType]
|
} = this.sampleDetail[this.spectraType]
|
||||||
const {
|
const {
|
||||||
XeData, // 右下角Result Display
|
XeData, // 右下角Result Display
|
||||||
|
savedAnalysisResult,
|
||||||
} = this.sampleDetail
|
} = this.sampleDetail
|
||||||
|
|
||||||
this.spectrumData = spectrumData
|
this.spectrumData = spectrumData
|
||||||
|
@ -353,7 +354,7 @@ export default {
|
||||||
|
|
||||||
this.resultDisplay = XeData
|
this.resultDisplay = XeData
|
||||||
|
|
||||||
this.$emit('sendInfo', this.resultDisplay, this.spectrumData.stationCode)
|
this.$emit('sendInfo', this.resultDisplay, this.spectrumData.stationCode, savedAnalysisResult)
|
||||||
|
|
||||||
this.qcFlags = {
|
this.qcFlags = {
|
||||||
AcqTimeBtn,
|
AcqTimeBtn,
|
||||||
|
|
|
@ -52,16 +52,43 @@ export default {
|
||||||
url = '/spectrumAnalysis/viewRRR'
|
url = '/spectrumAnalysis/viewRRR'
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
console.log(this.extraData)
|
||||||
try {
|
try {
|
||||||
this.content = ''
|
this.content = ''
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
const { sampleId, inputFileName: fileName } = this.sampleData
|
console.log(this.sampleData)
|
||||||
const method = this.type == 4? postAction : getAction
|
const {
|
||||||
const res = await method(url, {
|
sampleId,
|
||||||
|
inputFileName: fileName,
|
||||||
|
dbName,
|
||||||
|
detFileName,
|
||||||
|
gasFileName,
|
||||||
|
qcFileName,
|
||||||
|
sampleFileName,
|
||||||
|
} = this.sampleData
|
||||||
|
// const method = this.type == 4 ? postAction : getAction
|
||||||
|
let res = null
|
||||||
|
if (this.type == 4) {
|
||||||
|
let params = {
|
||||||
|
dbName,
|
||||||
|
sampleId,
|
||||||
|
sampleData: this.extraData.sampleData,
|
||||||
|
gasBgData: this.extraData.GasBgData,
|
||||||
|
detBgData: this.extraData.DetBgData,
|
||||||
|
qcData: this.extraData.QCData,
|
||||||
|
sampleFileName,
|
||||||
|
gasFileName,
|
||||||
|
detFileName,
|
||||||
|
qcFileName,
|
||||||
|
}
|
||||||
|
res = await postAction(url, params)
|
||||||
|
} else {
|
||||||
|
res = await getAction(url, {
|
||||||
sampleId,
|
sampleId,
|
||||||
fileName,
|
fileName,
|
||||||
...this.extraData,
|
...this.extraData,
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof res == 'string') {
|
if (typeof res == 'string') {
|
||||||
this.content = res
|
this.content = res
|
||||||
|
|
|
@ -222,6 +222,7 @@ export default {
|
||||||
checkBox_updateCal: false, //update复选框状态
|
checkBox_updateCal: false, //update复选框状态
|
||||||
newCheckBox_updateCal: false, //update复选框状态
|
newCheckBox_updateCal: false, //update复选框状态
|
||||||
currStep: '',
|
currStep: '',
|
||||||
|
isReAnalyed: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -388,6 +389,7 @@ export default {
|
||||||
} = result
|
} = result
|
||||||
if (flag && (flag == 'dab' || flag == 'file')) {
|
if (flag && (flag == 'dab' || flag == 'file')) {
|
||||||
this.bAnalyed = result.bAnalyed
|
this.bAnalyed = result.bAnalyed
|
||||||
|
this.$emit('reAnalyed', this.bAnalyed)
|
||||||
this.checkBox_updateCal = result.checkBox_updateCal
|
this.checkBox_updateCal = result.checkBox_updateCal
|
||||||
this.newCheckBox_updateCal = '2'
|
this.newCheckBox_updateCal = '2'
|
||||||
console.log(this.checkBox_updateCal)
|
console.log(this.checkBox_updateCal)
|
||||||
|
@ -1291,6 +1293,8 @@ export default {
|
||||||
const { inputFileName: fileName } = this.sample
|
const { inputFileName: fileName } = this.sample
|
||||||
const { success, result, message } = await postAction(`/gamma/Reprocessing?fileName=${fileName}`)
|
const { success, result, message } = await postAction(`/gamma/Reprocessing?fileName=${fileName}`)
|
||||||
if (success) {
|
if (success) {
|
||||||
|
this.isReAnalyed = true
|
||||||
|
this.$emit('reAnalyed', this.isReAnalyed)
|
||||||
this.handleResetState()
|
this.handleResetState()
|
||||||
result.DetailedInformation = this.detailedInfomation
|
result.DetailedInformation = this.detailedInfomation
|
||||||
this.dataProsess(result)
|
this.dataProsess(result)
|
||||||
|
|
|
@ -30,7 +30,13 @@
|
||||||
<!-- 频谱分析部分 -->
|
<!-- 频谱分析部分 -->
|
||||||
<div class="spectrum-analysis-main">
|
<div class="spectrum-analysis-main">
|
||||||
<!-- Gamma 分析 -->
|
<!-- Gamma 分析 -->
|
||||||
<gamma-analysis v-if="isGamma" ref="gammaAnalysisRef" :sample="sampleData" :updateFlag="updateFlag" />
|
<gamma-analysis
|
||||||
|
v-if="isGamma"
|
||||||
|
ref="gammaAnalysisRef"
|
||||||
|
:sample="sampleData"
|
||||||
|
:updateFlag="updateFlag"
|
||||||
|
@reAnalyed="handleReAnalyed"
|
||||||
|
/>
|
||||||
<!-- Gamma 分析 -->
|
<!-- Gamma 分析 -->
|
||||||
|
|
||||||
<!-- Beta-Gamma 分析 -->
|
<!-- Beta-Gamma 分析 -->
|
||||||
|
@ -376,6 +382,8 @@ export default {
|
||||||
xe135Flag: null,
|
xe135Flag: null,
|
||||||
},
|
},
|
||||||
updateFlag: '2',
|
updateFlag: '2',
|
||||||
|
isReAnalyed_gamma: false,
|
||||||
|
isReAnalyed_beta: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -393,6 +401,9 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
handleReAnalyed(val) {
|
||||||
|
this.isReAnalyed_gamma = val
|
||||||
|
},
|
||||||
getUpdateFlag(val) {
|
getUpdateFlag(val) {
|
||||||
console.log('qerq', val)
|
console.log('qerq', val)
|
||||||
this.updateFlag = val
|
this.updateFlag = val
|
||||||
|
@ -400,7 +411,7 @@ export default {
|
||||||
getcommentsInfo(val) {
|
getcommentsInfo(val) {
|
||||||
this.params_toDB.comment = val.spectrumAnalysisCommentInfo
|
this.params_toDB.comment = val.spectrumAnalysisCommentInfo
|
||||||
},
|
},
|
||||||
getStationName(arg, val) {
|
getStationName(arg, val, flag) {
|
||||||
arg.forEach((item) => {
|
arg.forEach((item) => {
|
||||||
item.conc = item.conc.toFixed(6)
|
item.conc = item.conc.toFixed(6)
|
||||||
item.concErr = item.concErr.toFixed(6)
|
item.concErr = item.concErr.toFixed(6)
|
||||||
|
@ -409,6 +420,7 @@ export default {
|
||||||
})
|
})
|
||||||
this.resultDisplayFlag = arg
|
this.resultDisplayFlag = arg
|
||||||
this.params_toDB.stationName = val
|
this.params_toDB.stationName = val
|
||||||
|
this.isReAnalyed_beta = flag
|
||||||
},
|
},
|
||||||
getCheckFlag(val) {
|
getCheckFlag(val) {
|
||||||
this.params_toDB.checkSample = val.checkSample
|
this.params_toDB.checkSample = val.checkSample
|
||||||
|
@ -641,6 +653,7 @@ export default {
|
||||||
}
|
}
|
||||||
postAction('/spectrumAnalysis/analyseCurrentSpectrum', params).then((res) => {
|
postAction('/spectrumAnalysis/analyseCurrentSpectrum', params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
this.isReAnalyed_beta = true
|
||||||
this.analyseCurrentSpectrumData = res.result
|
this.analyseCurrentSpectrumData = res.result
|
||||||
this.resultDisplayFlag = res.result.XeData
|
this.resultDisplayFlag = res.result.XeData
|
||||||
this.resultDisplayFlag.forEach((item) => {
|
this.resultDisplayFlag.forEach((item) => {
|
||||||
|
@ -1026,9 +1039,13 @@ export default {
|
||||||
type: 'a-menu-item',
|
type: 'a-menu-item',
|
||||||
title: 'RRR',
|
title: 'RRR',
|
||||||
handler: () => {
|
handler: () => {
|
||||||
|
if (this.isReAnalyed_gamma) {
|
||||||
this.arrOrRRRModalVisible = true
|
this.arrOrRRRModalVisible = true
|
||||||
this.arrOrRRRModalExtraData = {}
|
this.arrOrRRRModalExtraData = {}
|
||||||
this.arrOrRRRModalType = 2
|
this.arrOrRRRModalType = 2
|
||||||
|
} else {
|
||||||
|
this.$message.warning('Please analyze the spectrum first!')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
show: this.isGamma,
|
show: this.isGamma,
|
||||||
},
|
},
|
||||||
|
@ -1084,6 +1101,7 @@ export default {
|
||||||
type: 'a-menu-item',
|
type: 'a-menu-item',
|
||||||
title: 'View RRR',
|
title: 'View RRR',
|
||||||
handler: () => {
|
handler: () => {
|
||||||
|
if (this.isReAnalyed_beta) {
|
||||||
this.arrOrRRRModalVisible = true
|
this.arrOrRRRModalVisible = true
|
||||||
this.arrOrRRRModalExtraData = {
|
this.arrOrRRRModalExtraData = {
|
||||||
dbName: this.sampleData.dbName,
|
dbName: this.sampleData.dbName,
|
||||||
|
@ -1095,6 +1113,9 @@ export default {
|
||||||
bBetaEnergyValid: false,
|
bBetaEnergyValid: false,
|
||||||
}
|
}
|
||||||
this.arrOrRRRModalType = 4
|
this.arrOrRRRModalType = 4
|
||||||
|
} else {
|
||||||
|
this.$message.warning('Please analyze the spectrum first!')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
show: this.isBetaGamma,
|
show: this.isBetaGamma,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user