beta 模块 view ARR 和 Automatic Analysis Log 增加按钮权限,及提示信息

This commit is contained in:
任珮宇 2023-10-17 15:15:42 +08:00
parent 83d3da81ad
commit f0dc116793

View File

@ -794,7 +794,7 @@ export default {
key: 'all', key: 'all',
}, },
], ],
key: 'resultsToDB' key: 'resultsToDB',
}, },
{ {
title: 'Save PHD to File', title: 'Save PHD to File',
@ -808,7 +808,7 @@ export default {
key: 'all', key: 'all',
}, },
], ],
key: 'phdToFile' key: 'phdToFile',
}, },
], ],
width: '170px', width: '170px',
@ -1077,12 +1077,16 @@ export default {
{ {
type: 'a-menu-item', type: 'a-menu-item',
title: 'View ARR', title: 'View ARR',
show: this.isBetaGamma,
handler: () => { handler: () => {
if (this.newSampleData.sampleId) {
this.arrOrRRRModalVisible = true this.arrOrRRRModalVisible = true
this.arrOrRRRModalExtraData = {} this.arrOrRRRModalExtraData = {}
this.arrOrRRRModalType = 3 this.arrOrRRRModalType = 3
} else {
this.$message.warning("The file isn't existed.")
}
}, },
show: this.isBetaGamma,
}, },
{ {
type: 'a-menu-item', type: 'a-menu-item',
@ -1141,16 +1145,13 @@ export default {
title: 'Automatic Analysis Log', title: 'Automatic Analysis Log',
show: this.isBetaGamma || this.isGamma, show: this.isBetaGamma || this.isGamma,
handler: () => { handler: () => {
if (this.isGamma) { if (this.isBetaGamma || this.isGamma) {
if (this.newSampleData.sampleId) { if (this.newSampleData.sampleId) {
this.autoAnalysisMogModalType = this.isGamma ? 1 : this.isBetaGamma ? 2 : 1 this.autoAnalysisMogModalType = this.isGamma ? 1 : this.isBetaGamma ? 2 : 1
this.autoAnalysisMogModalVisible = true this.autoAnalysisMogModalVisible = true
} else { } else {
this.$message.warning("The file isn't existed.") this.$message.warning("The file isn't existed.")
} }
} else if (this.isBetaGamma) {
this.autoAnalysisMogModalType = this.isGamma ? 1 : this.isBetaGamma ? 2 : 1
this.autoAnalysisMogModalVisible = true
} }
}, },
}, },