fix: 修改BGLogViewer参数问题
This commit is contained in:
		
							parent
							
								
									1777d174e2
								
							
						
					
					
						commit
						7d2510e8a6
					
				| 
						 | 
				
			
			@ -25,7 +25,7 @@ export default {
 | 
			
		|||
    async getDetail() {
 | 
			
		||||
      try {
 | 
			
		||||
        this.isLoading = true
 | 
			
		||||
        const { dbName, sampleId, sampleFileName, gasFileName, detFileName, qcFileName } = this.newSampleData
 | 
			
		||||
        const { dbName, sampleId, inputFileName: sampleFileName, gasFileName, detFileName, qcFileName } = this.newSampleData
 | 
			
		||||
        const result = await getAction('/spectrumAnalysis/viewBGLogViewer', {
 | 
			
		||||
          dbName,
 | 
			
		||||
          sampleId,
 | 
			
		||||
| 
						 | 
				
			
			@ -34,7 +34,16 @@ export default {
 | 
			
		|||
          detFileName,
 | 
			
		||||
          qcFileName,
 | 
			
		||||
        })
 | 
			
		||||
        this.content = result
 | 
			
		||||
        if(typeof result == 'string') {
 | 
			
		||||
          this.content = result
 | 
			
		||||
        } else {
 | 
			
		||||
          const { success, result, message } = res
 | 
			
		||||
          if (success) {
 | 
			
		||||
            this.content = result
 | 
			
		||||
          } else {
 | 
			
		||||
            this.$message.error(message)
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      } catch (error) {
 | 
			
		||||
        console.error(error)
 | 
			
		||||
      } finally {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1300,7 +1300,9 @@ export default {
 | 
			
		|||
                  title: 'BG log viewer',
 | 
			
		||||
                  show: this.isBetaGamma,
 | 
			
		||||
                  handler: () => {
 | 
			
		||||
                    this.bgLogViewerVisible = true
 | 
			
		||||
                    if(this.params_toDB.savedAnalysisResult) {
 | 
			
		||||
                      this.bgLogViewerVisible = true
 | 
			
		||||
                    }
 | 
			
		||||
                  },
 | 
			
		||||
                },
 | 
			
		||||
                {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user