Peak Information页面查看IDC数据进行比较接口

Radionuclide Activity页面查看IDC数据进行比较接口
This commit is contained in:
任珮宇 2024-01-18 16:49:45 +08:00
parent 2ec6c7f3cd
commit 2f147ed144
5 changed files with 57 additions and 28 deletions

View File

@ -165,17 +165,17 @@ export default {
getIndex(val) {
this.currIdx = val
},
async handleDetalSelfStationCache() {
const { inputFileName } = this.sample
let params = {
sampleFileName: inputFileName,
}
try {
const { success, result, message } = await deleteAction('/selfStation/deleteSelfStationCache', params)
} catch (error) {
console.error(error)
}
},
// async handleDetalSelfStationCache() {
// const { inputFileName } = this.sample
// let params = {
// sampleFileName: inputFileName,
// }
// try {
// const { success, result, message } = await deleteAction('/selfStation/deleteSelfStationCache', params)
// } catch (error) {
// console.error(error)
// }
// },
async getSelfStationSampleDetail() {
this.spectraType = this.SampleType[0].value
const { inputFileName, detFileName } = this.sample

View File

@ -59,6 +59,7 @@ const columns = [
{
title: 'HalfLife',
dataIndex: 'halfLife',
ellipsis: true,
},
{
title: 'Energy (keV)',
@ -114,6 +115,28 @@ export default {
//
handleComparision() {
this.compareVisible = !this.compareVisible
if (this.compareVisible) {
this.getCompareInfo()
}
},
async getCompareInfo() {
try {
this.isLoading = true
const { sampleId, inputFileName: fileName } = this.sampleData
const { success, result, message } = await getAction('/gamma/nuclComparison', {
// sampleId,
fileName,
})
if (success) {
this.compareList = result
} else {
this.$message.error(message)
}
} catch (error) {
console.error(error)
} finally {
this.isLoading = false
}
},
async getInfo() {

View File

@ -9,6 +9,7 @@
<div class="comparison-list-item">
<div class="comparison-list-item-title">IDC</div>
<custom-table :list="compareList" :scroll="{ y: 230 }" :columns="columns"></custom-table>
<!-- <custom-table :list="compareList" :scroll="{ y: 230 }" :columns="columns_compare"></custom-table> -->
</div>
</div>
<custom-table v-else :columns="columns" :list="list" :scroll="{ y: 460 }" :canSelect="false"></custom-table>
@ -100,6 +101,28 @@ export default {
//
handleComparision() {
this.compareVisible = !this.compareVisible
if (this.compareVisible) {
this.getCompareInfo()
}
},
async getCompareInfo() {
try {
this.isLoading = true
const { sampleId, inputFileName: fileName } = this.sampleData
const { success, result, message } = await getAction('/gamma/peakComparison', {
// sampleId,
fileName,
})
if (success) {
this.compareList = result
} else {
this.$message.error(message)
}
} catch (error) {
console.error(error)
} finally {
this.isLoading = false
}
},
async getInfo() {

View File

@ -46,7 +46,6 @@ export default {
}
}
const deleted = this.list.splice(index, 1)
console.log('deleted', deleted)
clearSampleCache(deleted)
this.$forceUpdate()
},

View File

@ -579,22 +579,6 @@ export default {
})
const names = this.sampleList.map((item) => item.inputFileName) // Sampleid
const willAddList = arr.filter((item) => !names.includes(item.inputFileName))
// console.log('willAddList', willAddList)
//willAddList.push({
// checked: true,
// dbName: '',
// detFileName: 'ABC01_001-20240108_1327_D_FULL_381505.PHD',
// detFileStatus: null,
// gasFileName: '',
// gasFileStatus: null,
// inputFileName: 'ABC01_001-20240108_1405_S_FULL_40186.0.PHD',
// qcFileName: '',
// qcFileStatus: null,
// sampleFileName: 'ABC01_001-20240108_1405_S_FULL_40186.0.PHD',
// sampleId: null,
// sampleSystemType: 'C',
// sampleType: 'C',
//})
this.callInitValue(willAddList)
this.sampleList = this.sampleList.concat(willAddList)
},