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-03 18:14:08 +08:00
commit a6cb982a0f
5 changed files with 19 additions and 4 deletions

View File

@ -180,6 +180,9 @@ export default {
sample: {
type: Object,
},
sampleInfo: {
type: Object,
},
// analyseCurrentSpectrum: {
// type: Object,
// },
@ -542,6 +545,14 @@ export default {
immediate: true,
deep: true,
},
sampleInfo: {
handler(newVal, oldVal) {
this.spectrumData.sampleId = newVal.sampleId
this.spectrumData.status = newVal.status
},
immediate: true,
deep: true,
},
},
}
</script>

View File

@ -66,6 +66,7 @@
:scroll="{ y: 180 }"
:customRow="customRow"
:pagination="false"
size="small"
>
<template slot="keyLine" slot-scope="text">
<span v-if="text == 1" class="green-check-mark"> </span>

View File

@ -106,14 +106,14 @@ const columns = [
title: 'Conc (uBq/m3)',
dataIndex: 'conc',
customRender: (text) => {
return text && text !== 'null' ? parseFloat(Number(text).toPrecision(6)) : text
return text && text !== 'null' ? Number(text).toPrecision(6) : text
},
},
{
title: 'MDC (uBq/m3)',
dataIndex: 'mdc',
customRender: (text) => {
return text && text !== 'null' ? parseFloat(Number(text).toPrecision(6)) : text
return text && text !== 'null' ? Number(text).toPrecision(6) : text
},
},
]

View File

@ -1382,7 +1382,7 @@ export default {
// Accept
handleAccept(data) {
const { allData, peakSet, shadowChannelChart, shadowEnergyChart, shapeChannelData, shapeEnergyData, barChart } = data
const { allData, peak, shadowChannelChart, shadowEnergyChart, shapeChannelData, shapeEnergyData, barChart } = data
const result = {
DetailedInformation: this.detailedInfomation,
@ -1392,7 +1392,7 @@ export default {
shadowEnergyChart,
shapeChannelData,
shapeEnergyData,
peak: peakSet,
peak,
BaseCtrls: this.baseCtrls,
bAnalyed: this.bAnalyed,
barChart

View File

@ -51,6 +51,7 @@
@sendInfo="getStationName"
@reAnalyCurr="getReAnalyCurr"
@reAnalyAll="getReAnalyAll"
:sampleInfo="sampleInfo"
:sample="sampleData"
:analyseCurrentSpectrum="analyseCurrentSpectrumData"
/>
@ -406,6 +407,7 @@ export default {
isSaving: false,
colorConfig: {}, //
sampleInfo:{}
}
},
created() {
@ -644,6 +646,7 @@ export default {
if (res.success) {
this.$message.success('Save Successfully!')
this.isSaving = false
this.sampleInfo = res.result.sample
} else {
this.isSaving = false
this.$message.warning(`${res.message}`)