beta 的 Save Results to File 功能调整
增加 save to Html 功能,及接口调试
This commit is contained in:
parent
9eeb9435b5
commit
4c84da88ea
|
@ -22,23 +22,23 @@ export default {
|
||||||
props: {
|
props: {
|
||||||
children: {
|
children: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => []
|
default: () => [],
|
||||||
},
|
},
|
||||||
width: {
|
width: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'auto'
|
default: 'auto',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleMenuClick(item) {
|
handleMenuClick(item) {
|
||||||
if (!item.children) {
|
// if (!item.children) {
|
||||||
this.$emit('menuClick', item)
|
this.$emit('menuClick', item)
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
handleSubMenuClick(item, child) {
|
handleSubMenuClick(item, child) {
|
||||||
this.$emit('submenuClick', { item, child })
|
this.$emit('submenuClick', { item, child })
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -637,7 +637,7 @@ export default {
|
||||||
})
|
})
|
||||||
|
|
||||||
// 处理当前的谱的reprocessing
|
// 处理当前的谱的reprocessing
|
||||||
if(inputFileName && sampleType !== 'B') {
|
if (inputFileName && sampleType !== 'B') {
|
||||||
this.$refs.gammaAnalysisRef.reProcessing(false)
|
this.$refs.gammaAnalysisRef.reProcessing(false)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -833,6 +833,23 @@ export default {
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
title: 'Save Results to File',
|
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',
|
title: 'Save Results to DB',
|
||||||
|
@ -844,6 +861,7 @@ export default {
|
||||||
{
|
{
|
||||||
title: 'Save All',
|
title: 'Save All',
|
||||||
key: 'all',
|
key: 'all',
|
||||||
|
show: this.isGamma,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
key: 'resultsToDB',
|
key: 'resultsToDB',
|
||||||
|
@ -869,13 +887,23 @@ export default {
|
||||||
on: {
|
on: {
|
||||||
menuClick: () => {
|
menuClick: () => {
|
||||||
console.log(this.isBetaGamma, this.isGamma)
|
console.log(this.isBetaGamma, this.isGamma)
|
||||||
|
if (this.isGamma) {
|
||||||
this.saveSettingModalVisible = true
|
this.saveSettingModalVisible = true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
submenuClick: ({ item, child }) => {
|
submenuClick: ({ item, child }) => {
|
||||||
|
console.log('item, child', item, child)
|
||||||
|
debugger
|
||||||
if (item.key == 'resultsToDB') {
|
if (item.key == 'resultsToDB') {
|
||||||
this.handleSaveResultsToDB(child.key)
|
this.handleSaveResultsToDB(child.key)
|
||||||
} else if (item.key == 'phdToFile') {
|
} else if (item.key == 'phdToFile') {
|
||||||
this.handleSavePHDToFile(child.key)
|
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