|
@@ -214,6 +214,32 @@ export default {
|
|
|
chartType() {
|
|
|
}
|
|
|
},
|
|
|
+ computed:{
|
|
|
+ labelMap(){
|
|
|
+ return new Map([
|
|
|
+ ['lineOptions',this.$t('SystemManage.ChartSet.opt_label01')],
|
|
|
+ ['scatterOptions',this.$t('SystemManage.ChartSet.opt_label02')],
|
|
|
+ ['legendOptions',this.$t('SystemManage.ChartSet.opt_label03')],
|
|
|
+ ['titleOptions',this.$t('SystemManage.ChartSet.opt_label04')],
|
|
|
+ ['markerOptions',this.$t('SystemManage.ChartSet.opt_label05')],
|
|
|
+ ['xAxisOptions',this.$t('SystemManage.ChartSet.opt_label06')],
|
|
|
+ ['yAxisOptions',this.$t('SystemManage.ChartSet.opt_label07')],
|
|
|
+ ['drawOption',this.$t('SystemManage.ChartSet.opt_label08')],
|
|
|
+ ])
|
|
|
+ },
|
|
|
+ typeLabelMap(){
|
|
|
+ return {
|
|
|
+ 1: {label:this.$t('SystemManage.ChartSet.opt_label01'),lineLabel: '条'},
|
|
|
+ 2: {label:this.$t('SystemManage.ChartSet.opt_label01'),lineLabel: '条'},
|
|
|
+ 4: {label:this.$t('SystemManage.ChartSet.opt_label09'),lineLabel: '根'},
|
|
|
+ 5: {label:this.$t('SystemManage.ChartSet.opt_label02'),lineLabel: '系列'},
|
|
|
+ 6: {label:this.$t('SystemManage.ChartSet.opt_label10'),lineLabel: '系列'},
|
|
|
+ 7: {label:this.$t('SystemManage.ChartSet.opt_label09'),lineLabel: '根'},
|
|
|
+ 10: {label:this.$t('SystemManage.ChartSet.opt_label02'),lineLabel: '系列'},
|
|
|
+ 11: {label:this.$t('SystemManage.ChartSet.opt_label01'),lineLabel: '条'},
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
predefineColors,
|
|
@@ -238,26 +264,26 @@ export default {
|
|
|
drawOption: defaultETAOptions.drawOption
|
|
|
},
|
|
|
lengendPositions: verticalPositions.filter(_ => _.value!=='middle'),
|
|
|
- typeLabelMap: {
|
|
|
- 1: {label:'线条设置',lineLabel: '条'},
|
|
|
- 2: {label:'线条设置',lineLabel: '条'},
|
|
|
- 4: {label:'柱形设置',lineLabel: '根'},
|
|
|
- 5: {label:'散点设置',lineLabel: '系列'},
|
|
|
- 6: {label:'线条、柱形设置',lineLabel: '系列'},
|
|
|
- 7: {label:'柱形设置',lineLabel: '根'},
|
|
|
- 10: {label:'散点设置',lineLabel: '系列'},
|
|
|
- 11: {label:'线条设置',lineLabel: '条'},
|
|
|
- },
|
|
|
- labelMap: new Map([
|
|
|
- ['lineOptions','线条设置'],
|
|
|
- ['scatterOptions','散点设置'],
|
|
|
- ['legendOptions','图例设置'],
|
|
|
- ['titleOptions','标题设置'],
|
|
|
- ['markerOptions','标记文字设置(来源,标识)'],
|
|
|
- ['xAxisOptions','横轴设置'],
|
|
|
- ['yAxisOptions','纵轴设置'],
|
|
|
- ['drawOption','绘图区设置'],
|
|
|
- ]),
|
|
|
+ // typeLabelMap: {
|
|
|
+ // 1: {label:'线条设置',lineLabel: '条'},
|
|
|
+ // 2: {label:'线条设置',lineLabel: '条'},
|
|
|
+ // 4: {label:'柱形设置',lineLabel: '根'},
|
|
|
+ // 5: {label:'散点设置',lineLabel: '系列'},
|
|
|
+ // 6: {label:'线条、柱形设置',lineLabel: '系列'},
|
|
|
+ // 7: {label:'柱形设置',lineLabel: '根'},
|
|
|
+ // 10: {label:'散点设置',lineLabel: '系列'},
|
|
|
+ // 11: {label:'线条设置',lineLabel: '条'},
|
|
|
+ // },
|
|
|
+ // labelMap: new Map([
|
|
|
+ // ['lineOptions','线条设置'],
|
|
|
+ // ['scatterOptions','散点设置'],
|
|
|
+ // ['legendOptions','图例设置'],
|
|
|
+ // ['titleOptions','标题设置'],
|
|
|
+ // ['markerOptions','标记文字设置(来源,标识)'],
|
|
|
+ // ['xAxisOptions','横轴设置'],
|
|
|
+ // ['yAxisOptions','纵轴设置'],
|
|
|
+ // ['drawOption','绘图区设置'],
|
|
|
+ // ]),
|
|
|
configOptions: []
|
|
|
}
|
|
|
},
|