fix: antv组合图插件 数值格式没有清除上一个指标的设置

This commit is contained in:
ulleo 2023-11-16 14:25:21 +08:00
parent a248312061
commit 48199eb271
4 changed files with 16 additions and 6 deletions

View File

@ -1,8 +1,8 @@
#!/bin/sh
mvn clean package
cp view-chartmix-backend/target/view-chartmix-backend-1.18.12.jar .
cp view-chartmix-backend/target/view-chartmix-backend-1.18.13.jar .
zip -r chartmix.zip ./view-chartmix-backend-1.18.12.jar ./plugin.json
zip -r chartmix.zip ./view-chartmix-backend-1.18.13.jar ./plugin.json
rm -f ./view-chartmix-backend-1.18.12.jar
rm -f ./view-chartmix-backend-1.18.13.jar

View File

@ -5,7 +5,7 @@
"cost": 0,
"category": "view",
"descript": "AntV G2Plot 组合图插件",
"version": "1.18.11",
"version": "1.18.13",
"creator": "DATAEASE",
"moduleName": "view-chartmix-backend",
"require": "1.18.11",

View File

@ -152,9 +152,10 @@
</template>
<script>
import {compareItem} from '@/utils/compare'
import {compareItem} from '../../utils/compare'
import {getItemType, getOriginFieldName, resetValueFormatter, quotaViews} from './utils'
import FieldErrorTips from './FieldErrorTips'
import {formatterItem} from "../../utils/map";
export default {
name: 'QuotaExtItem',
@ -188,6 +189,7 @@ export default {
data() {
return {
compareItem: compareItem,
formatterItem: formatterItem,
disableEditCompare: false,
tagType: 'success',
quotaViews: quotaViews
@ -216,6 +218,9 @@ export default {
if (!this.item.compareCalc) {
this.item.compareCalc = JSON.parse(JSON.stringify(this.compareItem))
}
if (!this.item.formatterCfg) {
this.item.formatterCfg = JSON.parse(JSON.stringify(this.formatterItem))
}
},
isEnableCompare() {
let xAxis = null

View File

@ -152,9 +152,10 @@
</template>
<script>
import {compareItem} from '@/utils/compare'
import {compareItem} from '../../utils/compare'
import {getItemType, getOriginFieldName, resetValueFormatter, quotaViews} from './utils'
import FieldErrorTips from './FieldErrorTips'
import {formatterItem} from "../../utils/map";
export default {
name: 'QuotaItem',
@ -188,6 +189,7 @@ export default {
data() {
return {
compareItem: compareItem,
formatterItem: formatterItem,
disableEditCompare: false,
tagType: 'success',
quotaViews: quotaViews
@ -213,6 +215,9 @@ export default {
if (!this.item.compareCalc) {
this.item.compareCalc = JSON.parse(JSON.stringify(this.compareItem))
}
if (!this.item.formatterCfg) {
this.item.formatterCfg = JSON.parse(JSON.stringify(this.formatterItem))
}
},
isEnableCompare() {
let xAxis = null