|
@@ -3,11 +3,11 @@
|
|
|
<el-form
|
|
|
ref="diaForm"
|
|
|
label-position="left"
|
|
|
- label-width="80px"
|
|
|
+ label-width="125px"
|
|
|
:model="form"
|
|
|
:rules="formRules"
|
|
|
>
|
|
|
- <el-form-item label="时间长度" prop="CalculateValue">
|
|
|
+ <el-form-item :label="$t('StatisticAnalysis.CrossVarietyChart.time_length')" prop="CalculateValue">
|
|
|
<el-input
|
|
|
v-model="form.CalculateValue"
|
|
|
style="width: 140px"
|
|
@@ -29,7 +29,7 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="X轴坐标" prop="TagX">
|
|
|
+ <el-form-item :label="$t('StatisticAnalysis.CrossVarietyChart.x_axis')" prop="TagX">
|
|
|
<el-select
|
|
|
v-model="form.TagX"
|
|
|
style="width: 240px"
|
|
@@ -44,7 +44,7 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="Y轴坐标" prop="TagY">
|
|
|
+ <el-form-item :label="$t('StatisticAnalysis.CrossVarietyChart.y_axis')" prop="TagY">
|
|
|
<el-select
|
|
|
v-model="form.TagY"
|
|
|
placeholder="请选择"
|
|
@@ -59,7 +59,7 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="图表名称" prop="ChartName">
|
|
|
+ <el-form-item :label="$t('StatisticAnalysis.CrossVarietyChart.chart_name')" prop="ChartName">
|
|
|
<el-input
|
|
|
v-model="form.ChartName"
|
|
|
style="width: 240px"
|
|
@@ -70,7 +70,7 @@
|
|
|
</el-form>
|
|
|
|
|
|
<div class="date-section">
|
|
|
- <label class="el-form-item__label">选择日期</label>
|
|
|
+ <label class="el-form-item__label">{{$t('StatisticAnalysis.CrossVarietyChart.selec_date')}}</label>
|
|
|
<ul>
|
|
|
<li class="date-li" v-for="(item,index) in form.DateConfigList" :key="index">
|
|
|
<el-select
|
|
@@ -100,7 +100,7 @@
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 -2 16 16" fill="none">
|
|
|
<path d="M5.23966 8.48046H7.51966V10.7605C7.51966 10.8265 7.57366 10.8805 7.63966 10.8805H8.35966C8.42566 10.8805 8.47966 10.8265 8.47966 10.7605V8.48046H10.7597C10.8257 8.48046 10.8797 8.42646 10.8797 8.36046V7.64046C10.8797 7.57446 10.8257 7.52046 10.7597 7.52046H8.47966V5.24046C8.47966 5.17446 8.42566 5.12046 8.35966 5.12046H7.63966C7.57366 5.12046 7.51966 5.17446 7.51966 5.24046V7.52046H5.23966C5.17366 7.52046 5.11966 7.57446 5.11966 7.64046V8.36046C5.11966 8.42646 5.17366 8.48046 5.23966 8.48046Z" fill="#0052D9"/>
|
|
|
<path d="M13.52 2H2.48C2.2145 2 2 2.2145 2 2.48V13.52C2 13.7855 2.2145 14 2.48 14H13.52C13.7855 14 14 13.7855 14 13.52V2.48C14 2.2145 13.7855 2 13.52 2ZM12.92 12.92H3.08V3.08H12.92V12.92Z" fill="#0052D9"/>
|
|
|
- </svg>添加日期
|
|
|
+ </svg>{{$t('StatisticAnalysis.CrossVarietyChart.add_date')}}
|
|
|
</el-button>
|
|
|
|
|
|
<i
|
|
@@ -125,6 +125,23 @@ export default {
|
|
|
type: Object
|
|
|
}
|
|
|
},
|
|
|
+ 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:'天'},
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ dateOptions(){
|
|
|
+ return [
|
|
|
+ { label: this.$t('StatisticAnalysis.CrossVarietyChart.latest_date')||'最新日期',val: 1 },
|
|
|
+ { label: this.$t('StatisticAnalysis.CrossVarietyChart.n_day_before')||'N天前',val: 2 },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
form: {
|
|
@@ -138,18 +155,18 @@ export default {
|
|
|
{ DateType: 1,Num: 0 },
|
|
|
],
|
|
|
},
|
|
|
- unitOpt: [
|
|
|
- { label: "年", val: "年" },
|
|
|
- { label: "季", val: "季" },
|
|
|
- { label: "月", val: "月" },
|
|
|
- { label: "周", val: "周" },
|
|
|
- { label: "天", val: "天" },
|
|
|
- ],
|
|
|
+ // unitOpt: [
|
|
|
+ // { label: "年", val: "年" },
|
|
|
+ // { label: "季", val: "季" },
|
|
|
+ // { label: "月", val: "月" },
|
|
|
+ // { label: "周", val: "周" },
|
|
|
+ // { label: "天", val: "天" },
|
|
|
+ // ],
|
|
|
|
|
|
- dateOptions: [
|
|
|
- { label: '最新日期',val: 1 },
|
|
|
- { label: 'N天前',val: 2 },
|
|
|
- ]
|
|
|
+ // dateOptions: [
|
|
|
+ // { label: '最新日期',val: 1 },
|
|
|
+ // { label: 'N天前',val: 2 },
|
|
|
+ // ]
|
|
|
};
|
|
|
},
|
|
|
methods: {
|