下载文件的名称按照analysis模块的格式命名
This commit is contained in:
parent
bfceec07c3
commit
2b8d41a5ce
|
@ -1,34 +1,22 @@
|
||||||
<template>
|
<template>
|
||||||
<a-card :bordered="false" style="margin-left: 20px;height: 100%;">
|
<a-card :bordered="false" style="margin-left: 20px; height: 100%">
|
||||||
<div class="detail-top">
|
<div class="detail-top">
|
||||||
<div class="top-back" @click="handleback">
|
<div class="top-back" @click="handleback">
|
||||||
<img class="icon-back" src="../../assets/images/web-statistics/return.png" alt="">
|
<img class="icon-back" src="../../assets/images/web-statistics/return.png" alt="" />
|
||||||
<span style="margin-left: 10px;">return</span>
|
<span style="margin-left: 10px">return</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="top-actions">
|
<div class="top-actions">
|
||||||
<div class="right-btn" @click="downloadZip">
|
<div class="right-btn" @click="downloadZip">
|
||||||
<!-- <a :href="zipSrc" :download="type" target="_blank" rel="noopener noreferrer"> -->
|
<img class="icon-download" src="../../assets/images/web-statistics/download.png" alt="" />
|
||||||
<img class="icon-download" src="../../assets/images/web-statistics/download.png" alt="">
|
<span style="margin-left: 10px"> ZIP </span>
|
||||||
<span style="margin-left: 10px;">
|
|
||||||
ZIP
|
|
||||||
</span>
|
|
||||||
<!-- </a> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="right-btn" @click="downloadFile">
|
<div class="right-btn" @click="downloadFile">
|
||||||
<!-- <a :href="fileSrc" :download="type"> -->
|
<img class="icon-download" src="../../assets/images/web-statistics/download.png" alt="" />
|
||||||
<img class="icon-download" src="../../assets/images/web-statistics/download.png" alt="">
|
<span style="margin-left: 10px"> TXT </span>
|
||||||
<span style="margin-left: 10px;">
|
|
||||||
TXT
|
|
||||||
</span>
|
|
||||||
<!-- </a> -->
|
|
||||||
</div>
|
</div>
|
||||||
<div class="right-btn" @click="viewFile">
|
<div class="right-btn" @click="viewFile">
|
||||||
<!-- <a :href="fileSrc" target="_blank"> -->
|
<img class="icon-view" src="../../assets/images/web-statistics/view.png" alt="" />
|
||||||
<img class="icon-view" src="../../assets/images/web-statistics/view.png" alt="">
|
<span style="margin-left: 10px"> View Report </span>
|
||||||
<span style="margin-left: 10px;">
|
|
||||||
View Report
|
|
||||||
</span>
|
|
||||||
<!-- </a> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -79,7 +67,7 @@
|
||||||
</template>
|
</template>
|
||||||
<template v-if="allData.commentBlock && allData.commentBlock.text">
|
<template v-if="allData.commentBlock && allData.commentBlock.text">
|
||||||
<div class="pane-title">COMMENT</div>
|
<div class="pane-title">COMMENT</div>
|
||||||
<a-row style="height: auto;">
|
<a-row style="height: auto">
|
||||||
<a-col class="comment-block" :span="24" v-html="commentText"></a-col>
|
<a-col class="comment-block" :span="24" v-html="commentText"></a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
|
@ -107,7 +95,7 @@
|
||||||
</template>
|
</template>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane key="energy" tab="ENERGY" v-if="allData.genergyBlock === null ? false : true" forceRender>
|
<a-tab-pane key="energy" tab="ENERGY" v-if="allData.genergyBlock === null ? false : true" forceRender>
|
||||||
<div class="pane-title" style="margin-bottom: 15px;">G ENERGY</div>
|
<div class="pane-title" style="margin-bottom: 15px">G ENERGY</div>
|
||||||
<custom-table
|
<custom-table
|
||||||
size="middle"
|
size="middle"
|
||||||
:rowKey="getUid()"
|
:rowKey="getUid()"
|
||||||
|
@ -118,7 +106,7 @@
|
||||||
>
|
>
|
||||||
</custom-table>
|
</custom-table>
|
||||||
<template v-if="allData.benergyBlock === null ? false : true">
|
<template v-if="allData.benergyBlock === null ? false : true">
|
||||||
<div class="pane-title" style="margin: 15px 0;">B ENERGY</div>
|
<div class="pane-title" style="margin: 15px 0">B ENERGY</div>
|
||||||
<custom-table
|
<custom-table
|
||||||
size="middle"
|
size="middle"
|
||||||
:rowKey="getUid()"
|
:rowKey="getUid()"
|
||||||
|
@ -131,7 +119,7 @@
|
||||||
</template>
|
</template>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane key="resulution" tab="RESOLUTION" v-if="allData.gresolutionBlock === null ? false : true" forceRender>
|
<a-tab-pane key="resulution" tab="RESOLUTION" v-if="allData.gresolutionBlock === null ? false : true" forceRender>
|
||||||
<div class="pane-title" style="margin-bottom: 15px;">G RESOLUTION</div>
|
<div class="pane-title" style="margin-bottom: 15px">G RESOLUTION</div>
|
||||||
<custom-table
|
<custom-table
|
||||||
size="middle"
|
size="middle"
|
||||||
:rowKey="getUid()"
|
:rowKey="getUid()"
|
||||||
|
@ -142,7 +130,7 @@
|
||||||
>
|
>
|
||||||
</custom-table>
|
</custom-table>
|
||||||
<template v-if="allData.bresolutionBlock === null ? false : true">
|
<template v-if="allData.bresolutionBlock === null ? false : true">
|
||||||
<div class="pane-title" style="margin: 15px 0;">B RESOLUTION</div>
|
<div class="pane-title" style="margin: 15px 0">B RESOLUTION</div>
|
||||||
<custom-table
|
<custom-table
|
||||||
size="middle"
|
size="middle"
|
||||||
:rowKey="getUid()"
|
:rowKey="getUid()"
|
||||||
|
@ -155,7 +143,7 @@
|
||||||
</template>
|
</template>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane key="efficiency" tab="EFFICIENCY" v-if="allData.gefficiencyBlock === null ? false : true" forceRender>
|
<a-tab-pane key="efficiency" tab="EFFICIENCY" v-if="allData.gefficiencyBlock === null ? false : true" forceRender>
|
||||||
<div class="pane-title" style="margin-bottom: 15px;">GAMMA EFFICIENCY</div>
|
<div class="pane-title" style="margin-bottom: 15px">GAMMA EFFICIENCY</div>
|
||||||
<custom-table
|
<custom-table
|
||||||
size="middle"
|
size="middle"
|
||||||
:rowKey="getUid()"
|
:rowKey="getUid()"
|
||||||
|
@ -166,7 +154,7 @@
|
||||||
>
|
>
|
||||||
</custom-table>
|
</custom-table>
|
||||||
<template v-if="allData.bgEfficiencyBlock === null ? false : true">
|
<template v-if="allData.bgEfficiencyBlock === null ? false : true">
|
||||||
<div class="pane-title" style="margin: 15px 0;">BETA-GAMMA EFFICIENCY</div>
|
<div class="pane-title" style="margin: 15px 0">BETA-GAMMA EFFICIENCY</div>
|
||||||
<custom-table
|
<custom-table
|
||||||
size="middle"
|
size="middle"
|
||||||
:rowKey="getUid()"
|
:rowKey="getUid()"
|
||||||
|
@ -179,7 +167,7 @@
|
||||||
</template>
|
</template>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane key="roi" tab="ROI" v-if="allData.roiLimitsBlock === null ? false : true" forceRender>
|
<a-tab-pane key="roi" tab="ROI" v-if="allData.roiLimitsBlock === null ? false : true" forceRender>
|
||||||
<div class="pane-title" style="margin-bottom: 15px;">ROI LIMITS</div>
|
<div class="pane-title" style="margin-bottom: 15px">ROI LIMITS</div>
|
||||||
<custom-table
|
<custom-table
|
||||||
size="middle"
|
size="middle"
|
||||||
:rowKey="getUid()"
|
:rowKey="getUid()"
|
||||||
|
@ -191,7 +179,7 @@
|
||||||
</custom-table>
|
</custom-table>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane key="ratios" tab="RATIOS" v-if="allData.ratiosBlock === null ? false : true" forceRender>
|
<a-tab-pane key="ratios" tab="RATIOS" v-if="allData.ratiosBlock === null ? false : true" forceRender>
|
||||||
<div class="pane-title" style="margin-bottom: 15px;">RATIOS</div>
|
<div class="pane-title" style="margin-bottom: 15px">RATIOS</div>
|
||||||
<custom-table
|
<custom-table
|
||||||
size="middle"
|
size="middle"
|
||||||
:rowKey="getUid()"
|
:rowKey="getUid()"
|
||||||
|
@ -203,51 +191,67 @@
|
||||||
</custom-table>
|
</custom-table>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane key="gamma-spectrum" tab="GAMMA SPECTRUM" v-if="allData.gspectrumBlock === null ? false : true">
|
<a-tab-pane key="gamma-spectrum" tab="GAMMA SPECTRUM" v-if="allData.gspectrumBlock === null ? false : true">
|
||||||
<div class="pane-title" style="margin-bottom: 15px;">GAMMA SPECTRUM</div>
|
<div class="pane-title" style="margin-bottom: 15px">GAMMA SPECTRUM</div>
|
||||||
<div class="gamma-spectrum-row">
|
<div class="gamma-spectrum-row">
|
||||||
<div>
|
<div>
|
||||||
<span class="span-key">Number of Channels:</span><span class="row-val">{{ allData.gspectrumBlock.numberGChannels }}</span>
|
<span class="span-key">Number of Channels:</span
|
||||||
<span class="span-key" style="margin-left: 35px;">Energy Span:</span><span class="row-val">{{ allData.gspectrumBlock.energySpan }}</span>
|
><span class="row-val">{{ allData.gspectrumBlock.numberGChannels }}</span>
|
||||||
|
<span class="span-key" style="margin-left: 35px">Energy Span:</span
|
||||||
|
><span class="row-val">{{ allData.gspectrumBlock.energySpan }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a-checkbox style="margin-right: 15px;" @change="e=>yLogChange(e,'G')">Y log scale</a-checkbox>
|
<a-checkbox style="margin-right: 15px" @change="(e) => yLogChange(e, 'G')">Y log scale</a-checkbox>
|
||||||
<a-button class="row-btn" @click="resetZoom('G')">Reset Zoom</a-button>
|
<a-button class="row-btn" @click="resetZoom('G')">Reset Zoom</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="gamma-spectrum-chart" id="spectrumChartRef_G"></div>
|
<div class="gamma-spectrum-chart" id="spectrumChartRef_G"></div>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane key="beta-spectrum" tab="BETA SPECTRUM" v-if="allData.bspectrumBlock === null ? false : true">
|
<a-tab-pane key="beta-spectrum" tab="BETA SPECTRUM" v-if="allData.bspectrumBlock === null ? false : true">
|
||||||
<div class="pane-title" style="margin-bottom: 15px;">BETA SPECTRUM</div>
|
<div class="pane-title" style="margin-bottom: 15px">BETA SPECTRUM</div>
|
||||||
<div class="gamma-spectrum-row">
|
<div class="gamma-spectrum-row">
|
||||||
<div>
|
<div>
|
||||||
<span class="span-key">Number of Channels:</span><span class="row-val">{{ allData.bspectrumBlock.numberBChannels }}</span>
|
<span class="span-key">Number of Channels:</span
|
||||||
<span class="span-key" style="margin-left: 35px;">Energy Span:</span><span class="row-val">{{ allData.bspectrumBlock.energySpan }}</span>
|
><span class="row-val">{{ allData.bspectrumBlock.numberBChannels }}</span>
|
||||||
|
<span class="span-key" style="margin-left: 35px">Energy Span:</span
|
||||||
|
><span class="row-val">{{ allData.bspectrumBlock.energySpan }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a-checkbox style="margin-right: 15px;" @change="e=>yLogChange(e,'B')">Y log scale</a-checkbox>
|
<a-checkbox style="margin-right: 15px" @change="(e) => yLogChange(e, 'B')">Y log scale</a-checkbox>
|
||||||
<a-button class="row-btn" @click="resetZoom('B')">Reset Zoom</a-button>
|
<a-button class="row-btn" @click="resetZoom('B')">Reset Zoom</a-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="gamma-spectrum-chart" id="spectrumChartRef_B"></div>
|
<div class="gamma-spectrum-chart" id="spectrumChartRef_B"></div>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane key="histogram" tab="HISTOGRAM" v-if="allData.bspectrumBlock === null ? false : true">
|
<a-tab-pane key="histogram" tab="HISTOGRAM" v-if="allData.bspectrumBlock === null ? false : true">
|
||||||
<div class="pane-title" style="margin-bottom: 15px;">HISTOGRAM</div>
|
<div class="pane-title" style="margin-bottom: 15px">HISTOGRAM</div>
|
||||||
<div class="gamma-spectrum-row">
|
<div class="gamma-spectrum-row">
|
||||||
<div>
|
<div>
|
||||||
<span class="span-key">Number of B Channels:</span><span class="row-val">{{ allData.histogramBlock.bchannels }}</span>
|
<span class="span-key">Number of B Channels:</span
|
||||||
<span class="span-key" style="margin-left: 35px;">B Energy Span:</span><span class="row-val">{{ allData.histogramBlock.benergySpan }}</span>
|
><span class="row-val">{{ allData.histogramBlock.bchannels }}</span>
|
||||||
<span class="span-key" style="margin-left: 35px;">Number of G Channels:</span><span class="row-val">{{ allData.histogramBlock.gchannels }}</span>
|
<span class="span-key" style="margin-left: 35px">B Energy Span:</span
|
||||||
<span class="span-key" style="margin-left: 35px;">G Energy Span:</span><span class="row-val">{{ allData.histogramBlock.genergySpan }}</span>
|
><span class="row-val">{{ allData.histogramBlock.benergySpan }}</span>
|
||||||
|
<span class="span-key" style="margin-left: 35px">Number of G Channels:</span
|
||||||
|
><span class="row-val">{{ allData.histogramBlock.gchannels }}</span>
|
||||||
|
<span class="span-key" style="margin-left: 35px">G Energy Span:</span
|
||||||
|
><span class="row-val">{{ allData.histogramBlock.genergySpan }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="gamma-spectrum-chart" id="histogramChartRef"></div>
|
<div class="gamma-spectrum-chart" id="histogramChartRef"></div>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
<a-tab-pane key="certificate" tab="CERTIFICATE" v-if="allData.certificateBlock===null?false:true" forceRender>
|
<a-tab-pane
|
||||||
<div class="pane-title" style="margin-bottom: 15px;">CERTIFICATE</div>
|
key="certificate"
|
||||||
|
tab="CERTIFICATE"
|
||||||
|
v-if="allData.certificateBlock === null ? false : true"
|
||||||
|
forceRender
|
||||||
|
>
|
||||||
|
<div class="pane-title" style="margin-bottom: 15px">CERTIFICATE</div>
|
||||||
<div class="certificate-row">
|
<div class="certificate-row">
|
||||||
<span class="span-key">Total Source Activity [ Bq ]:</span><span class="row-val">{{ allData.certificateBlock.totalSourceActivity }}</span>
|
<span class="span-key">Total Source Activity [ Bq ]:</span
|
||||||
<span class="span-key" style="margin-left: 35px;">Assay Date:</span><span class="row-val">{{ allData.certificateBlock.assayDate }}</span>
|
><span class="row-val">{{ allData.certificateBlock.totalSourceActivity }}</span>
|
||||||
<span class="span-key" style="margin-left: 35px;">Units of Activity:</span><span class="row-val">{{ allData.certificateBlock.unitsOfActivity }}</span>
|
<span class="span-key" style="margin-left: 35px">Assay Date:</span
|
||||||
|
><span class="row-val">{{ allData.certificateBlock.assayDate }}</span>
|
||||||
|
<span class="span-key" style="margin-left: 35px">Units of Activity:</span
|
||||||
|
><span class="row-val">{{ allData.certificateBlock.unitsOfActivity }}</span>
|
||||||
</div>
|
</div>
|
||||||
<custom-table
|
<custom-table
|
||||||
size="middle"
|
size="middle"
|
||||||
|
@ -267,77 +271,80 @@
|
||||||
import { saveAs } from 'file-saver'
|
import { saveAs } from 'file-saver'
|
||||||
import JSZip from 'jszip'
|
import JSZip from 'jszip'
|
||||||
import { getAction } from '../../api/manage'
|
import { getAction } from '../../api/manage'
|
||||||
const colorList=["#0D5fff","#287D3C","#DF1512","#F3BF24","#D3D4DE","#000000"]
|
const colorList = ['#0D5fff', '#287D3C', '#DF1512', '#F3BF24', '#D3D4DE', '#000000']
|
||||||
import * as echarts from 'echarts'
|
import * as echarts from 'echarts'
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
allData: {
|
allData: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: ()=>{}
|
default: () => {},
|
||||||
},
|
|
||||||
sampleId: {
|
|
||||||
},
|
},
|
||||||
|
sampleId: {},
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
default:""
|
default: '',
|
||||||
}
|
},
|
||||||
|
currName: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
allData: {
|
allData: {
|
||||||
handler(val) {
|
handler(val) {
|
||||||
console.log(val);
|
console.log(val)
|
||||||
},
|
},
|
||||||
deep: true,
|
deep: true,
|
||||||
immediate:true
|
immediate: true,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
yAxisType_g:"value",
|
yAxisType_g: 'value',
|
||||||
yAxisType_b:"value",
|
yAxisType_b: 'value',
|
||||||
spectrumChart_G: null,
|
spectrumChart_G: null,
|
||||||
spectrumChart_B: null,
|
spectrumChart_B: null,
|
||||||
histogramChart: null,
|
histogramChart: null,
|
||||||
loading: true,
|
loading: true,
|
||||||
myChart: null,
|
myChart: null,
|
||||||
commentText: "",
|
commentText: '',
|
||||||
columnsEnergy_G: [
|
columnsEnergy_G: [
|
||||||
{
|
{
|
||||||
title: 'G-Energy [keV]',
|
title: 'G-Energy [keV]',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'energy'
|
dataIndex: 'energy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Centroid channel',
|
title: 'Centroid channel',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'centroid'
|
dataIndex: 'centroid',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Uncertainty (channels)',
|
title: 'Uncertainty (channels)',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'uncertainty'
|
dataIndex: 'uncertainty',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
columnsEnergy_B: [
|
columnsEnergy_B: [
|
||||||
{
|
{
|
||||||
title: 'Electron energy [keV]',
|
title: 'Electron energy [keV]',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'electronEnergy'
|
dataIndex: 'electronEnergy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Decay mode descriptor',
|
title: 'Decay mode descriptor',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'decayModeDescriptor'
|
dataIndex: 'decayModeDescriptor',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Maximum channel / centroid channel of CE',
|
title: 'Maximum channel / centroid channel of CE',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'maximumChannel'
|
dataIndex: 'maximumChannel',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Uncertainty',
|
title: 'Uncertainty',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'uncertainty'
|
dataIndex: 'uncertainty',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
dataSourceEnergy_G: [],
|
dataSourceEnergy_G: [],
|
||||||
|
@ -346,34 +353,34 @@ export default {
|
||||||
{
|
{
|
||||||
title: 'G-Energy [keV]',
|
title: 'G-Energy [keV]',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'energy'
|
dataIndex: 'energy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'FWHM [keV]',
|
title: 'FWHM [keV]',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'fwhm'
|
dataIndex: 'fwhm',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Uncertainty [keV]',
|
title: 'Uncertainty [keV]',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'uncertainty'
|
dataIndex: 'uncertainty',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
columnsResulution_B: [
|
columnsResulution_B: [
|
||||||
{
|
{
|
||||||
title: 'Electron energy [keV]',
|
title: 'Electron energy [keV]',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'electronEnergy'
|
dataIndex: 'electronEnergy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'FWHM [keV]',
|
title: 'FWHM [keV]',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'fwhm'
|
dataIndex: 'fwhm',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Uncertainty [keV]',
|
title: 'Uncertainty [keV]',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'uncertainty'
|
dataIndex: 'uncertainty',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
dataSourceResulution_G: [],
|
dataSourceResulution_G: [],
|
||||||
|
@ -382,44 +389,44 @@ export default {
|
||||||
{
|
{
|
||||||
title: 'Energy',
|
title: 'Energy',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'energy'
|
dataIndex: 'energy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Efficiency',
|
title: 'Efficiency',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'efficiency'
|
dataIndex: 'efficiency',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Uncertainty',
|
title: 'Uncertainty',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'uncertainty'
|
dataIndex: 'uncertainty',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
columnsEfficiency_BG: [
|
columnsEfficiency_BG: [
|
||||||
{
|
{
|
||||||
title: 'Nuclide name',
|
title: 'Nuclide name',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'nuclideName'
|
dataIndex: 'nuclideName',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'ROI number',
|
title: 'ROI number',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'roiNumber'
|
dataIndex: 'roiNumber',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Coincidence efficiency',
|
title: 'Coincidence efficiency',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'coincidenceEfficiency'
|
dataIndex: 'coincidenceEfficiency',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'ROI range start',
|
title: 'ROI range start',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'roiGRangeStart'
|
dataIndex: 'roiGRangeStart',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Uncertainty',
|
title: 'Uncertainty',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'uncertainty'
|
dataIndex: 'uncertainty',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
dataSourceEfficiency_G: [],
|
dataSourceEfficiency_G: [],
|
||||||
|
@ -428,55 +435,55 @@ export default {
|
||||||
{
|
{
|
||||||
title: 'ROI number',
|
title: 'ROI number',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'roiNumber'
|
dataIndex: 'roiNumber',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '2-D B-range start',
|
title: '2-D B-range start',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'roiBRangeStart'
|
dataIndex: 'roiBRangeStart',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '2-D B-range stop',
|
title: '2-D B-range stop',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'roiBRangeStop'
|
dataIndex: 'roiBRangeStop',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '2-D G-range start',
|
title: '2-D G-range start',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'roiGRangeStart'
|
dataIndex: 'roiGRangeStart',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '2-D G-range stop',
|
title: '2-D G-range stop',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'roiGRangeStop'
|
dataIndex: 'roiGRangeStop',
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
dataSourceRoiLimits: [],
|
dataSourceRoiLimits: [],
|
||||||
columnsRatios: [
|
columnsRatios: [
|
||||||
{
|
{
|
||||||
title: 'Ratio identifier',
|
title: 'Ratio identifier',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'ratioId'
|
dataIndex: 'ratioId',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'ROI number for higher G-energy',
|
title: 'ROI number for higher G-energy',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'roiNumberHigherEnergy'
|
dataIndex: 'roiNumberHigherEnergy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'ROI number for lower G-energy',
|
title: 'ROI number for lower G-energy',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'roiNumberLowerEnergy'
|
dataIndex: 'roiNumberLowerEnergy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Count ratio',
|
title: 'Count ratio',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'countRatio'
|
dataIndex: 'countRatio',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Count ratio uncertainty',
|
title: 'Count ratio uncertainty',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'countRatioUncertainty'
|
dataIndex: 'countRatioUncertainty',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
dataSourceRatios: [],
|
dataSourceRatios: [],
|
||||||
|
@ -484,48 +491,48 @@ export default {
|
||||||
{
|
{
|
||||||
title: 'Nuclide name',
|
title: 'Nuclide name',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'nuclideName'
|
dataIndex: 'nuclideName',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Half-life',
|
title: 'Half-life',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'halfLife'
|
dataIndex: 'halfLife',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Activity',
|
title: 'Activity',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'nuclideActivity'
|
dataIndex: 'nuclideActivity',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Uncertainty',
|
title: 'Uncertainty',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'uncertainty'
|
dataIndex: 'uncertainty',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Energy',
|
title: 'Energy',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'Genergy'
|
dataIndex: 'Genergy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Intensity',
|
title: 'Intensity',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'intensity'
|
dataIndex: 'intensity',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Electron decay',
|
title: 'Electron decay',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'electronDecayModeDescriptor'
|
dataIndex: 'electronDecayModeDescriptor',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Maximum',
|
title: 'Maximum',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'maxBParticleEnergy'
|
dataIndex: 'maxBParticleEnergy',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Particle B intensity',
|
title: 'Particle B intensity',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
dataIndex: 'particleBIntensity'
|
dataIndex: 'particleBIntensity',
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
dataSourceCertificate: [],
|
dataSourceCertificate: [],
|
||||||
dataSourceSpectrum_G: [],
|
dataSourceSpectrum_G: [],
|
||||||
|
@ -539,15 +546,18 @@ export default {
|
||||||
level_3: [],
|
level_3: [],
|
||||||
level_4: [],
|
level_4: [],
|
||||||
level_5: [],
|
level_5: [],
|
||||||
level_6:[]
|
level_6: [],
|
||||||
},
|
},
|
||||||
fileSrc: "",
|
fileSrc: '',
|
||||||
zipSrc:""
|
zipSrc: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getFildBlob()
|
this.getFildBlob()
|
||||||
this.commentText = this.allData.commentBlock && this.allData.commentBlock.text?this.allData.commentBlock.text.replace(/\n/g, "<br />"):""
|
this.commentText =
|
||||||
|
this.allData.commentBlock && this.allData.commentBlock.text
|
||||||
|
? this.allData.commentBlock.text.replace(/\n/g, '<br />')
|
||||||
|
: ''
|
||||||
this.dataSourceEnergy_G = this.allData.genergyBlock
|
this.dataSourceEnergy_G = this.allData.genergyBlock
|
||||||
this.dataSourceEnergy_B = this.allData.benergyBlock
|
this.dataSourceEnergy_B = this.allData.benergyBlock
|
||||||
this.dataSourceResulution_G = this.allData.gresolutionBlock
|
this.dataSourceResulution_G = this.allData.gresolutionBlock
|
||||||
|
@ -557,14 +567,19 @@ export default {
|
||||||
this.dataSourceRoiLimits = this.allData.roiLimitsBlock
|
this.dataSourceRoiLimits = this.allData.roiLimitsBlock
|
||||||
this.dataSourceRatios = this.allData.ratiosBlock
|
this.dataSourceRatios = this.allData.ratiosBlock
|
||||||
this.dataSourceSpectrum_G = this.allData.gspectrumBlock && this.allData.gspectrumBlock.gspectrumSubBlock
|
this.dataSourceSpectrum_G = this.allData.gspectrumBlock && this.allData.gspectrumBlock.gspectrumSubBlock
|
||||||
this.dataSourceSpectrumX_G = this.allData.gspectrumBlock&&this.allData.gspectrumBlock.gspectrumSubBlock.map((item, index) => {
|
this.dataSourceSpectrumX_G =
|
||||||
|
this.allData.gspectrumBlock &&
|
||||||
|
this.allData.gspectrumBlock.gspectrumSubBlock.map((item, index) => {
|
||||||
return index
|
return index
|
||||||
})
|
})
|
||||||
this.dataSourceSpectrum_B = this.allData.bspectrumBlock && this.allData.bspectrumBlock.bspectrumSubBlock
|
this.dataSourceSpectrum_B = this.allData.bspectrumBlock && this.allData.bspectrumBlock.bspectrumSubBlock
|
||||||
this.dataSourceSpectrumX_B = this.allData.bspectrumBlock&&this.allData.bspectrumBlock.bspectrumSubBlock.map((item, index) => {
|
this.dataSourceSpectrumX_B =
|
||||||
|
this.allData.bspectrumBlock &&
|
||||||
|
this.allData.bspectrumBlock.bspectrumSubBlock.map((item, index) => {
|
||||||
return index
|
return index
|
||||||
})
|
})
|
||||||
this.allData.histogramBlock&&this.allData.histogramBlock.histogramSubBlock.forEach(item => {
|
this.allData.histogramBlock &&
|
||||||
|
this.allData.histogramBlock.histogramSubBlock.forEach((item) => {
|
||||||
if (item.c === 1) {
|
if (item.c === 1) {
|
||||||
this.dataSourceHistogray.level_1.push(item)
|
this.dataSourceHistogray.level_1.push(item)
|
||||||
} else if (item.c <= 5 && item.c > 1) {
|
} else if (item.c <= 5 && item.c > 1) {
|
||||||
|
@ -578,7 +593,7 @@ export default {
|
||||||
} else if (item.c > 100) {
|
} else if (item.c > 100) {
|
||||||
this.dataSourceHistogray.level_6.push(item)
|
this.dataSourceHistogray.level_6.push(item)
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
this.dataSourceCertificate = this.allData.certificateBlock ? this.allData.certificateBlock.certificateSubBlock : []
|
this.dataSourceCertificate = this.allData.certificateBlock ? this.allData.certificateBlock.certificateSubBlock : []
|
||||||
// this.getFildBlob()
|
// this.getFildBlob()
|
||||||
},
|
},
|
||||||
|
@ -589,10 +604,10 @@ export default {
|
||||||
sampleId: this.sampleId,
|
sampleId: this.sampleId,
|
||||||
// sampleId:"1523651"
|
// sampleId:"1523651"
|
||||||
}
|
}
|
||||||
let url = "/webStatistics/radionuclideFile"
|
let url = '/webStatistics/radionuclideFile'
|
||||||
getAction(url, params).then((res) => {
|
getAction(url, params).then((res) => {
|
||||||
if (res.code && res.code == 500) {
|
if (res.code && res.code == 500) {
|
||||||
_this.fileSrc = ""
|
_this.fileSrc = ''
|
||||||
} else {
|
} else {
|
||||||
const blob = new Blob([res], { type: 'text/plain' })
|
const blob = new Blob([res], { type: 'text/plain' })
|
||||||
_this.fileSrc = window.URL.createObjectURL(blob)
|
_this.fileSrc = window.URL.createObjectURL(blob)
|
||||||
|
@ -600,35 +615,38 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
downloadFile() {
|
downloadFile() {
|
||||||
|
let fileName = this.currName.replace('.PHD', '')
|
||||||
if (this.fileSrc) {
|
if (this.fileSrc) {
|
||||||
let link = document.createElement('a')
|
let link = document.createElement('a')
|
||||||
link.href = this.fileSrc
|
link.href = this.fileSrc
|
||||||
link.target = '_blank'
|
link.target = '_blank'
|
||||||
link.download = this.type
|
link.download = fileName
|
||||||
document.body.appendChild(link)
|
document.body.appendChild(link)
|
||||||
link.click()
|
link.click()
|
||||||
document.body.removeChild(link)
|
document.body.removeChild(link)
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning("This operation fails. Contact your system administrator")
|
this.$message.warning('This operation fails. Contact your system administrator')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
downloadZip() {
|
downloadZip() {
|
||||||
|
let fileName = this.currName.replace('.PHD', '')
|
||||||
|
console.log('fileName', fileName)
|
||||||
getAction('/webStatistics/radionuclideFile', {
|
getAction('/webStatistics/radionuclideFile', {
|
||||||
sampleId: this.sampleId,
|
sampleId: this.sampleId,
|
||||||
}).then(async res => {
|
}).then(async (res) => {
|
||||||
if (res.code && res.code == 500) {
|
if (res.code && res.code == 500) {
|
||||||
this.$message.warning("This operation fails. Contact your system administrator")
|
this.$message.warning('This operation fails. Contact your system administrator')
|
||||||
} else {
|
} else {
|
||||||
const arrayBufferView = new Uint8Array(res)
|
const arrayBufferView = new Uint8Array(res)
|
||||||
const zip = new JSZip()
|
const zip = new JSZip()
|
||||||
const blob = new Blob([res], { type: 'text/plain' })
|
const blob = new Blob([res], { type: 'text/plain' })
|
||||||
// saveAs(blob, 'files.txt');
|
// saveAs(blob, 'files.txt');
|
||||||
// 将文件添加到ZIP中
|
// 将文件添加到ZIP中
|
||||||
zip.file(`${this.type}.txt`, blob, { binary: true });
|
zip.file(`${fileName}.txt`, blob, { binary: true })
|
||||||
// 生成ZIP文件
|
// 生成ZIP文件
|
||||||
const zipContent = await zip.generateAsync({ type: 'blob' });
|
const zipContent = await zip.generateAsync({ type: 'blob' })
|
||||||
// 保存ZIP文件
|
// 保存ZIP文件
|
||||||
saveAs(zipContent, this.type);
|
saveAs(zipContent, fileName)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -641,14 +659,14 @@ export default {
|
||||||
link.click()
|
link.click()
|
||||||
document.body.removeChild(link)
|
document.body.removeChild(link)
|
||||||
} else {
|
} else {
|
||||||
this.$message.info("File preview failed")
|
this.$message.info('File preview failed')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getUid() {
|
getUid() {
|
||||||
return (Math.random() + new Date().getTime()).toString(32).slice(0, 8)
|
return (Math.random() + new Date().getTime()).toString(32).slice(0, 8)
|
||||||
},
|
},
|
||||||
changeData(data) {
|
changeData(data) {
|
||||||
let arr = data.map(item => {
|
let arr = data.map((item) => {
|
||||||
if (item == 0) {
|
if (item == 0) {
|
||||||
return 1.001
|
return 1.001
|
||||||
} else {
|
} else {
|
||||||
|
@ -658,14 +676,13 @@ export default {
|
||||||
return arr
|
return arr
|
||||||
},
|
},
|
||||||
yLogChange(e, str) {
|
yLogChange(e, str) {
|
||||||
let yAxisType = e.target.checked ? "log" : "value"
|
let yAxisType = e.target.checked ? 'log' : 'value'
|
||||||
str === "G" ? this.yAxisType_g = yAxisType : this.yAxisType_b = yAxisType
|
str === 'G' ? (this.yAxisType_g = yAxisType) : (this.yAxisType_b = yAxisType)
|
||||||
let dataArr = []
|
let dataArr = []
|
||||||
if (e.target.checked) {
|
if (e.target.checked) {
|
||||||
|
dataArr = this.changeData(str === 'G' ? this.dataSourceSpectrum_G : this.dataSourceSpectrum_B)
|
||||||
dataArr = this.changeData(str === "G"?this.dataSourceSpectrum_G:this.dataSourceSpectrum_B)
|
|
||||||
} else {
|
} else {
|
||||||
dataArr = str === "G"?this.dataSourceSpectrum_G:this.dataSourceSpectrum_B
|
dataArr = str === 'G' ? this.dataSourceSpectrum_G : this.dataSourceSpectrum_B
|
||||||
}
|
}
|
||||||
let options = {
|
let options = {
|
||||||
tooltip: {
|
tooltip: {
|
||||||
|
@ -673,18 +690,18 @@ export default {
|
||||||
formatter: function (params) {
|
formatter: function (params) {
|
||||||
return `<div>${params[0].axisValueLabel}</div>
|
return `<div>${params[0].axisValueLabel}</div>
|
||||||
<div style="color:#0656ff">
|
<div style="color:#0656ff">
|
||||||
value:${e.target.checked ? params[0].value == 1.001 ? 0 : params[0].value : params[0].value}
|
value:${e.target.checked ? (params[0].value == 1.001 ? 0 : params[0].value) : params[0].value}
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: str==="G"?this.yAxisType_g:this.yAxisType_b,
|
type: str === 'G' ? this.yAxisType_g : this.yAxisType_b,
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: true,
|
show: true,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: "rgbA(64, 105, 121, 0.2)"
|
color: 'rgbA(64, 105, 121, 0.2)',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
formatter: function (value) {
|
formatter: function (value) {
|
||||||
|
@ -693,19 +710,19 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
scale: false
|
},
|
||||||
|
scale: false,
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
type: 'line',
|
type: 'line',
|
||||||
itemStyle: { normal: { color: '#0656ff' } },
|
itemStyle: { normal: { color: '#0656ff' } },
|
||||||
data: dataArr
|
data: dataArr,
|
||||||
|
},
|
||||||
|
],
|
||||||
}
|
}
|
||||||
]
|
if (str === 'G') {
|
||||||
}
|
|
||||||
if (str === "G") {
|
|
||||||
this.spectrumChart_G.setOption(options)
|
this.spectrumChart_G.setOption(options)
|
||||||
} else {
|
} else {
|
||||||
this.spectrumChart_B.setOption(options)
|
this.spectrumChart_B.setOption(options)
|
||||||
|
@ -716,29 +733,29 @@ export default {
|
||||||
dataZoom: [
|
dataZoom: [
|
||||||
{
|
{
|
||||||
start: 0,
|
start: 0,
|
||||||
end: 100
|
end: 100,
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
if (str === "G") {
|
if (str === 'G') {
|
||||||
this.spectrumChart_G.setOption(options)
|
this.spectrumChart_G.setOption(options)
|
||||||
} else {
|
} else {
|
||||||
this.spectrumChart_B.setOption(options)
|
this.spectrumChart_B.setOption(options)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleback() {
|
handleback() {
|
||||||
this.$emit("back",false)
|
this.$emit('back', false)
|
||||||
},
|
},
|
||||||
handleTabChange(key) {
|
handleTabChange(key) {
|
||||||
if (key === "gamma-spectrum") {
|
if (key === 'gamma-spectrum') {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.drawSpectrumChart_G()
|
this.drawSpectrumChart_G()
|
||||||
})
|
})
|
||||||
} else if (key === "beta-spectrum") {
|
} else if (key === 'beta-spectrum') {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.drawSpectrumChart_B()
|
this.drawSpectrumChart_B()
|
||||||
})
|
})
|
||||||
} else if (key === "histogram"){
|
} else if (key === 'histogram') {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.drawHistogramChart()
|
this.drawHistogramChart()
|
||||||
})
|
})
|
||||||
|
@ -752,7 +769,7 @@ export default {
|
||||||
return `<div>${params[0].axisValueLabel}</div>
|
return `<div>${params[0].axisValueLabel}</div>
|
||||||
<div style="color:#0656ff">value:${params[0].value}</div>
|
<div style="color:#0656ff">value:${params[0].value}</div>
|
||||||
`
|
`
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
xAxis: {
|
xAxis: {
|
||||||
// type:"value",
|
// type:"value",
|
||||||
|
@ -760,66 +777,67 @@ export default {
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: true,
|
show: true,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: "rgbA(64, 105, 121, 0.2)"
|
color: 'rgbA(64, 105, 121, 0.2)',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
boundaryGap: false,
|
boundaryGap: false,
|
||||||
interval: 25,
|
interval: 25,
|
||||||
max:str==="G"?this.allData.gspectrumBlock.numberGChannels:this.allData.bspectrumBlock.numberBChannels,
|
max: str === 'G' ? this.allData.gspectrumBlock.numberGChannels : this.allData.bspectrumBlock.numberBChannels,
|
||||||
data: str === "G" ? this.dataSourceSpectrumX_G : this.dataSourceSpectrumX_B
|
data: str === 'G' ? this.dataSourceSpectrumX_G : this.dataSourceSpectrumX_B,
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
left: '3%',
|
left: '3%',
|
||||||
right: '4%',
|
right: '4%',
|
||||||
bottom: '10%',
|
bottom: '10%',
|
||||||
containLabel: true
|
containLabel: true,
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
type: str==="G"?this.yAxisType_g:this.yAxisType_b,
|
type: str === 'G' ? this.yAxisType_g : this.yAxisType_b,
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: true,
|
show: true,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: "rgbA(64, 105, 121, 0.2)"
|
color: 'rgbA(64, 105, 121, 0.2)',
|
||||||
}
|
|
||||||
},
|
},
|
||||||
scale: false
|
},
|
||||||
|
scale: false,
|
||||||
},
|
},
|
||||||
dataZoom: [
|
dataZoom: [
|
||||||
{
|
{
|
||||||
start: 0,
|
start: 0,
|
||||||
end: 100
|
end: 100,
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
type: 'line',
|
type: 'line',
|
||||||
itemStyle: { normal: { color: '#0656ff' } },
|
itemStyle: { normal: { color: '#0656ff' } },
|
||||||
data: str==="G"?this.dataSourceSpectrum_G:this.dataSourceSpectrum_B
|
data: str === 'G' ? this.dataSourceSpectrum_G : this.dataSourceSpectrum_B,
|
||||||
}
|
},
|
||||||
]
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
drawSpectrumChart_G() {
|
drawSpectrumChart_G() {
|
||||||
this.spectrumChart_G = echarts.init(document.getElementById("spectrumChartRef_G"))
|
this.spectrumChart_G = echarts.init(document.getElementById('spectrumChartRef_G'))
|
||||||
this.spectrumChart_G.setOption(this.getOptions("G"))
|
this.spectrumChart_G.setOption(this.getOptions('G'))
|
||||||
window.addEventListener("resize", function () {
|
window.addEventListener('resize', function () {
|
||||||
this,spectrumChart_G.resize();
|
this, spectrumChart_G.resize()
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
drawSpectrumChart_B() {
|
drawSpectrumChart_B() {
|
||||||
this.spectrumChart_B = echarts.init(document.getElementById("spectrumChartRef_B"))
|
this.spectrumChart_B = echarts.init(document.getElementById('spectrumChartRef_B'))
|
||||||
this.spectrumChart_B.setOption(this.getOptions("B"))
|
this.spectrumChart_B.setOption(this.getOptions('B'))
|
||||||
window.addEventListener("resize", function () {
|
window.addEventListener('resize', function () {
|
||||||
this.spectrumChart_B.resize();
|
this.spectrumChart_B.resize()
|
||||||
});
|
})
|
||||||
},
|
},
|
||||||
drawHistogramChart() {
|
drawHistogramChart() {
|
||||||
let dataset=[],series=[]
|
let dataset = [],
|
||||||
|
series = []
|
||||||
for (const key in this.dataSourceHistogray) {
|
for (const key in this.dataSourceHistogray) {
|
||||||
if (Object.hasOwnProperty.call(this.dataSourceHistogray, key)) {
|
if (Object.hasOwnProperty.call(this.dataSourceHistogray, key)) {
|
||||||
if (this.dataSourceHistogray[key].length > 0) {
|
if (this.dataSourceHistogray[key].length > 0) {
|
||||||
dataset.push({
|
dataset.push({
|
||||||
source: this.dataSourceHistogray[key]
|
source: this.dataSourceHistogray[key],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -827,14 +845,14 @@ export default {
|
||||||
series = dataset.map((item, index) => {
|
series = dataset.map((item, index) => {
|
||||||
return {
|
return {
|
||||||
type: 'scatter',
|
type: 'scatter',
|
||||||
dimensions: ["b", "g"],
|
dimensions: ['b', 'g'],
|
||||||
datasetIndex: index,
|
datasetIndex: index,
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
color:colorList[index]
|
color: colorList[index],
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.histogramChart = echarts.init(document.getElementById("histogramChartRef"))
|
this.histogramChart = echarts.init(document.getElementById('histogramChartRef'))
|
||||||
this.histogramChart.setOption({
|
this.histogramChart.setOption({
|
||||||
dataset,
|
dataset,
|
||||||
xAxis: {
|
xAxis: {
|
||||||
|
@ -842,44 +860,44 @@ export default {
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: true,
|
show: true,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: "rgbA(64, 105, 121, 0.2)"
|
color: 'rgbA(64, 105, 121, 0.2)',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
interval: 65,
|
interval: 65,
|
||||||
max:260
|
max: 260,
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
scale: false,
|
scale: false,
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: true,
|
show: true,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
color: "rgbA(64, 105, 121, 0.2)"
|
color: 'rgbA(64, 105, 121, 0.2)',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
interval: 65,
|
interval: 65,
|
||||||
max:260
|
max: 260,
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
trigger: "item",
|
trigger: 'item',
|
||||||
formatter: function (params) {
|
formatter: function (params) {
|
||||||
return `<div>Beta:${params.value.b}</div>
|
return `<div>Beta:${params.value.b}</div>
|
||||||
<div>Gamma:${params.value.g}</div>
|
<div>Gamma:${params.value.g}</div>
|
||||||
<div>Count:${params.value.c}</div>`
|
<div>Count:${params.value.c}</div>`
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
left: '3%',
|
left: '3%',
|
||||||
right: '4%',
|
right: '4%',
|
||||||
bottom: '10%',
|
bottom: '10%',
|
||||||
containLabel: true
|
containLabel: true,
|
||||||
},
|
},
|
||||||
series
|
series,
|
||||||
})
|
})
|
||||||
window.addEventListener("resize", function () {
|
window.addEventListener('resize', function () {
|
||||||
this.histogramChart.resize();
|
this.histogramChart.resize()
|
||||||
});
|
})
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -964,7 +982,7 @@ export default {
|
||||||
padding: 0 23px;
|
padding: 0 23px;
|
||||||
position: relative;
|
position: relative;
|
||||||
&::before {
|
&::before {
|
||||||
content: "";
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -976,7 +994,7 @@ export default {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
&::after {
|
&::after {
|
||||||
content: "";
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
@ -994,7 +1012,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ant-tabs-ink-bar {
|
.ant-tabs-ink-bar {
|
||||||
display: none !important
|
display: none !important;
|
||||||
}
|
}
|
||||||
.ant-tabs-nav .ant-tabs-tab-active {
|
.ant-tabs-nav .ant-tabs-tab-active {
|
||||||
color: #2affdf;
|
color: #2affdf;
|
||||||
|
@ -1006,16 +1024,18 @@ export default {
|
||||||
padding: 15px 20px;
|
padding: 15px 20px;
|
||||||
}
|
}
|
||||||
.ant-tabs .ant-tabs-top-content > .ant-tabs-tabpane-inactive {
|
.ant-tabs .ant-tabs-top-content > .ant-tabs-tabpane-inactive {
|
||||||
padding: 15px 20px !important
|
padding: 15px 20px !important;
|
||||||
}
|
}
|
||||||
.ant-row {
|
.ant-row {
|
||||||
height: 36px;
|
height: 36px;
|
||||||
line-height: 36px;
|
line-height: 36px;
|
||||||
}
|
}
|
||||||
.ant-tabs-tab-prev, .ant-tabs-tab-next{
|
.ant-tabs-tab-prev,
|
||||||
|
.ant-tabs-tab-next {
|
||||||
color: #c9f6f6;
|
color: #c9f6f6;
|
||||||
}
|
}
|
||||||
.ant-tabs-tab-prev:hover, .ant-tabs-tab-next:hover{
|
.ant-tabs-tab-prev:hover,
|
||||||
|
.ant-tabs-tab-next:hover {
|
||||||
color: #2affdf;
|
color: #2affdf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,14 @@
|
||||||
</custom-table>
|
</custom-table>
|
||||||
</a-card>
|
</a-card>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<Detail v-if="isDetail" :type="fileName" :sampleId="currSampleId" :allData="detailJson" @back="handleBack"></Detail>
|
<Detail
|
||||||
|
v-if="isDetail"
|
||||||
|
:type="fileName"
|
||||||
|
:sampleId="currSampleId"
|
||||||
|
:allData="detailJson"
|
||||||
|
:currName="currFileName"
|
||||||
|
@back="handleBack"
|
||||||
|
></Detail>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
@ -72,8 +79,6 @@ export default {
|
||||||
fileName: {
|
fileName: {
|
||||||
handler: function (val) {
|
handler: function (val) {
|
||||||
if (val === 'QCPHD' || val === 'SPHDF' || val === 'SPHDP') {
|
if (val === 'QCPHD' || val === 'SPHDF' || val === 'SPHDP') {
|
||||||
console.log(56, this)
|
|
||||||
console.log(this.getBeforeDate(6))
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.queryParam.startTime = this.getBeforeDate(6)
|
this.queryParam.startTime = this.getBeforeDate(6)
|
||||||
})
|
})
|
||||||
|
@ -104,6 +109,7 @@ export default {
|
||||||
detailJson: {},
|
detailJson: {},
|
||||||
allChecked: false,
|
allChecked: false,
|
||||||
currSampleId: '',
|
currSampleId: '',
|
||||||
|
currFileName: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -154,6 +160,8 @@ export default {
|
||||||
handleDetail(record) {
|
handleDetail(record) {
|
||||||
this.spinning = true
|
this.spinning = true
|
||||||
this.currSampleId = record.sampleId
|
this.currSampleId = record.sampleId
|
||||||
|
let length = record.inputFileName.split('/').length
|
||||||
|
this.currFileName = record.inputFileName.split('/')[length - 1]
|
||||||
getAction('webStatistics/findGeneratedReport', { sampleId: record.sampleId })
|
getAction('webStatistics/findGeneratedReport', { sampleId: record.sampleId })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.spinning = false
|
this.spinning = false
|
||||||
|
|
Loading…
Reference in New Issue
Block a user