|
@@ -200,7 +200,7 @@ const themeConfigCpt = computed(() => {
|
|
|
if (item.indexCondition) {
|
|
|
const obj: any = {}
|
|
|
JSON.parse(item.indexCondition).forEach(s => {
|
|
|
- obj[s.indexParam] = route.query[s.themeParam]
|
|
|
+ obj[s.indexParam] = route.query[s.themeParam] || ''
|
|
|
})
|
|
|
param.serviceMap = obj
|
|
|
}
|
|
@@ -546,9 +546,9 @@ const initWS = () => {
|
|
|
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)?.[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)?.[0]?.data || 0
|
|
|
}
|
|
|
return v
|
|
|
})
|