feat: Gamma的Spectrum弹窗增加phd:raw页
This commit is contained in:
parent
d9b192cea1
commit
829e870ec9
|
@ -1,9 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<custom-modal v-model="visible" :width="800" title="Spectrum" :footer="null">
|
<custom-modal v-model="visible" :width="800" title="Spectrum" :footer="null">
|
||||||
<a-spin :spinning="isLoading">
|
<a-spin :spinning="isLoading">
|
||||||
<pre>
|
<a-tabs :animated="false">
|
||||||
{{ content }}
|
<a-tab-pane tab="phd" key="1">
|
||||||
</pre>
|
<pre key="1">{{ spectrum }}</pre>
|
||||||
|
</a-tab-pane>
|
||||||
|
<a-tab-pane tab="phd:raw" key="2">
|
||||||
|
<pre key="2">{{ phdSpectrum }}</pre>
|
||||||
|
</a-tab-pane>
|
||||||
|
</a-tabs>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
</custom-modal>
|
</custom-modal>
|
||||||
</template>
|
</template>
|
||||||
|
@ -16,8 +21,9 @@ export default {
|
||||||
mixins: [ModalMixin, SampleDataMixin],
|
mixins: [ModalMixin, SampleDataMixin],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
content: '',
|
spectrum: '',
|
||||||
isLoading: true
|
phdSpectrum: '',
|
||||||
|
isLoading: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -27,10 +33,12 @@ export default {
|
||||||
const { sampleId, inputFileName: fileName } = this.sampleData
|
const { sampleId, inputFileName: fileName } = this.sampleData
|
||||||
const { success, result, message } = await getAction('/gamma/Spectrum', {
|
const { success, result, message } = await getAction('/gamma/Spectrum', {
|
||||||
sampleId,
|
sampleId,
|
||||||
fileName
|
fileName,
|
||||||
})
|
})
|
||||||
if (success) {
|
if (success) {
|
||||||
this.content = result
|
const { Spectrum, phdSpectrum } = result
|
||||||
|
this.spectrum = Spectrum
|
||||||
|
this.phdSpectrum = (phdSpectrum || []).join('\r\n')
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(message)
|
this.$message.error(message)
|
||||||
}
|
}
|
||||||
|
@ -43,8 +51,8 @@ export default {
|
||||||
|
|
||||||
beforeModalOpen() {
|
beforeModalOpen() {
|
||||||
this.getContent()
|
this.getContent()
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user