|
@@ -489,7 +489,15 @@ const initWorker = () => {
|
|
|
datas:[
|
|
|
{
|
|
|
typeCode: '',
|
|
|
- datas: themeConfigCpt.value.chart.nodes.map(v => v.searchParam)
|
|
|
+ datas: themeConfigCpt.value.chart.nodes.map(v => {
|
|
|
+ const obj = {...v.searchParam}
|
|
|
+ if (obj.indexCode) {
|
|
|
+ obj.indexCode += '|' + v.id
|
|
|
+ } else if (obj.serviceId) {
|
|
|
+ obj.serviceId += '|' + v.id
|
|
|
+ }
|
|
|
+ return obj
|
|
|
+ })
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -601,9 +609,9 @@ const initWorker = () => {
|
|
|
edges: [...themeConfigCpt.value.chart.edges],
|
|
|
nodes: themeConfigCpt.value.chart.nodes.map(v => {
|
|
|
if (v.__type === 'inner_index') {
|
|
|
- v.num = json.datas.filter(s => s.indexCode == v.indexTableName)?.[0]?.data || 0
|
|
|
+ v.num = json.datas.filter(s => s.indexCode == (v.indexTableName + '|' + v.id))?.[0]?.data || 0
|
|
|
} else {
|
|
|
- v.num = json.datas.filter(s => s.serviceId == v.indexId)?.[0]?.data || 0
|
|
|
+ v.num = json.datas.filter(s => s.serviceId == (v.indexId + '|' + v.id))?.[0]?.data || 0
|
|
|
}
|
|
|
return v
|
|
|
})
|