优化 智能路径
This commit is contained in:
		
							parent
							
								
									0b3c129df0
								
							
						
					
					
						commit
						8c31637246
					
				@ -44,7 +44,8 @@
 | 
			
		||||
 | 
			
		||||
                <el-table-column slot="operate" label="人数" width="100" align="center" sortable prop="user_count">
 | 
			
		||||
                  <template slot-scope="scope">
 | 
			
		||||
                    <a style="color: #6bb8ff" @click="drillDown(scope.row.ui)">    {{ scope.row.user_count }}</a>
 | 
			
		||||
                    <a style="color: #6bb8ff" @click="drillDown(scope.row.ui)">    {{
 | 
			
		||||
                      scope.row.user_count }}</a>
 | 
			
		||||
                    <add-user-group :uid="scope.row.ui"/>
 | 
			
		||||
                  </template>
 | 
			
		||||
                </el-table-column>
 | 
			
		||||
@ -180,12 +181,18 @@ export default {
 | 
			
		||||
        const eventArr = []
 | 
			
		||||
        const targetArr = []
 | 
			
		||||
        const eventSet = new Map()
 | 
			
		||||
        const source_target_map = {}
 | 
			
		||||
        for (const k in this.traceChartsRes) {
 | 
			
		||||
          const traceCharts = this.traceChartsRes[k]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
          if (source_target_map.hasOwnProperty(`${traceCharts['event'][1]}_${traceCharts['event'][0]}`)) {
 | 
			
		||||
            traceCharts['event'][1] = traceCharts['event'][1]+" "
 | 
			
		||||
          }
 | 
			
		||||
          eventSet.set(traceCharts['event'][0], 1)
 | 
			
		||||
          eventSet.set(traceCharts['event'][1], 1)
 | 
			
		||||
 | 
			
		||||
          source_target_map[`${traceCharts['event'][0]}_${traceCharts['event'][1]}`] = 1
 | 
			
		||||
          targetArr.push({
 | 
			
		||||
            source: traceCharts['event'][0],
 | 
			
		||||
            target: traceCharts['event'][1],
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user