fix: 打开后选中table中第一条数据
This commit is contained in:
		
							parent
							
								
									570ac48c5d
								
							
						
					
					
						commit
						0a9efad3ac
					
				| 
						 | 
				
			
			@ -559,16 +559,21 @@ export default {
 | 
			
		|||
      this.opts.notMerge = false
 | 
			
		||||
      this.isFitting = false
 | 
			
		||||
      this.replotNeeded = false
 | 
			
		||||
      this.selectedTableItem = null
 | 
			
		||||
      this.$nextTick(() => {
 | 
			
		||||
        this.option.brush = { toolbox: [] }
 | 
			
		||||
        this.selectedKeys = []
 | 
			
		||||
        const firstLine = this.list[0]
 | 
			
		||||
        if(firstLine) {
 | 
			
		||||
          this.handleTableRowClick(firstLine)
 | 
			
		||||
          this.selectedKeys = [firstLine.index]
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
      this.clearRect()
 | 
			
		||||
      this.handleResetChart()
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    beforeModalOpen() {
 | 
			
		||||
      this.getInfo()
 | 
			
		||||
    async beforeModalOpen() {
 | 
			
		||||
      await this.getInfo()
 | 
			
		||||
      this.reset()
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user