NEZ-2024 fix:{{A.$labels}} 变量展示错误

This commit is contained in:
zhangyu
2022-07-14 13:59:52 +08:00
parent 6644b111bf
commit db7f526b1e
3 changed files with 6 additions and 2 deletions

View File

@@ -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
}) })

View File

@@ -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

View File

@@ -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