|
@@ -832,12 +832,22 @@ export default defineComponent({
|
|
|
}:{
|
|
|
0: 'lead'
|
|
|
}
|
|
|
+
|
|
|
+ const leadUnitEnMap:any = {
|
|
|
+ '年': 'year',
|
|
|
+ '季': 'quarter',
|
|
|
+ '月': 'month',
|
|
|
+ '周': 'week',
|
|
|
+ '天': 'day',
|
|
|
+ }
|
|
|
+ //英文领先单位转换
|
|
|
+ const edbLeadUnit = lang=='ch' ? LeadUnit : leadUnitEnMap[LeadUnit];
|
|
|
|
|
|
let axis_tag = axisLabelMap[IsAxis] || '';
|
|
|
//逆序拼接
|
|
|
let order_tag = orderLabelMap[Number(IsOrder)] ? `${axis_tag ? ',': ''}${orderLabelMap[Number(IsOrder)]}` : ''
|
|
|
//领先拼接
|
|
|
- let edb_tag = edbInfoMap[EdbInfoType] ? `${(axis_tag||order_tag) ? ',' : '' }${edbInfoMap[EdbInfoType]}${LeadValue}${LeadUnit}` : '';
|
|
|
+ let edb_tag = edbInfoMap[EdbInfoType] ? `${(axis_tag||order_tag) ? ',' : '' }${edbInfoMap[EdbInfoType]}${LeadValue}${edbLeadUnit}` : '';
|
|
|
|
|
|
return (axis_tag || order_tag || edb_tag) ? `(${axis_tag}${order_tag}${edb_tag})` : ''
|
|
|
}
|