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