From 0fd0634c7083705ace0e3b300a6498df25fa8c1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Thu, 11 Jan 2024 11:41:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AnalyzeInteractiveToolModal/index.vue | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue b/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue index 5624b46..374841c 100644 --- a/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue +++ b/src/views/spectrumAnalysis/components/Modals/AnalyzeInteractiveToolModal/index.vue @@ -124,7 +124,11 @@ - +
@@ -447,6 +451,10 @@ export default { data() { this.columns = columns return { + searchParam: { + energy: '', + tolerance: '', + }, option: cloneDeep(initialOption), opts: { notMerge: false }, thumbnailOption: cloneDeep(thumbnailOption), @@ -777,6 +785,29 @@ export default { } } }, + async handleToleranceChange(val) { + // this.selectedTableItem._loading = true + this.searchParam.energy = this.selectedTableItem.energy + this.searchParam.tolerance = val + try { + const { sampleId, inputFileName: fileName } = this.sampleData + const { success, result, message } = await getAction('/gamma/searchNuclide', { + sampleId, + fileName, + ...this.searchParam, + }) + if (success) { + const { list } = result + this.selectedTableItem._possible = list + } else { + this.$message.error(message) + } + } catch (error) { + console.error(error) + } finally { + // this.selectedTableItem._loading = false + } + }, // 显示peak comment弹窗 handleAddPeakComment() {