NEZ-1450 fix: bug 修改

This commit is contained in:
zhangyu
2021-12-24 18:39:31 +08:00
parent 807cb938a5
commit 98026c1e0f
5 changed files with 6 additions and 6 deletions

View File

@@ -13,8 +13,7 @@
:vertical-compact="true"
:use-css-transforms="true"
:style="{
'margin-top': layoutMargintop,
'padding-bottom': isGroup ? '0' : (200 + 'px')
'margin-top': layoutMargintop
}"
>
<grid-item

View File

@@ -169,7 +169,7 @@ export default {
}
}
if (item.type === 'range') {
if (value > item.from && value < item.to) {
if (value >= item.from && value < item.to) {
mapping = item
}
}

View File

@@ -541,7 +541,7 @@
{{item.value}}
</span>
<span v-if="item.type === 'range'">
{{item.from}} -> {{item.to}}
[{{item.from}}{{item.to}})
</span>
<span v-if="item.type === 'regx'">
{{item.regx}}

View File

@@ -2,6 +2,7 @@ import chartDataFormat from '@/components/charts/chartDataFormat'
import { getUUID, resetZIndex } from '@/components/common/js/common'
import { randomcolor, ColorReverse } from '@/components/common/js/radomcolor/randomcolor'
import { isStat } from '@/components/chart/chart/tools'
import lodash from 'lodash'
const rz = {
methods: {
rz (e) {
@@ -318,7 +319,7 @@ export default {
this.change()
},
copyMapping (index) {
this.chartConfig.param.valueMapping.push({ ...this.chartConfig.param.valueMapping[index] })
this.chartConfig.param.valueMapping.push(lodash.cloneDeep(this.chartConfig.param.valueMapping[index]))
this.change()
},
removeMapping (index) {

View File

@@ -365,7 +365,7 @@
{{item.value}}
</span>
<span v-if="item.type === 'range'">
{{item.from}} -> {{item.to}}
[{{item.from}}{{item.to}})
</span>
<span v-if="item.type === 'regx'">
{{item.regx}}