Compare commits

...

2 Commits

Author SHA1 Message Date
xiaoguangbin
791271c747 fix:增加交互分析 help弹窗打开pdf功能 2024-12-09 10:58:10 +08:00
xiaoguangbin
851603bb9f fix:解决gamma交互工具删除核素,重新打开还能显示核素的问题 2024-11-28 16:33:42 +08:00
2 changed files with 24 additions and 1 deletions

View File

@ -228,7 +228,7 @@ import { updateBaseLine } from '@/utils/WasmHelper'
import RectList from './components/RectList.vue' import RectList from './components/RectList.vue'
import { isNullOrUndefined } from '@/utils/util' import { isNullOrUndefined } from '@/utils/util'
import { findNearPeak, getLineData, transformPointListData } from '@/utils/sampleHelper' import { findNearPeak, getLineData, transformPointListData } from '@/utils/sampleHelper'
import { getSampleData } from '@/utils/SampleStore' import { getSampleData, updateSampleData } from '@/utils/SampleStore'
// //
const initialOption = { const initialOption = {
@ -1574,6 +1574,13 @@ export default {
const { identify, table } = result const { identify, table } = result
this.selectedTableItem.nuclides = identify this.selectedTableItem.nuclides = identify
this.list = table this.list = table
//
/** fix解决删除核素再次打开弹窗还能显示被删除的核素问题 20241128:xiao */
updateSampleData({
inputFileName: fileName,
key: 'peak',
data: table,
})
} else { } else {
this.$message.error(message) this.$message.error(message)
} }

View File

@ -1109,6 +1109,22 @@ export default {
// //
handleHelp() { handleHelp() {
let docPath = null
let apiBaseUrl = window._CONFIG['onlinePreviewDomainURL'] || "/jeecg-boot";
if(this.isGamma) {
docPath = `/armd-help/Gamma.pdf`;
} else if (this.isBeta) {
docPath = `/armd-help/Self-Beta-Gamma.pdf`;
} else if(this.isBetaGamma) {
docPath = `/armd-help/Beta-Gamma.pdf`;
}
if(!docPath) {
this.$message.warning('Please load an spectrum first!')
return ;
}
window.open(apiBaseUrl + docPath, '_blank');
console.log('%c [ handleHelp ]-221', 'font-size:13px; background:pink; color:#bf2c9f;') console.log('%c [ handleHelp ]-221', 'font-size:13px; background:pink; color:#bf2c9f;')
}, },