|
@@ -23,7 +23,7 @@
|
|
:model="chartInfo"
|
|
:model="chartInfo"
|
|
:rules="chartRules"
|
|
:rules="chartRules"
|
|
>
|
|
>
|
|
- <el-form-item class="label-left" label="指标A" prop="EdbInfoIdA">
|
|
|
|
|
|
+ <el-form-item class="label-left" :label="$t('StatisticAnalysis.ChartRelevance.edbTagA')" prop="EdbInfoIdA">
|
|
<selectTarget
|
|
<selectTarget
|
|
:defaultId="chartInfoData.EdbInfoList?chartInfoData.EdbInfoList[0].EdbInfoId:''"
|
|
:defaultId="chartInfoData.EdbInfoList?chartInfoData.EdbInfoList[0].EdbInfoId:''"
|
|
:defaultOpt="chartInfoData.EdbInfoList?[chartInfoData.EdbInfoList[0]]:[]"
|
|
:defaultOpt="chartInfoData.EdbInfoList?[chartInfoData.EdbInfoList[0]]:[]"
|
|
@@ -31,7 +31,7 @@
|
|
@select="handleSelectTargetA"
|
|
@select="handleSelectTargetA"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item class="label-left" label="指标B" prop="EdbInfoIdB">
|
|
|
|
|
|
+ <el-form-item class="label-left" :label="$t('StatisticAnalysis.ChartRelevance.edbTagB')" prop="EdbInfoIdB">
|
|
<selectTarget
|
|
<selectTarget
|
|
:defaultId="chartInfoData.EdbInfoList?chartInfoData.EdbInfoList[1].EdbInfoId:''"
|
|
:defaultId="chartInfoData.EdbInfoList?chartInfoData.EdbInfoList[1].EdbInfoId:''"
|
|
:defaultOpt="chartInfoData.EdbInfoList?[chartInfoData.EdbInfoList[1]]:[]"
|
|
:defaultOpt="chartInfoData.EdbInfoList?[chartInfoData.EdbInfoList[1]]:[]"
|
|
@@ -42,9 +42,9 @@
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
<div class="section">
|
|
<div class="section">
|
|
- <div>曲线图</div>
|
|
|
|
|
|
+ <div>{{$t('Chart.ChartType.graph_name')}}</div>
|
|
<div class="section-item">
|
|
<div class="section-item">
|
|
- <span style="flex-shrink:0;min-width:50px;">时间:</span>
|
|
|
|
|
|
+ <span style="flex-shrink:0;min-width:50px;">{{$t('StatisticAnalysis.ChartRelevance.time')}}:</span>
|
|
<el-select
|
|
<el-select
|
|
style="max-width: 120px;flex:1;"
|
|
style="max-width: 120px;flex:1;"
|
|
v-model="chartInfo.Curve.DateType"
|
|
v-model="chartInfo.Curve.DateType"
|
|
@@ -70,7 +70,7 @@
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div class="section-item">
|
|
<div class="section-item">
|
|
- <span style="flex-shrink:0;min-width:50px;">左轴:</span>
|
|
|
|
|
|
+ <span style="flex-shrink:0;min-width:50px;">{{$t('StatisticAnalysis.ChartRelevance.left_axis')}}:</span>
|
|
<el-input
|
|
<el-input
|
|
style="flex:2;margin-left:5px;margin-right:10px"
|
|
style="flex:2;margin-left:5px;margin-right:10px"
|
|
:step="1"
|
|
:step="1"
|
|
@@ -78,7 +78,7 @@
|
|
v-model="chartInfo.Curve.LeftMin"
|
|
v-model="chartInfo.Curve.LeftMin"
|
|
@change="val => { chartInfo.Curve.LeftMin=Number(val);changeSplineOption() }"
|
|
@change="val => { chartInfo.Curve.LeftMin=Number(val);changeSplineOption() }"
|
|
/>
|
|
/>
|
|
- <span>至</span>
|
|
|
|
|
|
+ <span>{{$t('StatisticAnalysis.ChartRelevance.to')}}</span>
|
|
<el-input
|
|
<el-input
|
|
style="flex:2;margin-left:5px;"
|
|
style="flex:2;margin-left:5px;"
|
|
:step="1"
|
|
:step="1"
|
|
@@ -88,7 +88,7 @@
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div class="section-item">
|
|
<div class="section-item">
|
|
- <span style="flex-shrink:0;min-width:50px;">右轴:</span>
|
|
|
|
|
|
+ <span style="flex-shrink:0;min-width:50px;">{{$t('StatisticAnalysis.ChartRelevance.right_axis')}}:</span>
|
|
<el-input
|
|
<el-input
|
|
style="flex:2;margin-left:5px;margin-right:10px"
|
|
style="flex:2;margin-left:5px;margin-right:10px"
|
|
:step="1"
|
|
:step="1"
|
|
@@ -96,7 +96,7 @@
|
|
v-model="chartInfo.Curve.RightMin"
|
|
v-model="chartInfo.Curve.RightMin"
|
|
@change="val => { chartInfo.Curve.RightMin=Number(val);changeSplineOption() }"
|
|
@change="val => { chartInfo.Curve.RightMin=Number(val);changeSplineOption() }"
|
|
/>
|
|
/>
|
|
- <span>至</span>
|
|
|
|
|
|
+ <span>{{$t('StatisticAnalysis.ChartRelevance.to')}}</span>
|
|
<el-input
|
|
<el-input
|
|
style="flex:2;margin-left:5px;"
|
|
style="flex:2;margin-left:5px;"
|
|
:step="1"
|
|
:step="1"
|
|
@@ -106,8 +106,8 @@
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
<div class="section-item">
|
|
<div class="section-item">
|
|
- <span style="flex-shrink:0;min-width:50px;">指标B:</span>
|
|
|
|
- <el-checkbox v-model="chartInfo.Curve.IsOrder" @change="getPreviewSplineChart">逆序</el-checkbox>
|
|
|
|
|
|
+ <span style="flex-shrink:0;min-width:50px;">{{$t('StatisticAnalysis.ChartRelevance.edbTagB')}}:</span>
|
|
|
|
+ <el-checkbox v-model="chartInfo.Curve.IsOrder" @change="getPreviewSplineChart">{{$t('StatisticAnalysis.ChartRelevance.reverse_sequence')}}</el-checkbox>
|
|
</div>
|
|
</div>
|
|
<div class="section-item" style="align-items: flex-start;margin-left:50px;">
|
|
<div class="section-item" style="align-items: flex-start;margin-left:50px;">
|
|
<el-radio
|
|
<el-radio
|
|
@@ -115,15 +115,15 @@
|
|
:label="true"
|
|
:label="true"
|
|
style="margin-right:10px;"
|
|
style="margin-right:10px;"
|
|
@change="getPreviewSplineChart"
|
|
@change="getPreviewSplineChart"
|
|
- >标准指标</el-radio>
|
|
|
|
|
|
+ >{{$t('StatisticAnalysis.ChartRelevance.standard_index')}}</el-radio>
|
|
<div>
|
|
<div>
|
|
<el-radio
|
|
<el-radio
|
|
v-model="chartInfo.Curve.EdbInfoType"
|
|
v-model="chartInfo.Curve.EdbInfoType"
|
|
:label="false"
|
|
:label="false"
|
|
@change="getPreviewSplineChart"
|
|
@change="getPreviewSplineChart"
|
|
- >领先指标</el-radio>
|
|
|
|
|
|
+ >{{$t('StatisticAnalysis.ChartRelevance.leading_indicator')}}</el-radio>
|
|
<div style="margin-top: 10px;" v-if="chartInfo.Curve.EdbInfoType===false">
|
|
<div style="margin-top: 10px;" v-if="chartInfo.Curve.EdbInfoType===false">
|
|
- 领先
|
|
|
|
|
|
+ {{$t('StatisticAnalysis.ChartRelevance.lead_tag')}}
|
|
<el-input
|
|
<el-input
|
|
style="width: 60px"
|
|
style="width: 60px"
|
|
size="mini"
|
|
size="mini"
|
|
@@ -151,7 +151,7 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="section">
|
|
<div class="section">
|
|
- <div>相关性
|
|
|
|
|
|
+ <div>{{$t('Chart.ChartType.correlation_name')}}
|
|
<!-- <el-tooltip
|
|
<!-- <el-tooltip
|
|
effect="dark"
|
|
effect="dark"
|
|
>
|
|
>
|
|
@@ -211,7 +211,7 @@
|
|
|
|
|
|
|
|
|
|
<div class="section" v-for="(item,index) in chartInfo.RollingCorrelation" :key="index">
|
|
<div class="section" v-for="(item,index) in chartInfo.RollingCorrelation" :key="index">
|
|
- <div>滚动相关性{{index+1}}
|
|
|
|
|
|
+ <div>{{$t('Chart.ChartType.rolling_correlation_name')}}{{index+1}}
|
|
<!-- <el-tooltip
|
|
<!-- <el-tooltip
|
|
effect="dark"
|
|
effect="dark"
|
|
>
|
|
>
|
|
@@ -415,6 +415,17 @@ export default {
|
|
}
|
|
}
|
|
next()
|
|
next()
|
|
},
|
|
},
|
|
|
|
+ computed:{
|
|
|
|
+ unitOpt(){
|
|
|
|
+ return [
|
|
|
|
+ {label:this.$t('Edb.FreAll.year_min'),val:'年'},
|
|
|
|
+ {label:this.$t('Edb.FreAll.quarter_min'),val:'季'},
|
|
|
|
+ {label:this.$t('Edb.FreAll.month_min'),val:'月'},
|
|
|
|
+ {label:this.$t('Edb.FreAll.week_min'),val:'周'},
|
|
|
|
+ {label:this.$t('Edb.FreAll.day_min'),val:'天'},
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
chart_code: this.$route.query.code || '',
|
|
chart_code: this.$route.query.code || '',
|
|
@@ -465,13 +476,13 @@ export default {
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
- unitOpt:[
|
|
|
|
- {label:'年',val:'年'},
|
|
|
|
- {label:'季',val:'季'},
|
|
|
|
- {label:'月',val:'月'},
|
|
|
|
- {label:'周',val:'周'},
|
|
|
|
- {label:'天',val:'天'},
|
|
|
|
- ],
|
|
|
|
|
|
+ // unitOpt:[
|
|
|
|
+ // {label:'年',val:'年'},
|
|
|
|
+ // {label:'季',val:'季'},
|
|
|
|
+ // {label:'月',val:'月'},
|
|
|
|
+ // {label:'周',val:'周'},
|
|
|
|
+ // {label:'天',val:'天'},
|
|
|
|
+ // ],
|
|
operationType:'preview',
|
|
operationType:'preview',
|
|
chartRules: {
|
|
chartRules: {
|
|
EdbInfoIdA:[
|
|
EdbInfoIdA:[
|