Compare commits

..

No commits in common. "ccb401d7d73fc90db868eae139623735550e64e2" and "330238aead0b25e3abb6315ffd617cafd83a93ad" have entirely different histories.

3 changed files with 29 additions and 77 deletions

View File

@ -58,7 +58,6 @@ export const readFile = (file, fileType = 'text') => {
resolve(event.target.result) resolve(event.target.result)
} }
fileReader.onerror = error => { fileReader.onerror = error => {
message.error('无法读取文件,请确认文件是否被修改')
reject(error) reject(error)
} }
}) })

View File

@ -715,12 +715,10 @@ export default {
this.$message.warn('File is Empty ') this.$message.warn('File is Empty ')
return return
} }
const zipedFiles = await zipFile(files, 'test.zip')
console.log('zipedFileszipedFiles', zipedFiles)
this.isUploadingZip = true
try { try {
const zipedFiles = await zipFile(files, 'test.zip')
console.log('zipedFileszipedFiles', zipedFiles)
this.isUploadingZip = true
const { success, message } = await this.uploadZipFile(zipedFiles) const { success, message } = await this.uploadZipFile(zipedFiles)
if (success) { if (success) {
let result = [] let result = []

View File

@ -143,28 +143,18 @@
</custom-table> </custom-table>
</template> </template>
</a-tab-pane> </a-tab-pane>
<a-tab-pane <a-tab-pane key="efficiency" tab="EFFICIENCY" v-if="allData.gefficiencyBlock === null ? false : true" forceRender>
key="efficiency" <div class="pane-title" style="margin-bottom: 15px">GAMMA EFFICIENCY</div>
tab="EFFICIENCY" <custom-table
v-if="allData.gefficiencyBlock || allData.bgEfficiencyBlock || allData.befficiencyBlock" size="middle"
forceRender :rowKey="getUid()"
> :columns="columnsEfficiency_G"
<!-- Geff开始 --> :list="dataSourceEfficiency_G"
<template v-if="allData.gefficiencyBlock"> :pagination="false"
<div class="pane-title" style="margin-bottom: 15px">GAMMA EFFICIENCY</div> :canSelect="false"
<custom-table >
size="middle" </custom-table>
:rowKey="getUid()" <template v-if="allData.bgEfficiencyBlock === null ? false : true">
:columns="columnsEfficiency_G"
:list="dataSourceEfficiency_G"
:pagination="false"
:canSelect="false"
>
</custom-table>
</template>
<!-- Geff结束 -->
<!-- BG开始 -->
<template v-if="allData.bgEfficiencyBlock">
<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"
@ -176,21 +166,6 @@
> >
</custom-table> </custom-table>
</template> </template>
<!-- BG结束 -->
<!-- Beff开始 -->
<template v-if="allData.befficiencyBlock">
<div class="pane-title" style="margin: 15px 0">BETA EFFICIENCY</div>
<custom-table
size="middle"
:rowKey="getUid()"
:columns="columnsEfficiency_BG"
:list="dataSourceEfficiency_BE"
:pagination="false"
:canSelect="false"
>
</custom-table>
</template>
<!-- Beff结束 -->
</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>
@ -248,7 +223,7 @@
</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.histogramBlock === 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>
@ -459,7 +434,6 @@ export default {
], ],
dataSourceEfficiency_G: [], dataSourceEfficiency_G: [],
dataSourceEfficiency_BG: [], dataSourceEfficiency_BG: [],
dataSourceEfficiency_BE: [],
columnsRoiLimits: [ columnsRoiLimits: [
{ {
title: 'ROI number', title: 'ROI number',
@ -593,7 +567,6 @@ export default {
this.dataSourceResulution_B = this.allData.bresolutionBlock this.dataSourceResulution_B = this.allData.bresolutionBlock
this.dataSourceEfficiency_G = this.allData.gefficiencyBlock this.dataSourceEfficiency_G = this.allData.gefficiencyBlock
this.dataSourceEfficiency_BG = this.allData.bgEfficiencyBlock this.dataSourceEfficiency_BG = this.allData.bgEfficiencyBlock
this.dataSourceEfficiency_BE = this.allData.befficiencyBlock
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
@ -609,7 +582,6 @@ export default {
return index return index
}) })
this.allData.histogramBlock && this.allData.histogramBlock &&
this.allData.histogramBlock.histogramSubBlock &&
this.allData.histogramBlock.histogramSubBlock.forEach((item) => { 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)
@ -839,22 +811,20 @@ export default {
} }
}, },
drawSpectrumChart_G() { drawSpectrumChart_G() {
if (this.spectrumChart_G) return
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', this.handleSpectrumGChartResize) window.addEventListener('resize', function () {
this, spectrumChart_G.resize()
})
}, },
drawSpectrumChart_B() { drawSpectrumChart_B() {
if (this.spectrumChart_B) return
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', this.handleSpectrumBChartResize) window.addEventListener('resize', function () {
this.spectrumChart_B.resize()
})
}, },
drawHistogramChart() { drawHistogramChart() {
if (this.histogramChart) return
let dataset = [], let dataset = [],
series = [] series = []
for (const key in this.dataSourceHistogray) { for (const key in this.dataSourceHistogray) {
@ -876,9 +846,6 @@ export default {
}, },
} }
}) })
const { bchannels, gchannels } = this.allData.histogramBlock || {}
this.histogramChart = echarts.init(document.getElementById('histogramChartRef')) this.histogramChart = echarts.init(document.getElementById('histogramChartRef'))
this.histogramChart.setOption({ this.histogramChart.setOption({
dataset, dataset,
@ -891,7 +858,7 @@ export default {
}, },
}, },
interval: 65, interval: 65,
max: bchannels, max: 260,
}, },
yAxis: { yAxis: {
scale: false, scale: false,
@ -901,8 +868,8 @@ export default {
color: 'rgbA(64, 105, 121, 0.2)', color: 'rgbA(64, 105, 121, 0.2)',
}, },
}, },
interval: gchannels / 4, interval: 65,
max: gchannels, max: 260,
}, },
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
@ -920,23 +887,10 @@ export default {
}, },
series, series,
}) })
window.addEventListener('resize', this.handleHistogramChartResize) window.addEventListener('resize', function () {
this.histogramChart.resize()
})
}, },
handleSpectrumGChartResize() {
this.spectrumChart_G.resize()
},
handleSpectrumBChartResize() {
this.spectrumChart_B.resize()
},
handleHistogramChartResize() {
this.histogramChart.resize()
},
},
beforeDestroy() {
window.removeEventListener('resize', this.handleSpectrumGChartResize)
window.removeEventListener('resize', this.handleSpectrumBChartResize)
window.removeEventListener('resize', this.handleHistogramChartResize)
}, },
} }
</script> </script>
@ -1067,6 +1021,7 @@ export default {
padding: 15px 20px !important; padding: 15px 20px !important;
} }
.ant-row { .ant-row {
height: 36px;
line-height: 36px; line-height: 36px;
} }
.ant-tabs-tab-prev, .ant-tabs-tab-prev,