Merge branch 'feature-analysis-RLR-renpy' of http://git.hivekion.com:3000/xiaoguangbin/AnalysisSystemForRadionuclide_vue into master-dev

This commit is contained in:
xiaoguangbin 2023-11-02 10:43:41 +08:00
commit b1dc1e6e64
4 changed files with 9 additions and 16 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<custom-modal v-model="visible" title="BetaGamma Analyser Log" :width="800"> <custom-modal v-model="visible" title="BetaGamma Analyser Log" :width="800">
<a-spin :spinning="isLoading"> <a-spin :spinning="isLoading">
<a-textarea class="bg-log-viewer" v-model="content"></a-textarea> <a-textarea :rows="20" v-model="content"></a-textarea>
</a-spin> </a-spin>
<div slot="custom-footer"> <div slot="custom-footer">
<a-button type="primary" @click="handleClick">Save As</a-button> <a-button type="primary" @click="handleClick">Save As</a-button>
@ -26,7 +26,7 @@ export default {
try { try {
this.isLoading = true this.isLoading = true
const { dbName, sampleId, sampleFileName, gasFileName, detFileName, qcFileName } = this.newSampleData const { dbName, sampleId, sampleFileName, gasFileName, detFileName, qcFileName } = this.newSampleData
const { success, result, message } = await getAction('/spectrumAnalysis/viewBGLogViewer', { const result = await getAction('/spectrumAnalysis/viewBGLogViewer', {
dbName, dbName,
sampleId, sampleId,
sampleFileName, sampleFileName,
@ -34,12 +34,7 @@ export default {
detFileName, detFileName,
qcFileName, qcFileName,
}) })
if (success) { this.content = result
console.log('%c [ ]-21', 'font-size:13px; background:pink; color:#bf2c9f;', result)
this.content = 'test'
} else {
this.$message.error(message)
}
} catch (error) { } catch (error) {
console.error(error) console.error(error)
} finally { } finally {
@ -60,8 +55,4 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.bg-log-viewer {
height: 400px;
overflow: auto;
}
</style> </style>

View File

@ -110,15 +110,15 @@ export default {
this.list.push({ this.list.push({
qcFlags: 'Gas Bg', qcFlags: 'Gas Bg',
evaluationMetrics: result.gasBgValueAndStatus, evaluationMetrics: result.gasBgEvaluationMetrics,
value: result.gasBgValueAndStatus ? 'Match' : 'UnMatch', value: result.gasBgValue,
status: result.gasBgValueAndStatus ? 'Pass' : 'Failed', status: result.gasBgValueAndStatus ? 'Pass' : 'Failed',
}) })
this.list.push({ this.list.push({
qcFlags: 'Det Bg', qcFlags: 'Det Bg',
evaluationMetrics: result.detBgValueAndStatus, evaluationMetrics: result.detBgEvaluationMetrics,
value: result.detBgValueAndStatus ? 'Match' : 'UnMatch', value: result.detBgValue,
status: result.detBgValueAndStatus ? 'Pass' : 'Failed', status: result.detBgValueAndStatus ? 'Pass' : 'Failed',
}) })

View File

@ -421,6 +421,7 @@ export default {
m_vCurReso: this.list.map((item) => item.fwhm), m_vCurReso: this.list.map((item) => item.fwhm),
m_vCurUncert: this.uncert, m_vCurUncert: this.uncert,
m_curParam: this.param, m_curParam: this.param,
width: 922,
}) })
if (success) { if (success) {
this.handleResult(result) this.handleResult(result)

View File

@ -86,6 +86,7 @@ const columns = [
{ {
title: 'Indentify', title: 'Indentify',
dataIndex: 'indentify', dataIndex: 'indentify',
ellipsis: true,
}, },
] ]
export default { export default {