|
@@ -29,7 +29,7 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="百分位" prop="PercentType">
|
|
|
+ <el-form-item :label="$t('StatisticAnalysis.StatisticFeatureChart.percentile')" prop="PercentType">
|
|
|
<el-select
|
|
|
v-model="form.PercentType"
|
|
|
style="width: 240px"
|
|
@@ -179,8 +179,27 @@ export default {
|
|
|
return [
|
|
|
{ label: this.$t('StatisticAnalysis.CrossVarietyChart.latest_date')||'最新日期',val: 1 },
|
|
|
{ label: this.$t('StatisticAnalysis.CrossVarietyChart.n_day_before')||'N天前',val: 2 },
|
|
|
- { label: '固定日期',val: 3 },
|
|
|
+ { label: this.$t('StatisticAnalysis.CrossVarietyChart.fixed_date')||'固定日期',val: 3 },
|
|
|
]
|
|
|
+ },
|
|
|
+ percentOptions(){
|
|
|
+ return [
|
|
|
+ { label: this.$t('StatisticAnalysis.StatisticFeatureChart.data_count')||'数据个数',val: 1 },
|
|
|
+ { label: this.$t('StatisticAnalysis.StatisticFeatureChart.data_area')||'数据区间',val: 0 },
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ tips(){
|
|
|
+ if(this.$i18n.locale == 'zh'){
|
|
|
+ return {
|
|
|
+ 'percent':`1、数据个数百分位算法:数据区间第一个(较远日期)和最后一个数据点(较近日期)分别为 (T1,S1),(T2,S2),T代表时间,S代表对应的值。个数百分位=(n-1)/(N-1) ,N=1时不计算, N=T1到T2时间段指标数据个数,n=小于等于S2的数据个数。<br>
|
|
|
+ 2、数据区间百分位算法:对所选时间范围内的数据,取最大值Max,最小值Min,计算Max-Min,百分位=(现值-Min)/(Max-Min),Max=Min时不计算`
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ return {
|
|
|
+ 'percent':`1. Data Count Percentile Algorithm: The first (earlier date) and last data points (more recent date) in the data interval are (T1, S1) and (T2, S2), respectively. T represents time. S represents the corresponding value; N = the number of indicator data points from T1 to T2. n = the number of data points less than or equal to S2. Count Percentile = (n-1) / (N-1), do not calculate when N=1.<br>
|
|
|
+ 2. Data Range Percentile Algorithm: For the selected time range, take the maximum value Max and minimum value Min, calculate Max-Min, and then percentile = (current value - Min) / (Max - Min), do not calculate when Max=Min.`
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
@@ -210,14 +229,14 @@ export default {
|
|
|
// { label: 'N天前',val: 2 },
|
|
|
// ]
|
|
|
|
|
|
- percentOptions: [
|
|
|
- { label: '数据个数',val: 1 },
|
|
|
- { label: '数据区间',val: 0 },
|
|
|
- ],
|
|
|
- tips: {
|
|
|
- 'percent':`1、数据个数百分位算法:数据区间第一个(较远日期)和最后一个数据点(较近日期)分别为 (T1,S1),(T2,S2)。T代表时间。S代表对应的值,N=T1到T2时间段指标数据个数。n=小于等于S2的数据个数。个数百分位=(n-1)/(N-1) ,N=1时不计算。<br>
|
|
|
- 2、数据区间百分位算法:对所选时间范围内的数据,取最大值Max,最小值Min,计算Max-Min,百分位=(现值-Min)/(Max-Min),Max=Min时不计算`
|
|
|
- }
|
|
|
+ // percentOptions: [
|
|
|
+ // { label: '数据个数',val: 1 },
|
|
|
+ // { label: '数据区间',val: 0 },
|
|
|
+ // ],
|
|
|
+ // tips: {
|
|
|
+ // 'percent':`1、数据个数百分位算法:数据区间第一个(较远日期)和最后一个数据点(较近日期)分别为 (T1,S1),(T2,S2)。T代表时间。S代表对应的值,N=T1到T2时间段指标数据个数。n=小于等于S2的数据个数。个数百分位=(n-1)/(N-1) ,N=1时不计算。<br>
|
|
|
+ // 2、数据区间百分位算法:对所选时间范围内的数据,取最大值Max,最小值Min,计算Max-Min,百分位=(现值-Min)/(Max-Min),Max=Min时不计算`
|
|
|
+ // }
|
|
|
};
|
|
|
},
|
|
|
methods: {
|