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

View File

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

View File

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

View File

@@ -2,6 +2,7 @@ import chartDataFormat from '@/components/charts/chartDataFormat'
import { getUUID, resetZIndex } from '@/components/common/js/common' import { getUUID, resetZIndex } from '@/components/common/js/common'
import { randomcolor, ColorReverse } from '@/components/common/js/radomcolor/randomcolor' import { randomcolor, ColorReverse } from '@/components/common/js/radomcolor/randomcolor'
import { isStat } from '@/components/chart/chart/tools' import { isStat } from '@/components/chart/chart/tools'
import lodash from 'lodash'
const rz = { const rz = {
methods: { methods: {
rz (e) { rz (e) {
@@ -318,7 +319,7 @@ export default {
this.change() this.change()
}, },
copyMapping (index) { 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() this.change()
}, },
removeMapping (index) { removeMapping (index) {

View File

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