RMSSOH增加查看详情,点击一条数据进入查看详情,解析文件内容并渲染
This commit is contained in:
		
							parent
							
								
									b6ba87c6ae
								
							
						
					
					
						commit
						ce5af3975e
					
				|  | @ -16,7 +16,6 @@ | |||
|         :list="dataSource" | ||||
|         :pagination="ipagination" | ||||
|         :loading="loading" | ||||
|         :canSelect="false" | ||||
|         @change="handleTableChange" | ||||
|         @detail="handleDetail" | ||||
|       > | ||||
|  | @ -137,10 +136,12 @@ export default { | |||
|       this.isFileDetail = flag | ||||
|     }, | ||||
|     handleDetail(record) { | ||||
|       console.log(record); | ||||
|       this.currSampleId = record.sohId | ||||
|       this.isFileDetail = true | ||||
|     }, | ||||
|     searchQueryData() { | ||||
|       this.loading = true | ||||
|       let days = compareDate(this.queryParam.startTime, this.queryParam.endTime) | ||||
|       if (days <= 10) {  | ||||
|         this.isImmediate = false | ||||
|  | @ -155,6 +156,7 @@ export default { | |||
|           pageSize: 10 | ||||
|         } | ||||
|         getAction(this.url.list, params).then((res) => { | ||||
|           this.loading = false | ||||
|           if (res.success) { | ||||
|             this.ipagination.current = res.result.current | ||||
|             this.ipagination.pageSize = res.result.size | ||||
|  |  | |||
|  | @ -141,6 +141,7 @@ export default { | |||
|       this.isFileDetail = true | ||||
|     }, | ||||
|     searchQueryData() { | ||||
|       this.loading = true | ||||
|       let days = compareDate(this.queryParam.startTime, this.queryParam.endTime) | ||||
|       if (days <= 10) {  | ||||
|         this.isImmediate = false | ||||
|  | @ -155,6 +156,7 @@ export default { | |||
|           pageSize: 10 | ||||
|         } | ||||
|         getAction(this.url.list, params).then((res) => { | ||||
|           this.loading = false | ||||
|           if (res.success) { | ||||
|             this.ipagination.current = res.result.current | ||||
|             this.ipagination.pageSize = res.result.size | ||||
|  |  | |||
|  | @ -141,8 +141,9 @@ export default { | |||
|       this.isFileDetail = true | ||||
|     }, | ||||
|     searchQueryData() { | ||||
|       this.loading = true | ||||
|       let days = compareDate(this.queryParam.startTime, this.queryParam.endTime) | ||||
|       // if (days <= 10) {  | ||||
|       if (days <= 10) {  | ||||
|         this.isImmediate = false | ||||
|         // this.queryParam = { | ||||
|         //   startTime: "2023-01-01", | ||||
|  | @ -155,6 +156,7 @@ export default { | |||
|           pageSize: 10 | ||||
|         } | ||||
|         getAction(this.url.list, params).then((res) => { | ||||
|           this.loading = false | ||||
|           if (res.success) { | ||||
|             this.ipagination.current = res.result.current | ||||
|             this.ipagination.pageSize = res.result.size | ||||
|  | @ -164,9 +166,9 @@ export default { | |||
|             this.$message.warning("This operation fails. Contact your system administrator") | ||||
|           } | ||||
|         }) | ||||
|       // } else { | ||||
|         // this.$message.info("Maximum timespan duration is 10 days. Please, change start or end date.") | ||||
|       // } | ||||
|       } else { | ||||
|         this.$message.info("Maximum timespan duration is 10 days. Please, change start or end date.") | ||||
|       } | ||||
|     }, | ||||
|     findStationList() { | ||||
|       getAction(this.url.findStationList, { menuName: '' }).then((res) => { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user