NEZ-1450 fix: bug 修改
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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}}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user