NEZ-2024 fix:{{A.$labels}} 变量展示错误
This commit is contained in:
@@ -211,6 +211,9 @@ export default {
|
|||||||
if (label.indexOf('$value') !== -1) {
|
if (label.indexOf('$value') !== -1) {
|
||||||
value = chartDataFormat.getUnit(column.unit ? column.unit : 2).compute(value, null, -1, 2)
|
value = chartDataFormat.getUnit(column.unit ? column.unit : 2).compute(value, null, -1, 2)
|
||||||
}
|
}
|
||||||
|
if (!((typeof value) == 'string' && value.constructor == String)) {
|
||||||
|
value = JSON.stringify(lodash.get(params, label))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return value || ''
|
return value || ''
|
||||||
})
|
})
|
||||||
@@ -238,6 +241,9 @@ export default {
|
|||||||
let value = null
|
let value = null
|
||||||
if (lodash.get(params, label)) {
|
if (lodash.get(params, label)) {
|
||||||
value = lodash.get(params, label)
|
value = lodash.get(params, label)
|
||||||
|
if (!((typeof value) == 'string' && value.constructor == String)) {
|
||||||
|
value = JSON.stringify(lodash.get(params, label))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return value || label
|
return value || label
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -2986,7 +2986,6 @@ const Topology = /** @class */ (function () {
|
|||||||
}
|
}
|
||||||
this.cache = null
|
this.cache = null
|
||||||
this.data = null
|
this.data = null
|
||||||
console.log(this.options)
|
|
||||||
this.options.on = null
|
this.options.on = null
|
||||||
window.topology = null
|
window.topology = null
|
||||||
this.activeLayer = null
|
this.activeLayer = null
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ const Point = /** @class */ (function () {
|
|||||||
return Point
|
return Point
|
||||||
}())
|
}())
|
||||||
export { Point }
|
export { Point }
|
||||||
console.log(132123132123)
|
|
||||||
window.topologyPoint = Point
|
window.topologyPoint = Point
|
||||||
window.Le5leTopologyPoint = Point
|
window.Le5leTopologyPoint = Point
|
||||||
// # sourceMappingURL=point.js.map
|
// # sourceMappingURL=point.js.map
|
||||||
|
|||||||
Reference in New Issue
Block a user