fix: 获取曲线图数据接口增加status参数
This commit is contained in:
		
							parent
							
								
									56eb07ec2b
								
							
						
					
					
						commit
						dda6b9fb8e
					
				|  | @ -308,7 +308,7 @@ export default { | |||
|     async getSampleDetail() { | ||||
|       this.spectraType = this.SampleType[0].value | ||||
| 
 | ||||
|       const { dbName, sampleId, inputFileName, analyst } = this.sample | ||||
|       const { dbName, sampleId, inputFileName, analyst, status } = this.sample | ||||
|       try { | ||||
|         this.cancelLastRequest() | ||||
|         this.isLoading = true | ||||
|  | @ -319,6 +319,7 @@ export default { | |||
|             dbName, | ||||
|             sampleId, | ||||
|             analyst, | ||||
|             status | ||||
|           }, | ||||
|           cancelToken | ||||
|         ) | ||||
|  |  | |||
|  | @ -523,7 +523,7 @@ export default { | |||
| 
 | ||||
|     // 获取样品详情 | ||||
|     async getSampleDetail() { | ||||
|       const { dbName, sampleId, analyst } = this.sample | ||||
|       const { dbName, sampleId, analyst, status } = this.sample | ||||
|       try { | ||||
|         // const { success, result, message } = Response | ||||
|         this.cancelLastRequest() | ||||
|  | @ -536,6 +536,7 @@ export default { | |||
|             dbName, | ||||
|             sampleId, | ||||
|             analyst, | ||||
|             status | ||||
|           }, | ||||
|           cancelToken | ||||
|         ) | ||||
|  |  | |||
|  | @ -578,19 +578,20 @@ export default { | |||
|         .filter( | ||||
|           ({ sampleType, inputFileName }) => sampleType !== 'B' && inputFileName !== this.sampleData.inputFileName | ||||
|         ) | ||||
|         .forEach(({ inputFileName: fileName, dbName, sampleId, analyst }) => { | ||||
|         .forEach(({ inputFileName: fileName, dbName, sampleId, analyst, status }) => { | ||||
|           const params = { | ||||
|             sampleId, | ||||
|             dbName, | ||||
|             fileName, | ||||
|             analyst, | ||||
|             status | ||||
|           } | ||||
|           getAction('/gamma/initValue', params) | ||||
|         }) | ||||
|       willAddList | ||||
|         .filter(({ sampleType, inputFileName }) => sampleType == 'B' && inputFileName !== this.sampleData.inputFileName) | ||||
|         .forEach( | ||||
|           ({ inputFileName: sampleFileName, gasFileName, detFileName, qcFileName, dbName, sampleId, analyst }) => { | ||||
|           ({ inputFileName: sampleFileName, gasFileName, detFileName, qcFileName, dbName, sampleId, analyst, status }) => { | ||||
|             const params = { | ||||
|               sampleId, | ||||
|               dbName, | ||||
|  | @ -599,6 +600,7 @@ export default { | |||
|               gasFileName, | ||||
|               detFileName, | ||||
|               qcFileName, | ||||
|               status | ||||
|             } | ||||
|             getAction('/spectrumAnalysis/initValue', params) | ||||
|           } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 xiaoguangbin
						xiaoguangbin