-
+
{{ operation.title }}
-
-
-
- {{ child.title }}
-
-
-
+
+
+
+
+ {{ item.title }}
+
+
+
+
@@ -46,9 +54,9 @@
-
+
Spectra
-
+
@@ -74,6 +82,7 @@ import QcFlags from './components/sub-operators/QcFlags.vue'
import GammaAnalysis from './gamma-analysis.vue'
import BetaGammaAnalysis from './beta-gamma-analysis.vue'
import Spectra from './components/sub-operators/Spectra.vue'
+import SpectraListInMenu from './components/SpectraListInMenu.vue'
// 分析类型
const ANALYZE_TYPE = {
@@ -90,24 +99,39 @@ export default {
GraphAssistance,
DetailedInfomation,
NuclearLibrary,
- Spectra
+ Spectra,
+ SpectraListInMenu
},
data() {
this.ANALYZE_TYPE = ANALYZE_TYPE
return {
- analysisType: ANALYZE_TYPE.BETA_GAMMA // 分析类型
+ analysisType: ANALYZE_TYPE.BETA_GAMMA, // 分析类型
+ spectraType: 'Sample Data',
+ spectraVisible: false,
+
+ spectraList: [
+ { id: 1, name: 'AUX01 003-20151223 1855 S FULL 40183.7.PHD' },
+ { id: 2, name: 'AUX02 003-20151223 1855 S FULL 40183.7.PHD' }
+ ]
}
},
methods: {
+ // 从数据库加载
handleLoadFromDb() {
console.log('%c [ handleLoadFromDb ]-46', 'font-size:13px; background:pink; color:#bf2c9f;')
},
+ // 从文件加载
handleLoadFromFile() {
console.log('%c [ handleLoadFromFile ]-46', 'font-size:13px; background:pink; color:#bf2c9f;')
},
+ // 清理全部
+ handleCleanAll() {
+ console.log('%c [ handleCleanAll ]-118', 'font-size:13px; background:pink; color:#bf2c9f;')
+ },
+
// peak info 点击左右方向
handlePeakInfoChange(direction) {
this.$refs.gammaAnalysisRef.moveMarkLine(direction)
@@ -125,12 +149,46 @@ export default {
title: 'SAMPLE',
children: [
{
- title: 'Load From DB',
- handler: this.handleLoadFromDb
+ type: 'a-menu',
+ children: [
+ {
+ type: 'a-menu-item',
+ title: 'Load From DB',
+ handler: this.handleLoadFromDb
+ },
+ {
+ type: 'a-menu-item',
+ title: 'Load From File',
+ handler: this.handleLoadFromFile
+ },
+ {
+ type: 'a-menu-item',
+ title: 'Clean All',
+ handler: this.handleCleanAll
+ }
+ ]
},
{
- title: 'Load From File',
- handler: this.handleLoadFromFile
+ type: 'a-divider',
+ attrs: {
+ style: {
+ marginTop: '5px',
+ marginBottom: '5px',
+ display: this.spectraList.length ? '' : 'none'
+ }
+ }
+ },
+ {
+ type: 'SpectraListInMenu',
+ attrs: {
+ list: this.spectraList
+ },
+ on: {
+ change: event => {
+ console.log('%c [ event ]-187', 'font-size:13px; background:pink; color:#bf2c9f;', event)
+ console.log('%c [ ]-188', 'font-size:13px; background:pink; color:#bf2c9f;', this)
+ }
+ }
}
]
},
@@ -138,12 +196,21 @@ export default {
title: 'SAVE',
children: [
{
- title: 'Load From DB',
- handler: this.handleLoadFromDb
- },
- {
- title: 'Load From File',
- handler: this.handleLoadFromFile
+ type: 'a-menu',
+ children: [
+ {
+ title: 'Load From DB',
+ handler: this.handleLoadFromDb
+ },
+ {
+ title: 'Load From File',
+ handler: this.handleLoadFromFile
+ },
+ {
+ title: 'Clean All',
+ handler: this.handleCleanAll
+ }
+ ]
}
]
},
@@ -151,12 +218,21 @@ export default {
title: 'ANALYZE',
children: [
{
- title: 'Load From DB',
- handler: this.handleLoadFromDb
- },
- {
- title: 'Load From File',
- handler: this.handleLoadFromFile
+ type: 'a-menu',
+ children: [
+ {
+ title: 'Load From DB',
+ handler: this.handleLoadFromDb
+ },
+ {
+ title: 'Load From File',
+ handler: this.handleLoadFromFile
+ },
+ {
+ title: 'Clean All',
+ handler: this.handleCleanAll
+ }
+ ]
}
]
},
@@ -164,12 +240,21 @@ export default {
title: 'CALIBRATION',
children: [
{
- title: 'Load From DB',
- handler: this.handleLoadFromDb
- },
- {
- title: 'Load From File',
- handler: this.handleLoadFromFile
+ type: 'a-menu',
+ children: [
+ {
+ title: 'Load From DB',
+ handler: this.handleLoadFromDb
+ },
+ {
+ title: 'Load From File',
+ handler: this.handleLoadFromFile
+ },
+ {
+ title: 'Clean All',
+ handler: this.handleCleanAll
+ }
+ ]
}
]
},
@@ -177,12 +262,21 @@ export default {
title: 'NUCLIDELIBRARY',
children: [
{
- title: 'Load From DB',
- handler: this.handleLoadFromDb
- },
- {
- title: 'Load From File',
- handler: this.handleLoadFromFile
+ type: 'a-menu',
+ children: [
+ {
+ title: 'Load From DB',
+ handler: this.handleLoadFromDb
+ },
+ {
+ title: 'Load From File',
+ handler: this.handleLoadFromFile
+ },
+ {
+ title: 'Clean All',
+ handler: this.handleCleanAll
+ }
+ ]
}
]
},
@@ -190,12 +284,21 @@ export default {
title: 'COMMENTS',
children: [
{
- title: 'Load From DB',
- handler: this.handleLoadFromDb
- },
- {
- title: 'Load From File',
- handler: this.handleLoadFromFile
+ type: 'a-menu',
+ children: [
+ {
+ title: 'Load From DB',
+ handler: this.handleLoadFromDb
+ },
+ {
+ title: 'Load From File',
+ handler: this.handleLoadFromFile
+ },
+ {
+ title: 'Clean All',
+ handler: this.handleCleanAll
+ }
+ ]
}
]
},
@@ -203,12 +306,21 @@ export default {
title: 'REPORTS',
children: [
{
- title: 'Load From DB',
- handler: this.handleLoadFromDb
- },
- {
- title: 'Load From File',
- handler: this.handleLoadFromFile
+ type: 'a-menu',
+ children: [
+ {
+ title: 'Load From DB',
+ handler: this.handleLoadFromDb
+ },
+ {
+ title: 'Load From File',
+ handler: this.handleLoadFromFile
+ },
+ {
+ title: 'Clean All',
+ handler: this.handleCleanAll
+ }
+ ]
}
]
},
@@ -216,12 +328,21 @@ export default {
title: 'LOG',
children: [
{
- title: 'Load From DB',
- handler: this.handleLoadFromDb
- },
- {
- title: 'Load From File',
- handler: this.handleLoadFromFile
+ type: 'a-menu',
+ children: [
+ {
+ title: 'Load From DB',
+ handler: this.handleLoadFromDb
+ },
+ {
+ title: 'Load From File',
+ handler: this.handleLoadFromFile
+ },
+ {
+ title: 'Clean All',
+ handler: this.handleCleanAll
+ }
+ ]
}
]
},
@@ -229,12 +350,21 @@ export default {
title: 'HELP',
children: [
{
- title: 'Load From DB',
- handler: this.handleLoadFromDb
- },
- {
- title: 'Load From File',
- handler: this.handleLoadFromFile
+ type: 'a-menu',
+ children: [
+ {
+ title: 'Load From DB',
+ handler: this.handleLoadFromDb
+ },
+ {
+ title: 'Load From File',
+ handler: this.handleLoadFromFile
+ },
+ {
+ title: 'Clean All',
+ handler: this.handleCleanAll
+ }
+ ]
}
]
}
@@ -343,3 +473,36 @@ export default {
// 主体部分结束
}
+