beta 的 Save Results to File 功能调整
增加 save to Html 功能,及接口调试
This commit is contained in:
parent
9eeb9435b5
commit
4c84da88ea
|
@ -6,7 +6,7 @@
|
|||
<div v-if="item.children" :key="index">
|
||||
<a-menu class="multi-level-menu-sub-menu">
|
||||
<template v-for="child in item.children">
|
||||
<a-menu-item v-if="child.show !== false" :key="child.key" @click="handleSubMenuClick(item, child)">
|
||||
<a-menu-item v-if="child.show !== false" :key="child.key" @click="handleSubMenuClick(item, child)">
|
||||
{{ child.title }}
|
||||
</a-menu-item>
|
||||
</template>
|
||||
|
@ -22,23 +22,23 @@ export default {
|
|||
props: {
|
||||
children: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
default: () => [],
|
||||
},
|
||||
width: {
|
||||
type: String,
|
||||
default: 'auto'
|
||||
}
|
||||
default: 'auto',
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
handleMenuClick(item) {
|
||||
if (!item.children) {
|
||||
this.$emit('menuClick', item)
|
||||
}
|
||||
// if (!item.children) {
|
||||
this.$emit('menuClick', item)
|
||||
// }
|
||||
},
|
||||
handleSubMenuClick(item, child) {
|
||||
this.$emit('submenuClick', { item, child })
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -637,7 +637,7 @@ export default {
|
|||
})
|
||||
|
||||
// 处理当前的谱的reprocessing
|
||||
if(inputFileName && sampleType !== 'B') {
|
||||
if (inputFileName && sampleType !== 'B') {
|
||||
this.$refs.gammaAnalysisRef.reProcessing(false)
|
||||
}
|
||||
},
|
||||
|
@ -833,6 +833,23 @@ export default {
|
|||
children: [
|
||||
{
|
||||
title: 'Save Results to File',
|
||||
children: [
|
||||
{
|
||||
title: 'Save Txt',
|
||||
key: 'saveTxt',
|
||||
show: this.isBetaGamma,
|
||||
},
|
||||
{
|
||||
title: 'Save Excel',
|
||||
key: 'saveExcel',
|
||||
show: this.isBetaGamma,
|
||||
},
|
||||
{
|
||||
title: 'Save Html',
|
||||
key: 'saveHtml',
|
||||
show: this.isBetaGamma,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Save Results to DB',
|
||||
|
@ -844,6 +861,7 @@ export default {
|
|||
{
|
||||
title: 'Save All',
|
||||
key: 'all',
|
||||
show: this.isGamma,
|
||||
},
|
||||
],
|
||||
key: 'resultsToDB',
|
||||
|
@ -869,13 +887,23 @@ export default {
|
|||
on: {
|
||||
menuClick: () => {
|
||||
console.log(this.isBetaGamma, this.isGamma)
|
||||
this.saveSettingModalVisible = true
|
||||
if (this.isGamma) {
|
||||
this.saveSettingModalVisible = true
|
||||
}
|
||||
},
|
||||
submenuClick: ({ item, child }) => {
|
||||
console.log('item, child', item, child)
|
||||
debugger
|
||||
if (item.key == 'resultsToDB') {
|
||||
this.handleSaveResultsToDB(child.key)
|
||||
} else if (item.key == 'phdToFile') {
|
||||
this.handleSavePHDToFile(child.key)
|
||||
} else if (child.key == 'saveTxt') {
|
||||
this.handleSaveResultsToFile('txt')
|
||||
} else if (child.key == 'saveExcel') {
|
||||
this.handleSaveResultsToFile('xls')
|
||||
} else if (child.key == 'saveHtml') {
|
||||
this.handleSaveResultsToFile('html')
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user