浏览代码

Merge branch 'lang_dev' into lang_db

bding 1 年之前
父节点
当前提交
291a1cc80b

+ 0 - 4
src/lang/modules/EtaChart/commonLang.js

@@ -130,10 +130,6 @@ export default {
       zh:'删除后该图表将不能再引用,确认删除吗?',
       en:'After deletion, this chart will no longer be referenced. Are you sure to delete it?'
     },
-    graph_name:{
-      zh:'曲线图',
-      en:'graph'
-    },
 
 
   },

+ 47 - 0
src/lang/modules/StatisticAnalysis/CrossVarietyChart.js

@@ -0,0 +1,47 @@
+/**
+ * 统计分析-跨品种分析
+ */
+
+/* 英文 */
+export const CrossVarietyChartEn = {
+    select_variety:'Select variety',
+    variety_management:'Variety management',
+    placeholder01:'Please enter name',
+    label_config:'Label configuration',
+    label_manage:'Label management',
+    del_msg:'Are you sure to delete this',
+    label_name:'Label',
+    variety_name:'Variety',
+    time_length:'Length of time',
+    x_axis:'X-axis coordinate',
+    y_axis:'Y-axis coordinate',
+    chart_name:'Chart name',
+    selec_date:'Select date',
+    add_date:'Add date',
+    latest_date:'Latest date',
+    n_day_before:'N days ago',
+};
+  
+/* 中文 */
+export const CrossVarietyChartZh = {
+    select_variety:'选择品种',
+    variety_management:'品种管理',
+    placeholder01:'请输入名称',
+    label_config:'标签配置',
+    label_manage:'标签管理',
+    del_msg:'是否确认删除该',
+    label_name:'标签',
+    variety_name:'品种',
+    time_length:'时间长度',
+    x_axis:'X轴坐标',
+    y_axis:'Y轴坐标',
+    chart_name:'图表名称',
+    selec_date:'选择日期',
+    add_date:'添加日期',
+    latest_date:'最新日期',
+    n_day_before:'N天前',
+};
+  
+/**
+* $t('StatisticAnalysis.CrossVarietyChart.XXX')
+*/

+ 6 - 1
src/lang/modules/StatisticAnalysis/IndexEn.js

@@ -1,11 +1,16 @@
 
 import { ChartRelevanceEn } from "./ChartRelevance";
+import { CrossVarietyChartEn } from "./CrossVarietyChart";
 import { FittingEquationChartEn } from "./FittingEquationChart";
+import { StatisticFeatureChartEn } from "./statisticFeatureChart";
+
 
 export default {
   // 统计分析
   StatisticAnalysis: {
     ChartRelevance:ChartRelevanceEn,
-    FittingEquationChart:FittingEquationChartEn
+    FittingEquationChart:FittingEquationChartEn,
+    StatisticFeatureChart:StatisticFeatureChartEn,
+    CrossVarietyChart:CrossVarietyChartEn
   },
 };

+ 5 - 1
src/lang/modules/StatisticAnalysis/IndexZh.js

@@ -1,11 +1,15 @@
 import { ChartRelevanceZh } from "./ChartRelevance";
+import { CrossVarietyChartZh } from "./CrossVarietyChart";
 import { FittingEquationChartZh } from "./FittingEquationChart";
+import { StatisticFeatureChartZh } from "./statisticFeatureChart";
 
 
 export default {
     // 统计分析
     StatisticAnalysis: {
       ChartRelevance:ChartRelevanceZh,
-      FittingEquationChart:FittingEquationChartZh
+      FittingEquationChart:FittingEquationChartZh,
+      StatisticFeatureChart:StatisticFeatureChartZh,
+      CrossVarietyChart:CrossVarietyChartZh
     },
   };

+ 37 - 0
src/lang/modules/StatisticAnalysis/StatisticFeatureChart.js

@@ -0,0 +1,37 @@
+/**
+ * 统计分析-统计特征
+ */
+
+/* 英文 */
+export const StatisticFeatureChartEn = {
+    limit_name:'up and dowm limited',
+    select_edb:'Select index',
+    standard_deviation:'Standard deviation',
+    rolling_period:'Rolling period',
+    percentile:'percentile',
+    time_length:'Length of time',
+    frequency_distribution:'Frequency distribution',
+    time_period:'Time period',
+    frequency_band_number:'Frequency band number',
+    near_month:'Last {num} months',
+    near_year:'Last {num} years',
+};
+  
+/* 中文 */
+export const StatisticFeatureChartZh = {
+    limit_name:'上下限',
+    select_edb:'选择指标',
+    standard_deviation:'标准差',
+    rolling_period:'滚动期数',
+    percentile:'百分位',
+    time_length:'时间长度',
+    frequency_distribution:'频率分布',
+    time_period:'时间段',
+    frequency_band_number:'频段数',
+    near_month:'最近{num}月',
+    near_year:'最近{num}年',
+};
+  
+/**
+* $t('StatisticAnalysis.StatisticFeatureChart.XXX')
+*/

+ 35 - 0
src/views/chartRelevance_manage/components/explainText.js

@@ -48,6 +48,7 @@ export const fittingEquationListTextArrEn = [
     <p>3、and draw the curves of the elastic coefficient a, intercept b, and correlation coefficient R² within the selected time range respectively</p>`,
 ]
 
+// 统计特征
 export const statisticFeatureListTextArr = [
     `<p style='font-weight:bold;'>标准差处理逻辑:</p>
     <p>计算所选时间范围内数据的样本标准差s,s=sqrt(((x1-x)^2 (x2-x)^2 ......(xn-x)^2)/(n-1)),n表示数据个数</p>`,
@@ -59,6 +60,17 @@ export const statisticFeatureListTextArr = [
     <p>3、频率=落在某区间数据个数/所选时间段内数据总个数;</p>
     <p>4、累计频率为从最小值所在区间对应的频率开始累加;</p>`
 ]
+export const statisticFeatureListTextArrEn = [
+    `<p style='font-weight:bold;'>Standard Deviation Processing Logic:</p>
+    <p>Calculate the sample standard deviation s for the data within the selected time range, where s = sqrt(((x1-x)^2 + (x2-x)^2 + ... +(xn-x)^2)/(n-1)), and n represents the number of data points.</p>`,
+    `<p style='font-weight:bold;'>Percentile Processing Logic:</p>
+    <p>For the data within the selected time range, find the maximum value Max and minimum value Min, compute Max-Min, and calculate the percentile as (current value - Min) / (Max - Min). If Max=Min, do not compute.</p>`,
+    `<p style='font-weight:bold;'>频率分布处理逻辑:</p>
+    <p>1、在所选时间范围内,取最大值和最小值;</p>
+    <p>2、根据频段数划分多个间距相同的区间(左闭右开,最后一个区间为左闭右闭),统计数据值落在每个区间的数据个数;</p>
+    <p>3、频率=落在某区间数据个数/所选时间段内数据总个数;</p>
+    <p>4、累计频率为从最小值所在区间对应的频率开始累加;</p>`
+]
 
 //跨品种分析
 export const crossVarietyAnalisisTextArr = [
@@ -82,4 +94,27 @@ export const crossVarietyAnalisisTextArr = [
     <p>(4)Y轴坐标:选择标签;</p>
     <p>(5)图表名称:X轴坐标和Y轴坐标的拼接。</p>`
 
+]
+
+export const crossVarietyAnalisisTextArrEn = [
+    `<p style="font-weight:bold;">I. Processing Logic</p>
+    <p>1. Percentile Calculation Formula: For the selected time range, determine the maximum value (Max) and minimum value (Min), calculate Max-Min, and compute the percentile as (Current Value - Min) / (Max - Min). If Max = Min, do not calculate.</p>
+    <p>2. Value Retrieval Method:</p>
+    <p>(1) Using "Select Date" and "Time Span," set the time range from the "Select Date" to the date that goes back by the chosen "Time Span." Within this period, find the maximum and minimum values of the indicator for percentile calculation.</p>
+    <p>(2) If no values are found within the time frame mentioned in (1), continue to look further back in time until values are found.</p>
+    <p>3. Chart Description:</p>
+    <p>(1) A particular commodity will have multiple coordinate points (the number of points depends on the number of dates set).</p>
+    <p>(2) The X and Y values of coordinate points correspond to actual dates and values.</p>`,
+
+    `<p style="font-weight:bold;">II. Related Configuration</p>
+    <p>1. Basic Configuration:</p>
+    <p>(1) Administrators manage commodities and tags.</p>
+    <p>(2) Users associate commodities with indicators based on tags.</p>
+    <p>2. Calculation Configuration:</p>
+    <p>(1) Time Span: The default display is 6 months.</p>
+    <p>(2) Select Date: Supports selecting up to 5 dates.</p>
+    <p>(3) X-axis Coordinate: Choose a tag.</p>
+    <p>(4) Y-axis Coordinate: Choose a tag.</p>
+    <p>(5) Chart Name: Concatenation of X-axis and Y-axis coordinates tags.</p>`
+
 ]

+ 1 - 1
src/views/chartRelevance_manage/components/selectTarget.vue

@@ -16,7 +16,7 @@
     </el-select>
 
     <div v-else-if="selectStyleType===2&&filter">
-      <label>选择指标:</label>
+      <label>{{$t('StatisticAnalysis.StatisticFeatureChart.select_edb')}}:</label>
       <el-radio-group v-model="targetType" @change="targetTypeChange">
         <el-radio  
           v-for="item in etaTypeOpt"

+ 10 - 10
src/views/chartRelevance_manage/crossVarietyAnalysis/chartEditor.vue

@@ -10,25 +10,25 @@
     <div class="left-cont" v-show="!isSlideLeft" id="left">
       <div class="left-top">
         <div>
-          <el-button type="primary" @click="saveChartHandle">保存</el-button>
-          <el-button type="primary" plain @click="$router.back()">取消</el-button>
+          <el-button type="primary" @click="saveChartHandle">{{$t('Dialog.confirm_save_btn')}}</el-button>
+          <el-button type="primary" plain @click="$router.back()">{{$t('Dialog.cancel_btn')}}</el-button>
 
         </div>
         <div style="color:#409EFF;font-size: 16px;cursor: pointer;" @click="showExplain = true">
             <i class="el-icon-document" style="font-size:22px;"></i>
-            操作说明
+            {{$t('StatisticAnalysis.ChartRelevance.opt_tip_btn')}}
         </div>
       </div>
 
       <div class="left-min">
         <section class="section-item">
           <div class="top">
-            <label>选择品种</label>
+            <label>{{$t('StatisticAnalysis.CrossVarietyChart.select_variety')}}</label>
             <el-button
               v-permission="permissionBtn.statisticPermission.crossVariety_variety_edit"
               type="text" 
               @click="setDialogOpen('variety')"
-            >品种管理</el-button>
+            >{{$t('StatisticAnalysis.CrossVarietyChart.variety_management')}}</el-button>
           </div>
           <div class="list" v-if="varietyOptions.length">
             <el-tag 
@@ -47,12 +47,12 @@
 
         <section class="section-item">
           <div class="top">
-            <label>标签配置</label>
+            <label>{{$t('StatisticAnalysis.CrossVarietyChart.label_config')}}</label>
             <el-button
               v-permission="permissionBtn.statisticPermission.crossVariety_tag_edit"
               type="text" 
               @click="setDialogOpen('tag')"
-            >标签管理</el-button>
+            >{{$t('StatisticAnalysis.CrossVarietyChart.label_manage')}}</el-button>
           </div>
           <div class="list" v-if="tagOptions.length">
             <el-tag 
@@ -97,7 +97,7 @@
                 height="450px"
                 ref="chartRef"
               />
-              <span class="chart-author">作者:{{ chartInfo.SysUserRealName || accountName}}</span>
+              <span class="chart-author">{{$t('MsgPrompt.author')}}:{{ chartInfo.SysUserRealName || accountName}}</span>
 
               <!-- 上下限 -->
               <template>	
@@ -501,8 +501,8 @@ export default {
     }
   }
   .left-cont {
-    width: 380px;
-    min-width: 380px;
+    width: 400px;
+    min-width: 400px;
     background: #fff;
     margin-right: 20px;
     border: 1px solid #ececec;

+ 35 - 18
src/views/chartRelevance_manage/crossVarietyAnalysis/components/chartFormSection.vue

@@ -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: {

+ 72 - 17
src/views/chartRelevance_manage/crossVarietyAnalysis/components/edbTableSection.vue

@@ -26,16 +26,16 @@
           <span v-else>{{ scope.row[item.key] }}</span>
         </template>
       </el-table-column>
-      <el-table-column label="操作" key="Copy" align="center" width="140">
+      <el-table-column :label="$t('Table.column_operations')" key="Copy" align="center" width="140">
         <template slot-scope="scope">
           <span class="editsty" @click="copyCode(scope.row)">
-          <i class="el-icon-document-copy" />&nbsp;复制数据</span
+          <i class="el-icon-document-copy" />&nbsp;{{$t('Edb.detail_copydata_btn')}}</span
         ><br />
-        <span class="editsty" @click="viewTarget(scope.row)">查看数据</span>
+        <span class="editsty" @click="viewTarget(scope.row)">{{$t('Edb.detail_lookdata_btn')/* 查看数据 */}}</span>
       </template>
     </el-table-column>
     <div slot="empty">
-      <tableNoData text="暂无指标" size="mini"/>
+      <tableNoData :text="$t('Table.no_edb_msg')" size="mini"/>
     </div>
   </el-table>
 </template>
@@ -49,59 +49,114 @@ export default {
       default: () => []
     }
   },
-  data() {
-    return {
-      tableColums: [
+  computed:{
+    tableColums(){
+      return [
         {
-          label: '指标名称',
+          label: this.$t('Edb.Detail.e_name')||'指标名称',
           key: 'EdbName',
           enKey:'EdbNameEn',
 					inputTip:'点击输入英文指标名称',
           minwidthsty: '150px',
         },
         {
-          label: '指标ID',
+          label: this.$t('Edb.Detail.e_id')||'指标ID',
           key: 'EdbCode',
           widthsty: '120px',
         },
         {
-          label: '更新频度',
+          label: this.$t('Edb.Detail.e_fre')||'更新频度',
           key: 'Frequency',
           enKey:'FrequencyEn',
           minwidthsty: '60px',
         },
         {
-          label: '单位',
+          label: this.$t('Edb.Detail.e_unit')||'单位',
           key: 'Unit',
           enKey:'UnitEn',
 					inputTip:'英文单位',
           minwidthsty: '50px',
         },
         {
-          label: '起始时间',
+          label: this.$t('Edb.Detail.e_start_time')||'起始时间',
           key: 'StartDate',
           minwidthsty: '100px',
         },
         {
-          label: '最新日期',
+          label: this.$t('Edb.Detail.e_latest_date')||'最新日期',
           key: 'LatestDate',
           minwidthsty: '90px',
         },
         {
-          label: '最新值',
+          label: this.$t('Edb.Detail.e_latest_value')||'最新值',
           key: 'LatestValue',
           minwidthsty: '90px',
         },
         {
-          label: '最近更新',
+          label: this.$t('Edb.Detail.e_recent_time')||'最近更新',
           key: 'ModifyTime',
           minwidthsty: '100px',
         },
         {
-          label: '数据来源',
+          label: this.$t('Edb.Detail.source')||'数据来源',
           key: 'SourceName',
         },
-      ],//表格列
+      ]
+    }
+  },
+  data() {
+    return {
+      // tableColums: [
+      //   {
+      //     label: '指标名称',
+      //     key: 'EdbName',
+      //     enKey:'EdbNameEn',
+			// 		inputTip:'点击输入英文指标名称',
+      //     minwidthsty: '150px',
+      //   },
+      //   {
+      //     label: '指标ID',
+      //     key: 'EdbCode',
+      //     widthsty: '120px',
+      //   },
+      //   {
+      //     label: '更新频度',
+      //     key: 'Frequency',
+      //     enKey:'FrequencyEn',
+      //     minwidthsty: '60px',
+      //   },
+      //   {
+      //     label: '单位',
+      //     key: 'Unit',
+      //     enKey:'UnitEn',
+			// 		inputTip:'英文单位',
+      //     minwidthsty: '50px',
+      //   },
+      //   {
+      //     label: '起始时间',
+      //     key: 'StartDate',
+      //     minwidthsty: '100px',
+      //   },
+      //   {
+      //     label: '最新日期',
+      //     key: 'LatestDate',
+      //     minwidthsty: '90px',
+      //   },
+      //   {
+      //     label: '最新值',
+      //     key: 'LatestValue',
+      //     minwidthsty: '90px',
+      //   },
+      //   {
+      //     label: '最近更新',
+      //     key: 'ModifyTime',
+      //     minwidthsty: '100px',
+      //   },
+      //   {
+      //     label: '数据来源',
+      //     key: 'SourceName',
+      //   },
+      // ],//表格列
     }
   },
   methods:{

+ 4 - 4
src/views/chartRelevance_manage/crossVarietyAnalysis/components/tagSetDialog.vue

@@ -3,7 +3,7 @@
     :visible.sync="isShow"
     :close-on-click-modal="false"
     :modal-append-to-body="false"
-    :title="type==='tag'?'标签管理':'品种管理'"
+    :title="type==='tag'?$t('StatisticAnalysis.CrossVarietyChart.label_manage'):$t('StatisticAnalysis.CrossVarietyChart.variety_management')"
     @close="cancelHandle"
     custom-class="dialog"
     center
@@ -13,7 +13,7 @@
     <div class="dialog-min">
       <el-input
         v-model="searchTxt"
-        placeholder="请输入名称"
+        :placeholder="$t('StatisticAnalysis.CrossVarietyChart.placeholder01')"
         prefix-icon="el-icon-search"
         size="medium"
         clearable 
@@ -39,7 +39,7 @@
           <span v-else>
             {{ item.label }}
             <el-popconfirm
-              :title="`是否确认删除该${type==='tag'?'标签':'品种'}`"
+              :title="`${$t('StatisticAnalysis.CrossVarietyChart.del_msg')}${type==='tag'?$t('StatisticAnalysis.CrossVarietyChart.label_name'):$t('StatisticAnalysis.CrossVarietyChart.variety_name')}`"
               @onConfirm="closeItemHandle(item)"
             >
               <i
@@ -60,7 +60,7 @@
           @blur="addNewTagHandle"
         >
         </el-input>
-        <el-button v-else size="small" @click="addNewItem">+ {{type==='tag'?'标签':'品种'}}</el-button>
+        <el-button v-else size="small" @click="addNewItem">+ {{type==='tag'?$t('StatisticAnalysis.CrossVarietyChart.label_name'):$t('StatisticAnalysis.CrossVarietyChart.variety_name')}}</el-button>
 
       </div>
     </div>

+ 8 - 8
src/views/chartRelevance_manage/crossVarietyAnalysis/list.vue

@@ -12,20 +12,20 @@
       <div class="main-left left" id="left" v-show="!isSlideLeft">
 				<div class="datasheet_top">
 						<el-button v-permission="permissionBtn.statisticPermission.crossVariety_addChart"
-							 type="primary" @click="goAddChart">添加图表</el-button>
+							 type="primary" @click="goAddChart">{{$t('StatisticAnalysis.ChartRelevance.chart_add_btn')}}</el-button>
 				</div>
 
 				<div class="search-cont">
 					<el-checkbox v-model="isShowMe"  
 						v-permission="permissionBtn.statisticPermission.crossVariety_onlyMine"
-						@change="() => { getTreeData();getPublicList() }">只看我的</el-checkbox>
+						@change="() => { getTreeData();getPublicList() }">{{$t('StatisticAnalysis.ChartRelevance.only_see_mine')}}</el-checkbox>
 					<el-select
 						v-model="search_txt"
 						v-loadMore="searchLoad"
 						:filterable="!search_txt"
 						remote
 						clearable
-						placeholder="请输入图表名称"
+						:placeholder="$t('Chart.search_chart_placeholder')"
 						style="width: 100%; margin-top: 20px"
 						:remote-method="searchHandle"
 						@click.native="inputFocusHandle"
@@ -144,7 +144,7 @@
 											ref="chartRef"
 										/>
                   </div>
-                  <span class="chart-author">作者:{{ chartInfo.SysUserRealName}}</span>
+                  <span class="chart-author">{{$t('MsgPrompt.author')}}:{{ chartInfo.SysUserRealName}}</span>
                 </div>
 
                 <!-- 异常显示 -->
@@ -370,7 +370,7 @@ export default {
     /* 编辑节点 */
     editNode(node, { ChartClassifyName,ChartClassifyId }) {
 
-      this.dialog_title = '编辑图表分类';
+      this.dialog_title = this.$t('StatisticAnalysis.ChartRelevance.edit_chart_classify')||'编辑图表分类';
       /* 编辑目录 */
       this.classifyForm = {
         classify_name: ChartClassifyName,
@@ -467,9 +467,9 @@ export default {
 		/* 删除图表 */
 		delChartHandle() {
 			const { ChartClassifyId,ChartInfoId } = this.chartInfo;
-			this.$confirm('删除后该图表将不能再引用,确认删除吗?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
+			this.$confirm(this.$t('Chart.OptMsg.chart_del_confirm'), this.$t('Confirm.prompt'), {
+        // confirmButtonText: '确定',
+        // cancelButtonText: '取消',
         type: 'warning',
       })
         .then(() => {

+ 41 - 30
src/views/chartRelevance_manage/statistic/statisticFeatureChartEditor.vue

@@ -9,10 +9,10 @@
     </span>
     <div class="left-cont" v-show="!isSlideLeft" id="left">
       <div class="left-top">
-        <el-button type="primary" plain @click="$router.back()">取消</el-button>
+        <el-button type="primary" plain @click="$router.back()">{{$t('Dialog.cancel_btn')}}</el-button>
         <div style="color:#409EFF;font-size: 16px;cursor: pointer;" @click="showExplain = true">
             <i class="el-icon-document" style="font-size:22px;"></i>
-            操作说明
+            {{$t('StatisticAnalysis.ChartRelevance.opt_tip_btn')}}
         </div>
       </div>
       <div class="left-min">
@@ -27,9 +27,9 @@
 				</div>
 
         <div class="section">
-          <div>曲线图</div>
+          <div>{{$t('Chart.ChartType.graph_name')}}</div>
           <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
                 style="max-width: 110px;flex-shink:0;"
                 v-model="chartInfo.Curve.DateType"
@@ -55,7 +55,7 @@
             />
           </div>
           <div class="section-item">
-            <span style="flex-shrink:0;min-width:50px;">上下限:</span>
+            <span style="flex-shrink:0;min-width:50px;">{{$t('StatisticAnalysis.StatisticFeatureChart.limit_name')}}:</span>
             <el-input
               style="flex:2;margin-left:5px;margin-right:10px"
               :step="1"
@@ -63,7 +63,7 @@
               v-model="chartInfo.Curve.LeftMin"
               @change="val => { chartInfo.Curve.LeftMin=Number(val);changeSplineOption() }"
             />
-            <span></span>
+            <span>{{$t('StatisticAnalysis.ChartRelevance.to')}}</span>
             <el-input
               style="flex:2;margin-left:5px;"
               :step="1"
@@ -75,7 +75,7 @@
         </div>
 
         <div class="section">
-          <div>标准差
+          <div>{{$t('StatisticAnalysis.StatisticFeatureChart.standard_deviation')}}
             <!-- <el-tooltip effect="dark" placement="right">
               <div
                 slot="content"
@@ -86,7 +86,7 @@
             </el-tooltip> -->
           </div>
           <div class="section-item">
-            <div>滚动期数:</div>
+            <div>{{$t('StatisticAnalysis.StatisticFeatureChart.rolling_period')}}:</div>
             <el-input
               style="max-width:100px;margin-left:10px"
               :step="1"
@@ -98,7 +98,7 @@
         </div>
 
         <div class="section">
-          <div>百分位
+          <div>{{$t('StatisticAnalysis.StatisticFeatureChart.percentile')}}
             <!-- <el-tooltip effect="dark" placement="right">
               <div
                 slot="content"
@@ -109,7 +109,7 @@
             </el-tooltip> -->
           </div>
           <div class="section-item">
-            <span style="flex-shrink:0;min-width:70px">时间长度:</span>
+            <span style="flex-shrink:0;min-width:70px">{{$t('StatisticAnalysis.StatisticFeatureChart.time_length')}}:</span>
             <el-input
               style="width:100px;margin-left:5px;margin-right:10px"
               :step="1"
@@ -133,7 +133,7 @@
         </div>
 
         <div class="section">
-          <div>频率分布
+          <div>{{$t('StatisticAnalysis.StatisticFeatureChart.frequency_distribution')}}
             <!-- <el-tooltip effect="dark" placement="right">
               <div
                 slot="content"
@@ -144,7 +144,7 @@
             </el-tooltip> -->
           </div>
           <div class="section-item">
-            <span style="flex-shrink:0;min-width:70px">时间段:</span>
+            <span style="flex-shrink:0;min-width:70px">{{$t('StatisticAnalysis.StatisticFeatureChart.time_period')}}:</span>
             <el-select
                 style="max-width: 110px;flex-shink:0;"
                 v-model="chartInfo.FrequencyDistribution.DateType"
@@ -169,7 +169,7 @@
             />
           </div>
           <div class="section-item">
-            <span style="flex-shrink:0;min-width:70px">频段数</span>
+            <span style="flex-shrink:0;min-width:70px">{{$t('StatisticAnalysis.StatisticFeatureChart.frequency_band_number')}}</span>
             <el-select
                 style="max-width: 110px;flex-shink:0;"
                 v-model="chartInfo.FrequencyDistribution.FrequencyValue"
@@ -187,7 +187,7 @@
           </div>
         </div>
 
-        <el-button type="primary" style="float:right" @click="handlePreviewChart">确定</el-button>
+        <el-button type="primary" style="float:right" @click="handlePreviewChart">{{$t('Dialog.confirm_btn')}}</el-button>
       </div>
       <span
         class="move-btn resize"
@@ -323,6 +323,17 @@ export default {
       };
     },
   },
+  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() {
     return {
       chart_code: this.$route.query.code || '',
@@ -332,18 +343,18 @@ export default {
 
       yearSelector: [
         ...yearSelector,
-        { name: '自定义',value: 5 }
+        { name: this.$i18n.locale == 'zh'?'自定义':'custom',value: 5 }
       ],
 
       frequencyDateOption: [
-        { name: '最近3月',value:1 },
-        { name: '最近6月',value:2 },
-        { name: '最近1年',value:3 },
-        { name: '最近2年',value:4 },
-        { name: '最近3年',value:5 },
-        { name: '最近5年',value:6 },
-        { name: '最近10年',value:7 },
-        { name: '自定义',value:8 },
+        { name: this.$t('StatisticAnalysis.StatisticFeatureChart.near_month',{num:3})/* '最近3月' */,value:1 },
+        { name: this.$t('StatisticAnalysis.StatisticFeatureChart.near_month',{num:6})/* '最近6月' */,value:2 },
+        { name: this.$t('StatisticAnalysis.StatisticFeatureChart.near_year',{num:1})/* '最近1年' */,value:3 },
+        { name: this.$t('StatisticAnalysis.StatisticFeatureChart.near_year',{num:2})/* '最近2年' */,value:4 },
+        { name: this.$t('StatisticAnalysis.StatisticFeatureChart.near_year',{num:3})/* '最近3年' */,value:5 },
+        { name: this.$t('StatisticAnalysis.StatisticFeatureChart.near_year',{num:5})/* '最近5年' */,value:6 },
+        { name: this.$t('StatisticAnalysis.StatisticFeatureChart.near_year',{num:10})/* '最近10年' */,value:7 },
+        { name: this.$i18n.locale == 'zh'?'自定义':'custom',value:8 },
       ],
       chartInfo: {
         MultipleGraphConfigId: 0,
@@ -371,13 +382,13 @@ export default {
           FrequencyValue: 10,
         }
       },
-      unitOpt:[
-        {label:'年',val:'年'},
-        {label:'季',val:'季'},
-        {label:'月',val:'月'},
-        {label:'周',val:'周'},
-        {label:'天',val:'天'},
-      ],
+      // unitOpt:[
+      //   {label:'年',val:'年'},
+      //   {label:'季',val:'季'},
+      //   {label:'月',val:'月'},
+      //   {label:'周',val:'周'},
+      //   {label:'天',val:'天'},
+      // ],
 
       buttonAuth: { //按钮控制
         isCurveChartAdd: false,

+ 15 - 15
src/views/chartRelevance_manage/statistic/statisticFeatureList.vue

@@ -12,20 +12,20 @@
       <div class="main-left left" id="left" v-show="!isSlideLeft">
 				<div class="datasheet_top">
 						<el-button v-permission="permissionBtn.statisticPermission.statisticFeature_addChart"
-							 type="primary" @click="goAddChart">添加图表</el-button>
+							 type="primary" @click="goAddChart">{{$t('StatisticAnalysis.ChartRelevance.chart_add_btn')}}</el-button>
 				</div>
 
 				<div class="search-cont">
 					<el-checkbox v-model="isShowMe"  
 						v-permission="permissionBtn.statisticPermission.statisticFeature_onlyMine"
-						@change="() => { getTreeData();getPublicList() }">只看我的</el-checkbox>
+						@change="() => { getTreeData();getPublicList() }">{{$t('StatisticAnalysis.ChartRelevance.only_see_mine')}}</el-checkbox>
 					<el-select
 						v-model="search_txt"
 						v-loadMore="searchLoad"
 						:filterable="!search_txt"
 						remote
 						clearable
-						placeholder="请输入图表名称"
+						:placeholder="$t('Chart.search_chart_placeholder')"
 						style="width: 100%; margin-top: 20px"
 						:remote-method="searchHandle"
 						@click.native="inputFocusHandle"
@@ -119,7 +119,7 @@
 							alt=""
 							style="width: 16px; height: 16px; margin-right: 10px"
 						/>
-						<span>添加图表分类</span>
+						<span>{{$t('StatisticAnalysis.ChartRelevance.add_chart_classify')}}</span>
 					</div>
 				</div>
 				<span
@@ -154,7 +154,7 @@
 											ref="chartRef"
 										/>
                   </div>
-                  <span class="chart-author">作者:{{ chartInfo.SysUserRealName}}</span>
+                  <span class="chart-author">{{$t('MsgPrompt.author')}}:{{ chartInfo.SysUserRealName}}</span>
                 </div>
 
                 <!-- 异常显示 -->
@@ -374,7 +374,7 @@ export default {
 
 		/* 添加一级目录 */
 		addLevelOneHandle() {
-			this.dialog_title = '添加图表分类';
+			this.dialog_title = this.$t('StatisticAnalysis.ChartRelevance.add_chart_classify')||'添加图表分类';
 			this.classifyForm = {
 				classify_name: '',
 			}
@@ -384,7 +384,7 @@ export default {
     /* 编辑节点 */
     editNode(node, { ChartClassifyName,ChartClassifyId }) {
 
-      this.dialog_title = '编辑图表分类';
+      this.dialog_title = this.$t('StatisticAnalysis.ChartRelevance.edit_chart_classify')||'编辑图表分类';
       /* 编辑目录 */
       this.classifyForm = {
         classify_name: ChartClassifyName,
@@ -401,14 +401,14 @@ export default {
 			const { DeleteStatus } = Data;
 
 			DeleteStatus === 1 
-			? this.$confirm('该分类下关联表图表不可删除', '删除失败', {
-				confirmButtonText: '知道了',
+			? this.$confirm(this.$t('Chart.OptMsg.classify_del_fail'), this.$t('Chart.OptMsg.del_fail_tag'), {
+				confirmButtonText: this.$t('MsgPrompt.known'),
 				showCancelButton: false,
 				type: 'error',
 			}) : DeleteStatus === 0
-			?  this.$confirm('确定删除当前分类吗?', '提示', {
-				confirmButtonText: '确定',
-				cancelButtonText: '取消',
+			?  this.$confirm(this.$t('Chart.OptMsg.classify_del_confirm'), this.$t('Confirm.prompt'), {
+				// confirmButtonText: '确定',
+				// cancelButtonText: '取消',
 				type: 'warning',
 			}).then(() => {
 				this.delApi(ChartClassifyId,ChartInfoId)
@@ -506,9 +506,9 @@ export default {
 		/* 删除图表 */
 		delChartHandle() {
 			const { ChartClassifyId,ChartInfoId } = this.chartInfo;
-			this.$confirm('删除后该图表将不能再引用,确认删除吗?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
+			this.$confirm(this.$t('Chart.OptMsg.chart_del_confirm'), this.$t('Confirm.prompt'), {
+        // confirmButtonText: '确定',
+        // cancelButtonText: '取消',
         type: 'warning',
       })
         .then(() => {