Merge branch 'feature-analysis-RLR-renpy' of http://git.hivekion.com:3000/xiaoguangbin/AnalysisSystemForRadionuclide_vue into master-dev
This commit is contained in:
commit
a6cb982a0f
|
@ -180,6 +180,9 @@ export default {
|
||||||
sample: {
|
sample: {
|
||||||
type: Object,
|
type: Object,
|
||||||
},
|
},
|
||||||
|
sampleInfo: {
|
||||||
|
type: Object,
|
||||||
|
},
|
||||||
// analyseCurrentSpectrum: {
|
// analyseCurrentSpectrum: {
|
||||||
// type: Object,
|
// type: Object,
|
||||||
// },
|
// },
|
||||||
|
@ -542,6 +545,14 @@ export default {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
deep: true,
|
deep: true,
|
||||||
},
|
},
|
||||||
|
sampleInfo: {
|
||||||
|
handler(newVal, oldVal) {
|
||||||
|
this.spectrumData.sampleId = newVal.sampleId
|
||||||
|
this.spectrumData.status = newVal.status
|
||||||
|
},
|
||||||
|
immediate: true,
|
||||||
|
deep: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -66,6 +66,7 @@
|
||||||
:scroll="{ y: 180 }"
|
:scroll="{ y: 180 }"
|
||||||
:customRow="customRow"
|
:customRow="customRow"
|
||||||
:pagination="false"
|
:pagination="false"
|
||||||
|
size="small"
|
||||||
>
|
>
|
||||||
<template slot="keyLine" slot-scope="text">
|
<template slot="keyLine" slot-scope="text">
|
||||||
<span v-if="text == 1" class="green-check-mark"> </span>
|
<span v-if="text == 1" class="green-check-mark"> </span>
|
||||||
|
|
|
@ -106,14 +106,14 @@ const columns = [
|
||||||
title: 'Conc (uBq/m3)',
|
title: 'Conc (uBq/m3)',
|
||||||
dataIndex: 'conc',
|
dataIndex: 'conc',
|
||||||
customRender: (text) => {
|
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)',
|
title: 'MDC (uBq/m3)',
|
||||||
dataIndex: 'mdc',
|
dataIndex: 'mdc',
|
||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return text && text !== 'null' ? parseFloat(Number(text).toPrecision(6)) : text
|
return text && text !== 'null' ? Number(text).toPrecision(6) : text
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
@ -1382,7 +1382,7 @@ export default {
|
||||||
|
|
||||||
// 分析工具Accept时刷新部分数据
|
// 分析工具Accept时刷新部分数据
|
||||||
handleAccept(data) {
|
handleAccept(data) {
|
||||||
const { allData, peakSet, shadowChannelChart, shadowEnergyChart, shapeChannelData, shapeEnergyData, barChart } = data
|
const { allData, peak, shadowChannelChart, shadowEnergyChart, shapeChannelData, shapeEnergyData, barChart } = data
|
||||||
|
|
||||||
const result = {
|
const result = {
|
||||||
DetailedInformation: this.detailedInfomation,
|
DetailedInformation: this.detailedInfomation,
|
||||||
|
@ -1392,7 +1392,7 @@ export default {
|
||||||
shadowEnergyChart,
|
shadowEnergyChart,
|
||||||
shapeChannelData,
|
shapeChannelData,
|
||||||
shapeEnergyData,
|
shapeEnergyData,
|
||||||
peak: peakSet,
|
peak,
|
||||||
BaseCtrls: this.baseCtrls,
|
BaseCtrls: this.baseCtrls,
|
||||||
bAnalyed: this.bAnalyed,
|
bAnalyed: this.bAnalyed,
|
||||||
barChart
|
barChart
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
@sendInfo="getStationName"
|
@sendInfo="getStationName"
|
||||||
@reAnalyCurr="getReAnalyCurr"
|
@reAnalyCurr="getReAnalyCurr"
|
||||||
@reAnalyAll="getReAnalyAll"
|
@reAnalyAll="getReAnalyAll"
|
||||||
|
:sampleInfo="sampleInfo"
|
||||||
:sample="sampleData"
|
:sample="sampleData"
|
||||||
:analyseCurrentSpectrum="analyseCurrentSpectrumData"
|
:analyseCurrentSpectrum="analyseCurrentSpectrumData"
|
||||||
/>
|
/>
|
||||||
|
@ -406,6 +407,7 @@ export default {
|
||||||
isSaving: false,
|
isSaving: false,
|
||||||
|
|
||||||
colorConfig: {}, // 颜色配置
|
colorConfig: {}, // 颜色配置
|
||||||
|
sampleInfo:{}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
@ -644,6 +646,7 @@ export default {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success('Save Successfully!')
|
this.$message.success('Save Successfully!')
|
||||||
this.isSaving = false
|
this.isSaving = false
|
||||||
|
this.sampleInfo = res.result.sample
|
||||||
} else {
|
} else {
|
||||||
this.isSaving = false
|
this.isSaving = false
|
||||||
this.$message.warning(`${res.message}`)
|
this.$message.warning(`${res.message}`)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user