ソースを参照

翻译补充补充

cxmo 11 ヶ月 前
コミット
f684eeabf5

+ 2 - 0
src/lang/modules/EtaChart/En.js

@@ -42,6 +42,8 @@ export default {
 
 
     //图例设置弹窗
     //图例设置弹窗
     legend_hint: 'By default, the data year of the latest date of the curve is used as the legend name. If you manually edit it to other formats, it will no longer be automatically updated.',
     legend_hint: 'By default, the data year of the latest date of the curve is used as the legend name. If you manually edit it to other formats, it will no longer be automatically updated.',
+    legend_placeholder:'Please enter a legend name',
+    legend_check_hint:'All legend names cannot be empty',
 
 
     //标示线区弹窗
     //标示线区弹窗
     add_plotline_btn: 'Add Marker Line',
     add_plotline_btn: 'Add Marker Line',

+ 2 - 0
src/lang/modules/EtaChart/Zh.js

@@ -42,6 +42,8 @@ export default {
 
 
     //图例设置弹窗
     //图例设置弹窗
     legend_hint: '默认取该曲线最新日期的数据年份作为图例名称,手动编辑为其他格式,则不再自动更新',
     legend_hint: '默认取该曲线最新日期的数据年份作为图例名称,手动编辑为其他格式,则不再自动更新',
+    legend_placeholder:'请输入图例名称',
+    legend_check_hint:'所有图例名称都不能为空',
 
 
     //标示线区弹窗
     //标示线区弹窗
     add_plotline_btn: '添加标识线',
     add_plotline_btn: '添加标识线',

+ 3 - 0
src/lang/modules/StatisticAnalysis/ChartRelevance.js

@@ -34,6 +34,7 @@ export const ChartRelevanceEn = {
     update_edb:'update',
     update_edb:'update',
     update_success:'Update success',
     update_success:'Update success',
     chart_save_as:'Save Chart As',
     chart_save_as:'Save Chart As',
+    check_value_hint:'Correlation calculation window must be ≥2* analysis period'
 };
 };
   
   
 /* 中文 */
 /* 中文 */
@@ -68,6 +69,8 @@ export const ChartRelevanceZh = {
     update_edb:'更新',
     update_edb:'更新',
     update_success:'更新成功',
     update_success:'更新成功',
     chart_save_as:'图表另存为',
     chart_save_as:'图表另存为',
+
+    check_value_hint:'相关性计算窗口必须≥2*分析周期'
 };
 };
   
   
 /**
 /**

+ 1 - 1
src/views/chartRelevance_manage/relevance/relevanceChartEditor.vue

@@ -588,7 +588,7 @@ export default {
       const { Correlation,RollingCorrelation } = this.chartInfo;
       const { Correlation,RollingCorrelation } = this.chartInfo;
       if(Correlation.CalculateValue*valueMap[Correlation.CalculateUnit] < Correlation.LeadValue*valueMap[Correlation.LeadUnit]*2) {
       if(Correlation.CalculateValue*valueMap[Correlation.CalculateUnit] < Correlation.LeadValue*valueMap[Correlation.LeadUnit]*2) {
         this.chartInfo.Correlation.CalculateValue = 0;
         this.chartInfo.Correlation.CalculateValue = 0;
-        this.$message.warning('相关性计算窗口必须≥2*分析周期')
+        this.$message.warning(/* '相关性计算窗口必须≥2*分析周期' */this.$t('StatisticAnalysis.ChartRelevance.check_value_hint'))
         checkBool = false
         checkBool = false
       }
       }
       // else if(RollingCorrelation[0].CalculateValue*valueMap[RollingCorrelation[0].CalculateUnit] >= Correlation.CalculateValue*valueMap[Correlation.CalculateUnit]) {
       // else if(RollingCorrelation[0].CalculateValue*valueMap[RollingCorrelation[0].CalculateUnit] >= Correlation.CalculateValue*valueMap[Correlation.CalculateUnit]) {

+ 2 - 2
src/views/dataEntry_manage/components/LegendEditDia.vue

@@ -11,7 +11,7 @@
     <div class="dialog-legend">
     <div class="dialog-legend">
       <div v-for="(item,index) in legendListCopy" :key="item.Name" class="legend-item">
       <div v-for="(item,index) in legendListCopy" :key="item.Name" class="legend-item">
         <div class="legend-item-color" :style="{backgroundColor:seasonColor[index]}"></div>
         <div class="legend-item-color" :style="{backgroundColor:seasonColor[index]}"></div>
-        <el-input v-model.trim="item.Value" placeholder="请输入图例名称" style="width: 295px;"></el-input>
+        <el-input v-model.trim="item.Value" :placeholder="this.$t('EtaChartAddPage.legend_placeholder')" style="width: 295px;"></el-input>
       </div>
       </div>
       <div class="legend-box-hint" v-html="$t('EtaChartAddPage.legend_hint')"></div>
       <div class="legend-box-hint" v-html="$t('EtaChartAddPage.legend_hint')"></div>
     </div>
     </div>
@@ -63,7 +63,7 @@ watch: {
 methods: {
 methods: {
   saveHandle() {
   saveHandle() {
     if(this.legendListCopy.some(item=> !item.Value)){
     if(this.legendListCopy.some(item=> !item.Value)){
-      this.$message.error("所有图例名称都不能为空")
+      this.$message.error(/* "所有图例名称都不能为空" */this.$t('EtaChartAddPage.legend_check_hint'))
       return
       return
     }
     }
     this.$emit('saveLegend',this.legendListCopy)
     this.$emit('saveLegend',this.legendListCopy)

+ 1 - 1
src/views/report_manage/cloudDisk.vue

@@ -447,7 +447,7 @@ import 'streamsaver/examples/zip-stream'
                   resolve()
                   resolve()
                 });  
                 });  
             }else{
             }else{
-              this.$message.error('浏览器不支持')
+              this.$message.error(/* '浏览器不支持' */this.$t('MsgPrompt.browser_not_support'))
               reject('浏览器不支持')
               reject('浏览器不支持')
             }
             }
           } catch (error) {
           } catch (error) {

+ 1 - 1
src/views/report_manage/editChapterReport.vue

@@ -646,7 +646,7 @@ export default {
     //预览
     //预览
     handlePreviewReport() {
     handlePreviewReport() {
       if (!this.aeForm.title) {
       if (!this.aeForm.title) {
-        this.$message.error("请输入标题");
+        this.$message.error(/* "请输入标题" */this.$t('ReportManage.ReportList.input_title_please'));
         return false;
         return false;
       }
       }
       if (!this.autoSaveFlag) {
       if (!this.autoSaveFlag) {