This commit is contained in:
1340691923@qq.com 2022-03-11 11:47:08 +08:00
parent 8c31637246
commit 31e7a735c6

View File

@ -44,8 +44,7 @@
<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)">&nbsp;&nbsp;&nbsp;&nbsp;{{
scope.row.user_count }}</a>
<a style="color: #6bb8ff" @click="drillDown(scope.row.ui)">&nbsp;&nbsp;&nbsp;&nbsp;{{ scope.row.user_count }}</a>
<add-user-group :uid="scope.row.ui" />
</template>
</el-table-column>
@ -181,18 +180,13 @@
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],