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