fix: BG Log Viewer和QC Results对字段
This commit is contained in:
parent
4feda76add
commit
5b0bb1ec4e
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<custom-modal v-model="visible" title="BetaGamma Analyser Log" :width="800">
|
<custom-modal v-model="visible" title="BetaGamma Analyser Log" :width="800">
|
||||||
<a-spin :spinning="isLoading">
|
<a-spin :spinning="isLoading">
|
||||||
<a-textarea class="bg-log-viewer" v-model="content"></a-textarea>
|
<a-textarea :rows="20" v-model="content"></a-textarea>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<div slot="custom-footer">
|
<div slot="custom-footer">
|
||||||
<a-button type="primary" @click="handleClick">Save As</a-button>
|
<a-button type="primary" @click="handleClick">Save As</a-button>
|
||||||
|
@ -26,7 +26,7 @@ export default {
|
||||||
try {
|
try {
|
||||||
this.isLoading = true
|
this.isLoading = true
|
||||||
const { dbName, sampleId, sampleFileName, gasFileName, detFileName, qcFileName } = this.newSampleData
|
const { dbName, sampleId, sampleFileName, gasFileName, detFileName, qcFileName } = this.newSampleData
|
||||||
const { success, result, message } = await getAction('/spectrumAnalysis/viewBGLogViewer', {
|
const result = await getAction('/spectrumAnalysis/viewBGLogViewer', {
|
||||||
dbName,
|
dbName,
|
||||||
sampleId,
|
sampleId,
|
||||||
sampleFileName,
|
sampleFileName,
|
||||||
|
@ -34,12 +34,7 @@ export default {
|
||||||
detFileName,
|
detFileName,
|
||||||
qcFileName,
|
qcFileName,
|
||||||
})
|
})
|
||||||
if (success) {
|
this.content = result
|
||||||
console.log('%c [ ]-21', 'font-size:13px; background:pink; color:#bf2c9f;', result)
|
|
||||||
this.content = 'test'
|
|
||||||
} else {
|
|
||||||
this.$message.error(message)
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -60,8 +55,4 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
.bg-log-viewer {
|
|
||||||
height: 400px;
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
|
@ -110,15 +110,15 @@ export default {
|
||||||
|
|
||||||
this.list.push({
|
this.list.push({
|
||||||
qcFlags: 'Gas Bg',
|
qcFlags: 'Gas Bg',
|
||||||
evaluationMetrics: result.gasBgValueAndStatus,
|
evaluationMetrics: result.gasBgEvaluationMetrics,
|
||||||
value: result.gasBgValueAndStatus ? 'Match' : 'UnMatch',
|
value: result.gasBgValue,
|
||||||
status: result.gasBgValueAndStatus ? 'Pass' : 'Failed',
|
status: result.gasBgValueAndStatus ? 'Pass' : 'Failed',
|
||||||
})
|
})
|
||||||
|
|
||||||
this.list.push({
|
this.list.push({
|
||||||
qcFlags: 'Det Bg',
|
qcFlags: 'Det Bg',
|
||||||
evaluationMetrics: result.detBgValueAndStatus,
|
evaluationMetrics: result.detBgEvaluationMetrics,
|
||||||
value: result.detBgValueAndStatus ? 'Match' : 'UnMatch',
|
value: result.detBgValue,
|
||||||
status: result.detBgValueAndStatus ? 'Pass' : 'Failed',
|
status: result.detBgValueAndStatus ? 'Pass' : 'Failed',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user