|
@@ -17,7 +17,8 @@
|
|
|
ref="averageFormRef"
|
|
|
label-position="right"
|
|
|
label-width="120px">
|
|
|
- <el-form-item label="倍数" prop="Multiple" v-if="averageType===3">
|
|
|
+ <!-- 倍数 -->
|
|
|
+ <el-form-item :label="$t('Chart.Detail.cal_range_times2')" prop="Multiple" v-if="averageType===3">
|
|
|
<el-input-number
|
|
|
v-model="averageForm.Multiple"
|
|
|
controls-position="right"
|
|
@@ -27,16 +28,17 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="Year"
|
|
|
:label="rangeLabelMap[averageType]" >
|
|
|
- <span>过去</span>
|
|
|
+ <span><!-- 过去 -->{{ $t('Chart.Detail.pass_year') }}</span>
|
|
|
<el-input-number
|
|
|
v-model="averageForm.Year"
|
|
|
controls-position="right"
|
|
|
:min="averageType===3?1:2" step-strictly
|
|
|
style="width: 90px"
|
|
|
/>
|
|
|
- <span>年</span>
|
|
|
+ <span><!-- 年 -->{{ $t('Edb.FreAll.year_min') }}</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="颜色及透明度" prop="Color">
|
|
|
+ <!-- 颜色 -->
|
|
|
+ <el-form-item :label="$t('EtaChartAddPage.right_edb_color_set')" prop="Color">
|
|
|
<el-color-picker
|
|
|
style="width: 90px"
|
|
|
v-model="averageForm.Color"
|
|
@@ -44,7 +46,8 @@
|
|
|
:predefine="predefineColors"
|
|
|
></el-color-picker>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="线型" prop="LineType" v-if="averageType===2">
|
|
|
+ <!-- 线型 -->
|
|
|
+ <el-form-item :label="$t('EtaChartAddPage.label_line_sty')" prop="LineType" v-if="averageType===2">
|
|
|
<el-select v-model="averageForm.LineType">
|
|
|
<el-option v-for="lineItem in lineStylesOpts"
|
|
|
:key="lineItem.value"
|
|
@@ -56,21 +59,22 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="粗细" prop="LineWidth" v-if="averageType===2">
|
|
|
+ <!-- 粗细 -->
|
|
|
+ <el-form-item :label="$t('Chart.Detail.size')" prop="LineWidth" v-if="averageType===2">
|
|
|
<el-input-number
|
|
|
v-model="averageForm.LineWidth"
|
|
|
controls-position="right"
|
|
|
:min="1" step-strictly
|
|
|
style="width: 90px"/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="图例" prop="Legend">
|
|
|
+ <el-form-item :label="$t('EtaChartAddPage.right_edb_legend')" prop="Legend">
|
|
|
<el-input v-model="averageForm.Legend" style="width: 300px;"/>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer" style="text-align: center;">
|
|
|
- <el-button @click="$emit('close')">取消</el-button>
|
|
|
- <el-button type="primary" @click="confirmPerson">保存</el-button>
|
|
|
+ <el-button @click="$emit('close')">{{$t('Dialog.cancel_btn')}}</el-button>
|
|
|
+ <el-button type="primary" @click="confirmPerson">{{$t('Dialog.confirm_save_btn')}}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</template>
|
|
@@ -96,17 +100,17 @@ export default {
|
|
|
computed:{
|
|
|
dialogTitle(){
|
|
|
const titleMap = {
|
|
|
- 1:'添加同期上下限',
|
|
|
- 2:'添加同期均线',
|
|
|
- 3:'添加同期标准差'
|
|
|
+ 1:/* '添加同期上下限' */`${this.$t('Table.add_btn')}${this.$i18n.locale!=='zh'?' ':''}${this.$t('EtaChartAddPage.limits_btn')}`,
|
|
|
+ 2:/* '添加同期均线' */`${this.$t('Table.add_btn')}${this.$i18n.locale!=='zh'?' ':''}${this.$t('EtaChartAddPage.avg_line_btn')}`,
|
|
|
+ 3:/* '添加同期标准差' */`${this.$t('Table.add_btn')}${this.$i18n.locale!=='zh'?' ':''}${this.$t('EtaChartAddPage.std_btn')}`
|
|
|
}
|
|
|
return titleMap[this.averageType]
|
|
|
},
|
|
|
rangeLabelMap(){
|
|
|
return {
|
|
|
- 1:'上下限取数范围',
|
|
|
- 2:'均线取数范围',
|
|
|
- 3:'取数范围'
|
|
|
+ 1:/* '上下限取数范围' */ this.$t('EtaChartAddPage.limit_range'),
|
|
|
+ 2:/* '均线取数范围' */ this.$t('EtaChartAddPage.average_range'),
|
|
|
+ 3:/* '取数范围' */ this.$t('EtaChartAddPage.std_range')
|
|
|
}
|
|
|
},
|
|
|
formRules(){ //方便英文翻译
|