浏览代码

数据源over

Karsa 1 年之前
父节点
当前提交
d34ba8b9aa
共有 39 个文件被更改,包括 1078 次插入592 次删除
  1. 15 15
      src/components/lzTable.vue
  2. 20 0
      src/lang/commonLang.js
  3. 189 0
      src/lang/modules/DataSources/En.js
  4. 188 0
      src/lang/modules/DataSources/Zh.js
  5. 4 0
      src/lang/modules/EtaBase/commonLang.js
  6. 4 4
      src/views/dataEntry_manage/coal/index.vue
  7. 56 38
      src/views/dataEntry_manage/components/addTarget.vue
  8. 52 34
      src/views/dataEntry_manage/components/editTarget.vue
  9. 9 14
      src/views/dataEntry_manage/components/insertData.vue
  10. 23 23
      src/views/dataEntry_manage/dataEntry.vue
  11. 23 19
      src/views/dataEntry_manage/gasbase/history.vue
  12. 46 41
      src/views/dataEntry_manage/gasbase/index.vue
  13. 1 1
      src/views/dataEntry_manage/googleTravel/index.vue
  14. 17 14
      src/views/dataEntry_manage/onlineExcelCopy.vue
  15. 32 22
      src/views/dataEntry_manage/targetList.vue
  16. 26 30
      src/views/dataEntry_manage/thirdBase/BAIINFOTargetbase.vue
  17. 27 22
      src/views/dataEntry_manage/thirdBase/DatabankBase.vue
  18. 5 5
      src/views/dataEntry_manage/thirdBase/FwmtData.vue
  19. 3 3
      src/views/dataEntry_manage/thirdBase/NationalDataBase.vue
  20. 22 26
      src/views/dataEntry_manage/thirdBase/SCITargetbase.vue
  21. 18 18
      src/views/dataEntry_manage/thirdBase/UNdata.vue
  22. 5 5
      src/views/dataEntry_manage/thirdBase/YyzxData.vue
  23. 26 22
      src/views/dataEntry_manage/thirdBase/chinaFinancialFutures.vue
  24. 5 5
      src/views/dataEntry_manage/thirdBase/coalWord.vue
  25. 18 13
      src/views/dataEntry_manage/thirdBase/components/batchAddEdbDia.vue
  26. 8 9
      src/views/dataEntry_manage/thirdBase/components/targetDialog.vue
  27. 20 16
      src/views/dataEntry_manage/thirdBase/dlExchangeData.vue
  28. 4 4
      src/views/dataEntry_manage/thirdBase/elaSteoBase.vue
  29. 5 5
      src/views/dataEntry_manage/thirdBase/glTargetbase.vue
  30. 20 16
      src/views/dataEntry_manage/thirdBase/gqExchangeData.vue
  31. 5 5
      src/views/dataEntry_manage/thirdBase/icpiConsumption.vue
  32. 4 4
      src/views/dataEntry_manage/thirdBase/lzTargetbase.vue
  33. 24 19
      src/views/dataEntry_manage/thirdBase/shEnergy.vue
  34. 24 20
      src/views/dataEntry_manage/thirdBase/shFutures.vue
  35. 18 22
      src/views/dataEntry_manage/thirdBase/smmTargetbase.vue
  36. 21 21
      src/views/dataEntry_manage/thirdBase/steelChemicalbase.vue
  37. 46 40
      src/views/dataEntry_manage/thirdBase/ysTargetBase.vue
  38. 22 18
      src/views/dataEntry_manage/thirdBase/zzExchangeData.vue
  39. 23 19
      src/views/futures_manage/futuresBase.vue

+ 15 - 15
src/components/lzTable.vue

@@ -81,29 +81,29 @@ export default {
 		},
 		labelArr(){
 			let temMap=new Map([
-				['QuotaName', '指标名称'],
-				['LzCode', '指标ID'],
-				['Frequency', '频度'],
-				['UnitName', '单位'],
-				['ModifyTime', '更新时间'],
+				['QuotaName', /* '指标名称' */this.$t('Edb.Detail.e_name')],
+				['LzCode', /* '指标ID' */this.$t('Edb.Detail.e_id')],
+				['Frequency', /* '频度' */this.$t('Edb.Detail.e_fre')],
+				['UnitName', /* '单位' */this.$t('Edb.Detail.e_unit')],
+				['ModifyTime', /* '更新时间' */this.$t('Edb.Detail.e_update_time')],
 			])
 			let sourceTypeOne = ['smm','coal','baiinfo','yyzx','icpi','coalWord']
 
 			if(this.source==='gl'){
 				temMap=new Map([
-					['IndexName', '指标名称'],
-					['IndexCode', '指标ID'],
-					['FrequencyName', '频度'],
-					['UnitName', '单位'],
-					['UpdateTime', '更新时间'],
+					['IndexName', this.$t('Edb.Detail.e_name')],
+					['IndexCode', this.$t('Edb.Detail.e_id')],
+					['FrequencyName', this.$t('Edb.Detail.e_fre')],
+					['UnitName', this.$t('Edb.Detail.e_unit')],
+					['UpdateTime', this.$t('Edb.Detail.e_update_time')],
 				])
 			}else if(sourceTypeOne.includes(this.source)){
 				temMap=new Map([
-					['IndexName', '指标名称'],
-					['IndexCode', '指标ID'],
-					['Frequency', '频度'],
-					['Unit', '单位'],
-					['ModifyTime', '更新时间'],
+					['IndexName', this.$t('Edb.Detail.e_name')],
+					['IndexCode', this.$t('Edb.Detail.e_id')],
+					['Frequency', this.$t('Edb.Detail.e_fre')],
+					['Unit', this.$t('Edb.Detail.e_unit')],
+					['ModifyTime', this.$t('Edb.Detail.e_update_time')],
 				])
 			}
 

+ 20 - 0
src/lang/commonLang.js

@@ -44,6 +44,10 @@ export default {
     known: {
       en: 'Understood',
       zh: '知道了'
+    },
+    submit_btn: {
+      en: 'Submit',
+      zh: '提交'
     }
   },
   Table: {
@@ -123,6 +127,10 @@ export default {
       zh: '暂无指标',
       en: 'No indicator'
     },
+    look_dtl: {
+      zh: '查看详情',
+      en: 'View Details'
+    }
   },
   Confirm: {
     prompt: {
@@ -284,6 +292,18 @@ export default {
     no_chart_msg: {
       en: 'No Charts',
       zh: '暂无图表'
+    },
+    exp_excel: {
+      en: ' Export Excel',
+      zh: '导出excel',
+    },
+    imp_excel: {
+      en: 'Import Excel',
+      zh: '导入excel',
+    },
+    copy_excel: {
+      en: 'Copy Excel Data',
+      zh: '复制excel数据',
     }
   },
   Edb,

+ 189 - 0
src/lang/modules/DataSources/En.js

@@ -0,0 +1,189 @@
+/* myeta模块 
+  $t('DataBankPage.xxx')
+*/
+export default {
+  /* 数据宝 */
+  DataBankPage: {
+    table_col_start_time: 'Indicator Start Time',
+    table_col_newest_time: 'Indicator Latest Time',
+  },
+
+  /* 手工指标列表 */
+  ManualEdbListPage: {
+    add_edb_btn: 'Additional Indicator',
+    ph_search: 'Keyword Search',
+    ph_classify: 'Please select a category',
+    ph_start_time: 'Start date',
+    ph_end_time: 'End date',
+    table_col_date:'Date',
+    table_col_classify:'Category',
+    table_col_creator:'Creator',
+    no_search_msg:'No Search Results',
+    del_edb_msg:'Are you sure you want to delete this indicator?',
+    del_edb_rela_msg:'If this indicator is deleted, all data associated with this indicator will also be deleted, do you want to confirm the deletion?',
+
+    //指标弹窗
+    input_data_msg:'Enter Data',
+    edit_input_data: 'Modify Entered Data',
+    edit_edb_msg:'Editorial Indicators',
+    add_edb_classify: 'Add Manual Indicator Category',
+    label_classify:'Indicator Category',
+    label_update_remin:'Update Reminder',
+    ph_update_remin:'Please select the update time',
+    add_tobase_btn:'Add to Indicator Library'
+  },
+
+  /* 数据录入 */
+  ManualEntryPage: {
+    col_modify_date:'Date to be updated',
+    col_update_status:'Update Status',
+    right_op_insertrow:'Insert Row',
+    right_op_insertcol:'Insert Column',
+    right_op_delrow:'Delete Row',
+    right_op_delcol:'Delete Column',
+    label_one_level_classify:'Primary Category',
+    label_edb_classify:'Indicator Category',
+    use_intro:'Instructions for Use',
+    use_msg:` 1、Add new indicators: Enter the name, unit and value of the indicator under the column of the preset indicator and save it;</br>
+    2、Add date: select a date in the first column or insert a date line (to copy the existing date format), enter the value and save it;</br>
+    3、Delete indicators: Clear all the data under the indicator and save it, please do not delete the indicator column directly;</br>
+    4、Delete date: Clear all the data corresponding to the date and save it, please do not delete the date row directly;</br>
+    5、For operations such as editing indicator names, editing units, editing frequency, and deleting indicators, please complete them in the "Manual Indicator List."</br>`,
+
+    //导入弹窗
+    tit_insert_data:'Import Data',
+    down_tem:'Download Templates',
+    down_fail_list:'the list of failed imports',
+    step_one:'1. Step One: Download the template. Fill in the data according to the specifications required by the template; templates with empty data are not allowed to be imported. ',
+    step_two:'2. Step Two: Upload data. Click on "Import Data" to upload the completed template and confirm the import. ',
+    step_three:'Step Three: Complete the import. If there is any data that failed to import, download ',
+    upload_size_msg:'The file size must not exceed 10MB',
+  },
+
+  /* 期货数据库页面 */
+  FutureBasePage: {
+    ph_date: 'Date of data',
+    ph_exchange: 'Please select the exchange',
+    no_result_msg:'Please select the data date and enter the contract code',
+    col_date:'Date',
+    col_good_code:'Contract Code',
+    col_good_name:'Contract Name',
+    col_open:'Opening Price',
+    col_high:'Highest Price',
+    col_low:'Lowest Price',
+    col_close:'Closing Price',
+    col_volume:'Trading Volume',
+    col_amt:'Turnover',
+    col_oi:'Holdings',
+    col_settle:'Settlement Price',
+  },
+
+  /* 钢联化工数据库 */
+  SteelChemicalPage: {
+    add_edb_btn: 'Add indicator',
+    add_classify_btn: 'Add Category',
+    refresh_one_btn:'One-click Update',
+    del_edb_msg:'After deletion, this indicator cannot be referenced. Are you sure you want to delete it?',
+    del_classify_msg:'Deleting a category will synchronise the deletion of all indicators under the category, confirming the deletion?',
+
+    del_classify_msg:'Deleting a category is irreversible. Are you sure you want to delete it?',
+    del_classify_edb_msg:'Deleting a category will synchronise the deletion of all indicators under the category, confirming the deletion?',
+    del_classify_only_msg: 'Deleting a category will also delete all subcategories within it synchronously. Are you sure you want to delete?',
+
+    //分类弹窗
+    edit_classify_msg:'Edit category',
+    label_one_level:'First-Level Directory',
+    label_classify_name:'Category Name',
+
+    //指标弹窗
+    add_edb: 'Add Indicator',
+    edit_edb:'Edit Indicator',
+    label_edb_classify:'Affiliated Category',
+    ph_edbid:'Indicator ID can not be empty',
+    ph_classify:'Affiliated Category can not be empty',
+    add_loading_msg:'The loading time is approximately five minutes; closing the popup will not affect the loading process'
+  },
+
+  /* un数据页面 */
+  UnDataPage: {
+    ph_indexcode:'Please select commodity code',
+    ph_flow:'Please select trade flows',
+    ph_reportCode:'Please select the reporting State',
+    ph_partcode:'Please select opponent country',
+    ph_parttwocode:'Please select a second opponent country',
+    ph_year:'Please select a year',
+    ph_month:'Please select month',
+    option_year:'Annual',
+    option_month:'Monthly',
+    col_code:'Commodity Code(HS Code)',
+    col_date:'Date',
+    col_flow:'Trade Flows',
+    col_report:'Reporting State',
+    col_part:'Opponent Country',
+    col_parttow:'Second Opponent Country',
+    col_value:'Trade Amount (USD)',
+    col_weight:'Trade Weight (Kilograms)'
+  },
+
+  /* 天然气页面 */
+  GasDataPage: {
+    ph_date: 'Select Date',
+    no_data_msg:'No data available for this date, please select a different date',
+    col_gas_stock:'Natural Gas Inventory',
+    col_date:'Date',
+    col_full:'Storage Capacity Percentage',
+    col_trend:'Compared to the Previous Day',
+    col_inject:'Injection Volume',
+    col_withdraw:'Reduction Volume',
+    col_max_stock:'Maximum Inventory',
+    col_inject_speed:'Injection Rate',
+    col_withdraw_speed:'Withdrawal Rate',
+    col_status:'Data Status',
+    op_history:'Historical Data',
+    status_estimate:'Estimate',
+    status_confirm:'Confirmed',
+    status_no:'No Data',
+
+    top_page:'Home Page'
+  },
+
+  /* 上期能源 */
+  SqEnergyPage: {
+    contranct_code:'Contract Code',
+    col_rank:'Rank',
+    col_sname:'Membership Abbreviation',
+    col_trade:'Volume (lots)',
+    col_inorde:'Increase-Decrease Amount',
+    col_buy:'Long Position Volume',
+    col_sold:'Short Position Volume',
+    col_total:'Total'
+  },
+
+  /* 中金所 */
+  ZjDataPage: {
+    col_trade_rank: 'Volume Ranking',
+    col_buy_rank: 'Ranking of Buy Orders Held',
+    col_sold_rank: 'Ranking of Sell Orders Held',
+  },
+
+   /* 有色数据库 */
+  YsDataPage: {
+    loading_data_msg:'Indicator data is loading, please do not switch to other pages',
+    loading_list_msg:'The list is loading, please wait',
+    ph_classify:'Please select a category',
+    ph_data_status:'Please select indicator data status',
+    label_all_check:'List Select All',
+    add_base_btn:'Add to Indicator Library',
+    col_start_time:'Indicator Start Time',
+    col_newest_time:'Indicator Update Time',
+    col_pub_time:'Expected Release Date',
+    col_data_status:'Indicator Data Status',
+    col_classify:'Category',
+    col_status_normal:'Regular Update',
+    col_status_close:'Discontinued',
+    col_status_irr:'Updates dependent on external sources may experience irregular delays',
+    haved_all_msg:'All indicators added this time are already in the indicator library, please do not add them again!',
+    haved_some_msg:'The following indicators already exist in the indicator library and will be automatically filtered out!'
+  }
+  
+}

+ 188 - 0
src/lang/modules/DataSources/Zh.js

@@ -0,0 +1,188 @@
+/* myeta模块 
+  $t('DataBankPage.xxx')
+*/
+export default {
+  /* 数据宝 */
+  DataBankPage: {
+    table_col_start_time: '指标开始时间',
+    table_col_newest_time: '指标最新时间',
+  },
+
+  /* 手工指标列表 */
+  ManualEdbListPage: {
+    add_edb_btn: '新增指标',
+    ph_search: '关键字搜索',
+    ph_classify: '请选择分类',
+    ph_start_time: '开始日期',
+    ph_end_time: '结束日期',
+    table_col_date:'日期',
+    table_col_classify:'分类',
+    table_col_creator:'创建人',
+    no_search_msg:'暂无搜索结果',
+    del_edb_msg:'是否确认删除该指标?',
+    del_edb_rela_msg:'若删除此指标,该指标下关联的数据也将全部删除,是否确认删除?',
+
+    //指标弹窗
+    input_data_msg:'录入数据',
+    edit_input_data: '修改录入数据',
+    edit_edb_msg:'编辑指标',
+    add_edb_classify: '添加手工指标分类',
+    label_classify:'指标分类',
+    label_update_remin:'更新提醒',
+    ph_update_remin:'请选择更新时间',
+    add_tobase_btn:'加入指标库'
+  },
+
+  /* 数据录入 */
+  ManualEntryPage: {
+    col_modify_date:'待更新日期',
+    col_update_status:'更新状态',
+    right_op_insertrow:'插入行',
+    right_op_insertcol:'插入列',
+    right_op_delrow:'删除行',
+    right_op_delcol:'删除列',
+    label_one_level_classify:'一级分类',
+    label_edb_classify:'指标分类',
+    use_intro:'使用说明',
+    use_msg:` 1、新增指标:在预设好的指标列下输入指标名称、单位、数值并保存;</br>
+    2、新增日期:在第一列选择日期或插入日期行(需复制已有日期格式)输入数值并保存;</br>
+    3、清除指标:清空该指标下所有数据并保存,该操作不会删除指标,仅清除指标数据,请勿直接删除指标列;</br>
+    4、删除日期:清空该日期对应所有数据并保存,请勿直接删除日期行;</br>
+    5、指标名称编辑、单位编辑、频度编辑、指标删除等操作请在“手工指标列表”中完成;</br>`,
+
+    //导入弹窗
+    tit_insert_data:'导入数据',
+    down_tem:'下载模板',
+    down_fail_list:'导入失败列表',
+    step_one:'1、第一步,下载模板。按照模板要求的规范填写数据,空数据模板不允许导入。',
+    step_two:'2、第二步,上传数据。点击“导入数据”,上传已经填写好的模板,确认导入。',
+    step_three:'3、第三步,完成导入。若有导入失败数据,下载',
+    upload_size_msg:'文件大小不得超过10M',
+  },
+
+  /* 期货数据库页面 */
+  FutureBasePage: {
+    ph_date: '数据日期',
+    ph_exchange: '请选择交易所',
+    ph_search: '合约代码',
+    no_result_msg:'请选择数据日期并输入合约代码',
+    col_date:'日期',
+    col_good_code:'合约代码',
+    col_good_name:'合约名称',
+    col_open:'开盘价',
+    col_high:'最高价',
+    col_low:'最低价',
+    col_close:'收盘价',
+    col_volume:'成交量',
+    col_amt:'成交额',
+    col_oi:'持仓量',
+    col_settle:'结算价',
+  },
+
+  /* 钢联化工数据库 */
+  SteelChemicalPage: {
+    add_edb_btn: '新增指标',
+    add_classify_btn: '添加分类',
+    refresh_one_btn:'一键更新',
+    del_edb_msg:'删除后该指标不能被引用,确认删除吗?',
+    del_classify_msg:'删除分类不可恢复,确定删除吗?',
+    del_classify_edb_msg:'删除分类将同步删除分类下所有指标,确认删除吗?',
+    del_classify_only_msg: '删除分类将同步删除分类下所有子分类,确认删除吗?',
+
+    //分类弹窗
+    edit_classify_msg:'编辑分类',
+    label_one_level:'一级目录',
+    label_classify_name:'分类名称',
+
+    //指标弹窗
+    add_edb: '添加指标',
+    edit_edb:'编辑指标',
+    label_edb_classify:'所属分类',
+    ph_edbid:'指标ID不能为空',
+    ph_classify:'所属分类不能为空',
+    add_loading_msg:'加载时间大概五分钟,关闭弹窗不影响加载'
+  },
+
+  /* un数据页面 */
+  UnDataPage: {
+    ph_indexcode:'请选择Commodity Code',
+    ph_flow:'请选择贸易流向',
+    ph_reportCode:'请选择报告国',
+    ph_partcode:'请选择对手国',
+    ph_parttwocode:'请选择第二对手国',
+    ph_year:'请选择年份',
+    ph_month:'请选择月份',
+    option_year:'年度',
+    option_month:'月度',
+    col_code:'Commodity Code(HS代码)',
+    col_date:'日期',
+    col_flow:'贸易流向',
+    col_report:'报告国',
+    col_part:'对手国',
+    col_parttow:'第二对手国',
+    col_value:'贸易金额(美元)',
+    col_weight:'贸易重量(千克)'
+  },
+
+  /* 天然气页面 */
+  GasDataPage: {
+    ph_date: '选择日期',
+    no_data_msg:'没有此日期的数据,请重新选择日期',
+    col_gas_stock:'天然气存量',
+    col_date:'日期',
+    col_full:'储存容量百分比',
+    col_trend:'较前日对比',
+    col_inject:'注入量',
+    col_withdraw:'减少量',
+    col_max_stock:'最大存量',
+    col_inject_speed:'注入速度',
+    col_withdraw_speed:'取出速度',
+    col_status:'数据状态',
+    op_history:'历史数据',
+    status_estimate:'估计',
+    status_confirm:'已确认',
+    status_no:'无数据',
+
+    top_page:'首页'
+  },
+  
+  /* 上期能源 */
+  SqEnergyPage: {
+    contranct_code:'合约代码',
+    product_name:'商品名称',
+    col_rank:'名次',
+    col_sname:'会员简称',
+    col_trade:'成交量(手)',
+    col_inorde:'增减量',
+    col_buy:'持买仓量',
+    col_sold:'持卖仓量',
+    col_total:'合计'
+  },
+
+  /* 中金所 */
+  ZjDataPage: {
+    col_trade_rank: '成交量排名',
+    col_buy_rank: '持买单量排名',
+    col_sold_rank: '持卖单量排名',
+  },
+
+  /* 有色数据库 */
+  YsDataPage: {
+    loading_data_msg:'指标数据加载中,请勿切换到其他页面',
+    loading_list_msg:'列表加载中,请稍后',
+    ph_classify:'请选择分类',
+    ph_data_status:'请选择指标数据状态',
+    label_all_check:'列表全选',
+    add_base_btn:'添加到指标库',
+    col_start_time:'指标开始时间',
+    col_newest_time:'指标最新时间',
+    col_pub_time:'预计发布时间',
+    col_data_status:'指标数据状态',
+    col_classify:'分类',
+    col_status_normal:'正常更新',
+    col_status_close:'已停更',
+    col_status_irr:'更新依赖外部会有不定期延迟',
+    haved_all_msg:'本次添加的指标均已在指标库中,请勿重复添加!',
+    haved_some_msg:'指标库中已存在以下指标,会自动过滤!'
+  }
+}

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

@@ -184,6 +184,10 @@ export default {
       zh:'最新日期',
       en:'Latest Date'
     },
+    e_start_date: {
+      zh:'起始日期',
+      en:'Start Date'
+    },
     e_latest_value: {
       zh:'最新值',
       en:'Latest Value'

+ 4 - 4
src/views/dataEntry_manage/coal/index.vue

@@ -18,7 +18,7 @@
           size="medium"
           @click="exportClick"
           :loading="btnload"
-          >导出Excel</el-button
+          ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
         >
         <el-autocomplete
           style="margin: 20px 0; width: 100%"
@@ -26,14 +26,14 @@
           v-model="leftSearchVal"
           :fetch-suggestions="handleLeftSearch"
           :trigger-on-focus="false"
-          placeholder="指标名称/指标ID"
+          :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
           @select="handleSelectLeftSearchval"
           popper-class="el-autocomplete-suggestion-data-entry"
           clearable
         >
           <template slot-scope="scope">
             <div v-if="scope.item.nodata" style="text-align: center">
-              暂无数据
+              <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}
             </div>
             <div v-else>
               {{ scope.item.IndexName }}
@@ -73,7 +73,7 @@
     <div
       class="right-cont minHeight"
       v-loading="dataloading"
-      element-loading-text="获取数据中..."
+      :element-loading-text="$t('Table.data_loading')"
     >
       <div
         class="right-box"

+ 56 - 38
src/views/dataEntry_manage/components/addTarget.vue

@@ -12,9 +12,9 @@
 		width="700px">
 		<div slot="title" style="display:flex;alignItems:center;">
 			<img :src="$icons.add" style="color:#fff;width:16px;height:16px;marginRight:5px;">
-			<span style="fontSize:16px;">{{dialogTitle}}</span>
+			<span style="fontSize:16px;">{{dialogTitle==='新增指标'?$t('ManualEdbListPage.add_edb_btn'):$t('ManualEdbListPage.input_data_msg')}}</span>
 		</div>
-		<div class="dialog-min" style="height:460px;">
+		<div class="dialog-min" style="height:560px;">
 			<div class="left-cont">
 				<div style="overflowY:auto;overflowX:hidden;">
 					<el-tree
@@ -29,17 +29,17 @@
 				</div>
 				<div class="data-authority-row" @click="dataAuthorityJump">
 					<img src="~@/assets/img/icons/add_blue_new.png" /> 
-					<span>添加手工指标分类</span>
+					<span><!-- 添加手工指标分类 -->{{$t('ManualEdbListPage.add_edb_classify')}}</span>
 				</div>
 			</div>
 			<div class="rigth-cont">
 				<el-form
 				ref="formD"
 				label-position="right" 
-				label-width="80px" 
+				label-width="120px" 
 				:model="formData"
 				:rules="formRules">
-					<el-form-item label="指标分类" prop="type">
+					<el-form-item :label="$t('ManualEdbListPage.label_classify')" prop="type">
 						<span style="fontSize:14px;">{{formData.type}}</span>
 					</el-form-item>
 					<!-- 录入数据 -->
@@ -66,19 +66,18 @@
 					</template>
 					<!-- 新增指标 -->
 					<template v-else>
-						<el-form-item label="频度" prop="frequency">
+						<el-form-item :label="$t('Edb.Detail.e_fre')" prop="frequency">
 							<!-- <span class="require_tag">*</span> -->
-							<el-select v-model="formData.frequency" placeholder="请选择频度" style="width: 321px;" @change="handleFrequencyChange">
-								<el-option label="日度" value="日度"></el-option>
-								<el-option label="周度" value="周度"></el-option>
-								<el-option label="旬度" value="旬度"></el-option>
-								<el-option label="月度" value="月度"></el-option>
-								<el-option label="季度" value="季度"></el-option>
-								<el-option label="半年度" value="半年度"></el-option>
-								<el-option label="年度" value="年度"></el-option>
+							<el-select v-model="formData.frequency" style="width: 321px;" @change="handleFrequencyChange">
+								<el-option
+									v-for="item in frequencyArr"
+									:label="item.label" 
+									:value="item.value"
+									:key="item.value"
+								></el-option>
 							</el-select>
 						</el-form-item>
-						<el-form-item label="单位" prop="unit">
+						<el-form-item :label="$t('Edb.Detail.e_unit')" prop="unit">
 							<!-- <span class="require_tag">*</span> -->
 							<!-- <el-input v-model="formData.unit"  placeholder="请填写单位" style="width: 321px;"></el-input> -->
 							<el-autocomplete
@@ -90,19 +89,18 @@
 								style="width: 321px;"
 							></el-autocomplete>
 						</el-form-item>
-						<el-form-item label="指标名称" prop="targetName">
+						<el-form-item :label="$t('Edb.Detail.e_name')" prop="targetName">
 							<!-- <span class="require_tag">*</span> -->
-							<el-input v-model="formData.targetName"  placeholder="请输入指标名称" style="width: 321px;"></el-input>
+							<el-input v-model="formData.targetName"  :placeholder="$t('Edb.InputHolderAll.input_name')" style="width: 321px;"></el-input>
 						</el-form-item>
-						<el-form-item label="更新提醒" prop="up_week" v-permission="permissionBtn.dataSourcePermission.manualData_add_updateRemind">
-							<el-select v-model="formData.up_week" placeholder="请选择更新周" style="width:145px" v-if="formData.frequency === '周度'">
-								<el-option label="周一" value="周一"></el-option>
-								<el-option label="周二" value="周二"></el-option>
-								<el-option label="周三" value="周三"></el-option>
-								<el-option label="周四" value="周四"></el-option>
-								<el-option label="周五" value="周五"></el-option>
-								<el-option label="周六" value="周六"></el-option>
-								<el-option label="周日" value="周日"></el-option>
+						<el-form-item :label="$t('ManualEdbListPage.label_update_remin')" prop="up_week" v-permission="permissionBtn.dataSourcePermission.manualData_add_updateRemind">
+							<el-select v-model="formData.up_week" :placeholder="$t('ManualEdbListPage.ph_update_remin')" style="width:145px" v-if="formData.frequency === '周度'">
+								<el-option
+									v-for="item in weeksArr"
+									:label="item.label" 
+									:value="item.value"
+									:key="item.value"
+								></el-option>
 							</el-select>
 							<el-select v-model="formData.up_day" placeholder="请选择更新日" style="width:145px" v-if="formData.frequency === '月度'">
 								<el-option :label="item" :value="item" v-for="(item,index) in days" :key="index"></el-option>
@@ -120,15 +118,15 @@
 								:style="formData.frequency === '日度'?'width:321px':'width:170px'"
 								v-model="formData.up_time"
 								value-format="HH:mm:ss"
-								placeholder="请选择更新时间">
+								:placeholder="$t('ManualEdbListPage.ph_update_remin')">
 							</el-time-picker>
 						</el-form-item>
 					</template>
 				</el-form>
-				<div slot="footer" class="dialog-footer" :style="dialogTitle==='录入数据'?'marginTop:150px;text-align:center;':'marginTop:95px;text-align:center;'">
-					<el-button type="primary" size="medium" @click.native="addHandle(1)" v-if="dialogTitle==='录入数据'">确定</el-button>
-					<el-button type="primary" size="medium" @click.native="addHandle(2)" v-else>加入指标库</el-button>
-					<el-button  size="medium" @click.native="cancelHandle" :style="dialogTitle!=='录入数据'?'width:112px;marginLeft:50px;':'marginLeft:50px;'">取消</el-button>
+				<div class="dialog-footer">
+					<el-button type="primary" size="medium" @click.native="addHandle(1)" v-if="dialogTitle==='录入数据'"><!-- 确定 -->{{$t('Dialog.confirm_btn')}}</el-button>
+					<el-button type="primary" size="medium" @click.native="addHandle(2)" v-else><!-- 加入指标库 -->{{$t('ManualEdbListPage.add_tobase_btn')}}</el-button>
+					<el-button  size="medium" @click.native="cancelHandle" :style="dialogTitle!=='录入数据'?'width:112px;marginLeft:50px;':'marginLeft:50px;'"><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button>
 				</div>
 			</div>
 		</div>
@@ -175,25 +173,40 @@ import {dataInterence} from 'api/api.js';
 					date:[
 						{required: true, message: '请选择日期', trigger: 'blur'}
 					],
-					target:[
-						{ required: true,message: '频度不能为空', trigger: 'change' }
-					],
 					frequency:[
-						{ required: true,message: '频度不能为空', trigger: 'change' }
+						{ required: true,message: /* '频度不能为空' */this.$t('Edb.Valids.fre_msg'), trigger: 'change' }
 					],
 					value:[
-						{ required: true,message: '录入值不能为空', trigger: 'blur' }
+						{ required: true,message: /* '录入值不能为空' */this.$t('Edb.Valids.val_msg'), trigger: 'blur' }
 					],
 					target:[
 						{ required: true,message: '录入指标不能为空', trigger: 'change' }
 					],
 					unit:[
-						{ required: true,message: '单位不能为空', trigger: 'change' }
+						{ required: true,message: /* '单位不能为空' */this.$t('Edb.Valids.unit_msg'), trigger: 'change' }
 					],
 					targetName:[
-						{ required: true,message: '指标名称不能为空', trigger: 'blur' }
+						{ required: true,message: /* '指标名称不能为空' */this.$t('Edb.Valids.name_msg'), trigger: 'blur' }
 					],
 				},
+				frequencyArr: [
+					{ label:'日度',value:'日度' },
+					{ label:'周度',value:'周度' },
+					{ label:'旬度',value:'旬度' },
+					{ label:'月度',value:'月度' },
+					{ label:'季度',value:'季度' },
+					{ label:'半年度',value:'半年度' },
+					{ label:'年度',value:'年度' },
+				],
+				weeksArr: [
+					{ label:'周一',value:'周一' },
+					{ label:'周二',value:'周二' },
+					{ label:'周三',value:'周三' },
+					{ label:'周四',value:'周四' },
+					{ label:'周五',value:'周五' },
+					{ label:'周六',value:'周六' },
+					{ label:'周日',value:'周日' },
+				],
 				classify_id:this.addTargetDefaultClassId,//分类id
 				targetList:[],//指标列表
 			};
@@ -491,5 +504,10 @@ import {dataInterence} from 'api/api.js';
 			width: 100%;
 		}
 	}
+	.dialog-footer {
+		margin: 50px 0;
+		display: flex;
+		justify-content: center;
+	}
 }
 </style>

+ 52 - 34
src/views/dataEntry_manage/components/editTarget.vue

@@ -12,9 +12,9 @@
 		width="700px">
 		<div slot="title" style="display:flex;alignItems:center;">
 			<img :src="$icons.edit" style="color:#fff;width:16px;height:16px;marginRight:5px;">
-			<span style="fontSize:16px;">{{editTitle}}</span>
+			<span style="fontSize:16px;">{{editTitle==='编辑指标'?$t('ManualEdbListPage.edit_edb_msg'):$t('ManualEdbListPage.edit_input_data')}}</span>
 		</div>
-		<div class="dialog-min" style="height:460px;">
+		<div class="dialog-min" style="height:560px;">
 			<div style="overflowY:auto;overflowX:hidden;">
 				<el-tree
 				class="type-list"
@@ -30,10 +30,10 @@
 				<el-form
 				ref="formD"
 				label-position="right" 
-				label-width="80px" 
+				label-width="120px" 
 				:model="formData"
 				:rules="formRules">
-					<el-form-item label="指标分类" prop="type">
+					<el-form-item :label="$t('ManualEdbListPage.label_classify')" prop="type">
 						<span style="fontSize:14px;" :class="editTitle==='修改录入数据'?'not-allow':''">{{formData.type}}</span>
 					</el-form-item>
 					<!-- 修改数据 -->
@@ -58,19 +58,18 @@
 					</template>
 					<!-- 修改指标 -->
 					<template v-else>
-						<el-form-item label="频度" prop="frequency">
+						<el-form-item :label="$t('Edb.Detail.e_fre')" prop="frequency">
 							<!-- <span class="require_tag">*</span> -->
 							<el-select v-model="formData.frequency" placeholder="请选择频度" style="width: 321px" @change="handleFrequencyChange">
-								<el-option label="日度" value="日度"></el-option>
-								<el-option label="周度" value="周度"></el-option>
-								<el-option label="旬度" value="旬度"></el-option>
-								<el-option label="月度" value="月度"></el-option>
-								<el-option label="季度" value="季度"></el-option>
-								<el-option label="半年度" value="半年度"></el-option>
-								<el-option label="年度" value="年度"></el-option>
+								<el-option
+									v-for="item in frequencyArr"
+									:label="item.label" 
+									:value="item.value"
+									:key="item.value"
+								></el-option>
 							</el-select>
 						</el-form-item>
-						<el-form-item label="单位" prop="unit">
+						<el-form-item :label="$t('Edb.Detail.e_unit')" prop="unit">
 							<!-- <span class="require_tag">*</span> -->
 							<!-- <el-input v-model="formData.unit"  placeholder="请填写单位" style="width: 321px"></el-input> -->
 							<el-autocomplete
@@ -82,19 +81,18 @@
 								style="width: 321px;"
 							></el-autocomplete>
 						</el-form-item>
-						<el-form-item label="指标名称" prop="targetName">
+						<el-form-item :label="$t('Edb.Detail.e_name')" prop="targetName">
 							<!-- <span class="require_tag">*</span> -->
 							<el-input v-model="formData.targetName"  placeholder="请输入指标名称" style="width: 321px"></el-input>
 						</el-form-item>
-						<el-form-item label="更新提醒" prop="up_week" v-permission="permissionBtn.dataSourcePermission.manualData_add_updateRemind">
-							<el-select v-model="formData.up_week" placeholder="请选择更新周" style="width:145px" v-if="formData.frequency === '周度'">
-								<el-option label="周一" value="周一"></el-option>
-								<el-option label="周二" value="周二"></el-option>
-								<el-option label="周三" value="周三"></el-option>
-								<el-option label="周四" value="周四"></el-option>
-								<el-option label="周五" value="周五"></el-option>
-								<el-option label="周六" value="周六"></el-option>
-								<el-option label="周日" value="周日"></el-option>
+						<el-form-item :label="$t('ManualEdbListPage.label_update_remin')" prop="up_week" v-permission="permissionBtn.dataSourcePermission.manualData_add_updateRemind">
+							<el-select v-model="formData.up_week" :placeholder="$t('ManualEdbListPage.ph_update_remin')" style="width:145px" v-if="formData.frequency === '周度'">
+								<el-option
+									v-for="item in weeksArr"
+									:label="item.label" 
+									:value="item.value"
+									:key="item.value"
+								></el-option>
 							</el-select>
 							<el-select v-model="formData.up_day" placeholder="请选择更新日" style="width:145px" v-if="formData.frequency === '月度'">
 								<el-option :label="item" :value="item" v-for="(item,index) in days" :key="index"></el-option>
@@ -112,15 +110,15 @@
 								:style="formData.frequency === '日度'?'width:321px':'width:170px'"
 								v-model="formData.up_time"
 								value-format="HH:mm:ss"
-								placeholder="请选择更新时间">
+								:placeholder="$t('ManualEdbListPage.ph_update_remin')">
 							</el-time-picker>
 						</el-form-item>
 					</template>
 				</el-form>
-				<div slot="footer" class="dialog-footer" :style="editTitle==='修改录入数据'?'marginTop:150px;text-align:center;':'marginTop:95px;text-align:center;'">
-					<el-button type="primary" size="medium" @click.native="editHandle()">提交</el-button>
+				<div class="dialog-footer">
+					<el-button type="primary" size="medium" @click.native="editHandle()"><!-- 提交 -->{{$t('Dialog.submit_btn')}}</el-button>
 					<!-- <el-button type="primary" size="medium" @click.native="editHandle()" v-else>提交</el-button> -->
-					<el-button  size="medium" @click.native="cancelHandle" style="marginLeft:50px;">取消</el-button>
+					<el-button  size="medium" @click.native="cancelHandle" style="marginLeft:50px;"><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button>
 				</div>
 			</div>
 		</div>
@@ -178,25 +176,40 @@ import {dataInterence} from 'api/api.js';
 					date:[
 						{required: true, message: '请选择日期', trigger: 'blur'}
 					],
-					target:[
-						{ required: true,message: '频度不能为空', trigger: 'change' }
-					],
 					frequency:[
-						{ required: true,message: '频度不能为空', trigger: 'change' }
+						{ required: true,message: /* '频度不能为空' */this.$t('Edb.Valids.fre_msg'), trigger: 'change' }
 					],
 					value:[
-						{ required: true,message: '录入值不能为空', trigger: 'blur' }
+						{ required: true,message: /* '录入值不能为空' */this.$t('Edb.Valids.val_msg'), trigger: 'blur' }
 					],
 					target:[
 						{ required: true,message: '录入指标不能为空', trigger: 'change' }
 					],
 					unit:[
-						{ required: true,message: '单位不能为空', trigger: 'change' }
+						{ required: true,message: /* '单位不能为空' */this.$t('Edb.Valids.unit_msg'), trigger: 'change' }
 					],
 					targetName:[
-						{ required: true,message: '指标名称不能为空', trigger: 'blur' }
+						{ required: true,message: /* '指标名称不能为空' */this.$t('Edb.Valids.name_msg'), trigger: 'blur' }
 					],
 				},
+				frequencyArr: [
+					{ label:'日度',value:'日度' },
+					{ label:'周度',value:'周度' },
+					{ label:'旬度',value:'旬度' },
+					{ label:'月度',value:'月度' },
+					{ label:'季度',value:'季度' },
+					{ label:'半年度',value:'半年度' },
+					{ label:'年度',value:'年度' },
+				],
+				weeksArr: [
+					{ label:'周一',value:'周一' },
+					{ label:'周二',value:'周二' },
+					{ label:'周三',value:'周三' },
+					{ label:'周四',value:'周四' },
+					{ label:'周五',value:'周五' },
+					{ label:'周六',value:'周六' },
+					{ label:'周日',value:'周日' },
+				],
 				classify_id:'',//分类id
 				targetList:[],//指标列表
 				defaultNode:'',
@@ -488,5 +501,10 @@ import {dataInterence} from 'api/api.js';
 			margin-top: 5px!important;
 		}
 	}
+	.dialog-footer {
+		margin: 50px 0;
+		display: flex;
+		justify-content: center;
+	}
 }
 </style>

+ 9 - 14
src/views/dataEntry_manage/components/insertData.vue

@@ -1,6 +1,6 @@
 <template>
   <el-dialog
-    title="导入数据"
+    :title="$t('ManualEntryPage.tit_insert_data')"
     :visible.sync="isShowinsert"
     :close-on-click-modal="false"
     :modal-append-to-body="false"
@@ -15,7 +15,7 @@
         :src="$icons.imp"
         style="color: #fff; width: 16px; height: 16px; marginright: 5px"
       />
-      <span style="fontsize: 16px">导入数据</span>
+      <span style="fontsize: 16px">{{$t('ManualEntryPage.tit_insert_data')}}</span>
     </div>
     <div class="down-min">
       <dataLoading :loading="isLoading"/>
@@ -23,7 +23,7 @@
       <div class="download-ico">
         <a :href="downloadTemplate" download="模板">
           <i class="icon down_ico"></i>
-          <span style="color: #5882ef; cursor: pointer">下载模板</span>
+          <span style="color: #5882ef; cursor: pointer">{{$t('ManualEntryPage.down_tem')}}</span>
         </a>
         <!-- <a :href="downloadTemplate" download="模板" style="color:#5882EF;cursor:pointer;">下载模板</a> -->
       </div>
@@ -45,25 +45,20 @@
           :show-file-list="false"
         >
           <i class="icon up_ico"></i>
-          <span style="color: #5882ef; cursor: pointer">导入数据</span>
+          <span style="color: #5882ef; cursor: pointer">{{$t('ManualEntryPage.tit_insert_data')}}</span>
           <!-- <el-button type="primary">导入</el-button> -->
         </el-upload>
       </div>
     </div>
     <div class="down-tip-txt">
-      <span
-        >1、第一步,下载模板。按照模板要求的规范填写数据,空数据模板不允许导入。</span
-      >
-      <span
-        >2、第二步,上传数据。点击“导入数据”,上传已经填写好的模板,确认导入。</span
-      >
-      <span
-        >3、第三步,完成导入。若有导入失败数据,下载
+      <span>{{$t('ManualEntryPage.step_one')}}</span>
+      <span>{{$t('ManualEntryPage.step_two')}}</span>
+      <span>{{$t('ManualEntryPage.step_three')}}
         <a
           style="display: inline; color: #5882ef"
           :href="downloadErrorlist"
           download
-          >导入失败列表</a
+          >{{$t('ManualEntryPage.down_fail_list')}}</a
         >。</span
       >
     </div>
@@ -129,7 +124,7 @@ export default {
         return false;
       }
       if (size > 10) {
-        this.$message.warning("文件大小不得超过10M");
+        this.$message.warning(/* "文件大小不得超过10M" */this.$t('ManualEntryPage.upload_size_msg'));
         return false;
       }
     },

+ 23 - 23
src/views/dataEntry_manage/dataEntry.vue

@@ -18,11 +18,11 @@
             type="primary"
             style="width: 47%"
             @click="isShowinsert = true"
-            >导入excel数据</el-button
+            ><!-- 导入excel数据 -->{{$t('Common.imp_excel')}}</el-button
           >
           <el-button v-permission="permissionBtn.dataSourcePermission.manualDataWrite_copy"
           type="primary" style="width: 47%" @click="copyExcelNew"
-            >复制excel数据</el-button
+            ><!-- 复制excel数据 -->{{$t('Common.copy_excel')}}</el-button
           >
           <a style="width: 100%" :href="exportUrl" download>
             <el-button
@@ -30,7 +30,7 @@
               type="primary"
               style="width: 100%; margin-top: 14px"
               plain
-              >导出excel数据</el-button
+              ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
             >
           </a>
         </div>
@@ -41,13 +41,13 @@
             prefix-icon="el-icon-search"
             v-model="leftSearchVal"
             :fetch-suggestions="handleLeftSearch"
-            placeholder="请输入内容"
+            :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
             @select="handleSelectLeftSearchval"
             popper-class="el-autocomplete-suggestion-data-entry"
           >
             <template slot-scope="scope">
               <div v-if="scope.item.nodata" style="text-align: center">
-                暂无数据
+                <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}0
               </div>
               <div v-else>
                 {{ scope.item.SecName }}
@@ -74,7 +74,7 @@
       <div
         class="right-wrap wrap-box"
         v-loading="loading"
-        element-loading-text="拼命加载中"
+        :element-loading-text="$t('Table.data_loading')"
         element-loading-spinner="el-icon-loading"
       >
         <el-button
@@ -87,7 +87,7 @@
             padding: 10px 8px;
           "
           @click="copyExcel"
-          >编辑</el-button
+          ><!-- 编辑 -->{{$t('Table.edit_btn')}}</el-button
         >
         <div
           class="table-con"
@@ -226,10 +226,10 @@
         top: rightMouseMenu.top,
       }"
     >
-      <div class="item" @click="handleOptTable('插入行')">插入行</div>
-      <div class="item" @click="handleOptTable('插入列')">插入列</div>
-      <div class="item" @click="handleOptTable('删除行')">删除行</div>
-      <div class="item" @click="handleOptTable('删除列')">删除列</div>
+      <div class="item" @click="handleOptTable('插入行')"><!-- 插入行 -->{{$t('ManualEntryPage.right_op_insertrow')}}</div>
+      <div class="item" @click="handleOptTable('插入列')"><!-- 插入列 -->{{$t('ManualEntryPage.right_op_insertcol')}}</div>
+      <div class="item" @click="handleOptTable('删除行')"><!-- 删除行 -->{{$t('ManualEntryPage.right_op_delrow')}}</div>
+      <div class="item" @click="handleOptTable('删除列')"><!-- 删除列 -->{{$t('ManualEntryPage.right_op_delcol')}}</div>
     </div>
 
     <!-- 导入数据弹窗 -->
@@ -266,12 +266,12 @@ export default {
         "Status",
       ],
       tableHeadMap: new Map([
-        ["SecName", "指标名称"],
-        ["TradeCode", "指标ID"],
-        ["Frequency", "频度"],
-        ["Unit", "单位"],
-        ["ModifyDate", "待更新日期"],
-        ["Status", "更新状态"],
+        ["SecName", /* "指标名称" */ this.$t('Edb.Detail.e_name')],
+        ["TradeCode", /* "指标ID" */this.$t('Edb.Detail.e_id')],
+        ["Frequency", /* "频度" */this.$t('Edb.Detail.e_fre')],
+        ["Unit", /* "单位" */this.$t('Edb.Detail.e_unit')],
+        ["ModifyDate", /* "待更新日期" */this.$t('ManualEntryPage.col_modify_date')],
+        ["Status", /* "更新状态" */this.$t('ManualEntryPage.col_update_status')],
       ]),
       tableHeadData: [], // 表头数据
       tableData: [], //表格数据
@@ -562,7 +562,7 @@ export default {
           this.handleChangeTradeStatus(e);
           this.handleUpdateClassify();
           this.$message({
-            message: "新增成功",
+            message: /* "新增成功" */this.$t('MsgPrompt.add_msg'),
             type: "success",
           });
         } else {
@@ -589,7 +589,7 @@ export default {
             });
             if (editRes.Ret === 200) {
               this.$message({
-                message: "修改成功",
+                message: /* "修改成功" */this.$t('MsgPrompt.edit_msg'),
                 type: "success",
               });
             } else {
@@ -1016,7 +1016,7 @@ export default {
         TradeCodeList: codeArr,
       });
       if (res.Ret === 200) {
-        this.$message.success("删除成功");
+        this.$message.success(/* "删除成功" */this.$t('MsgPrompt.delete_msg'));
         this.tableData.splice(this.rightMouseMenu.rindex, 1);
       } else {
         this.$message(res.msg);
@@ -1037,7 +1037,7 @@ export default {
         this.tableData.forEach((item) => {
           item.list.splice(this.rightMouseMenu.cindex, 1);
         });
-        this.$message.success("删除成功");
+        this.$message.success(/* "删除成功" */this.$t('MsgPrompt.delete_msg'));
         return;
       }
 
@@ -1048,7 +1048,7 @@ export default {
         this.tableData.forEach((item) => {
           item.list.splice(this.rightMouseMenu.cindex, 1);
         });
-        this.$message.success("删除成功");
+        this.$message.success(/* "删除成功" */this.$t('MsgPrompt.delete_msg'));
         return;
       }
 
@@ -1056,7 +1056,7 @@ export default {
         TradeCode: TradeCode,
       });
       if (res.Ret === 200) {
-        this.$message.success("删除成功");
+        this.$message.success(/* "删除成功" */this.$t('MsgPrompt.delete_msg'));
         this.tableHeadData.splice(this.rightMouseMenu.cindex, 1);
         this.tableData.forEach((item) => {
           item.list.splice(this.rightMouseMenu.cindex, 1);

+ 23 - 19
src/views/dataEntry_manage/gasbase/history.vue

@@ -5,14 +5,14 @@
                 v-model="date" 
                 type="daterange" 
                 value-format="yyyy-MM-dd" 
-                range-separator="至" 
+                :range-separator="$t('Common.to')" 
                 start-placeholder="开始日期" 
                 :clearable='false'
                 @change="dateChange"
                 end-placeholder="结束日期"> 
             </el-date-picker>
             <el-breadcrumb separator-class="el-icon-arrow-right" class="path-conts">
-                <el-breadcrumb-item style="cursor: pointer" @click.native="handleTopChange('首页',-1)">首页</el-breadcrumb-item>
+                <el-breadcrumb-item style="cursor: pointer" @click.native="handleTopChange('首页',-1)"><!-- 首页 -->{{$t('GasDataPage.top_page')}}</el-breadcrumb-item>
                 <el-breadcrumb-item 
 					v-for="(item,index) in levelPath" 
 					:key="item.id" 
@@ -25,9 +25,9 @@
             :data="tableData" 
             border height="75vh" 
             v-loading="loading"
-            element-loading-text="拼命加载中" 
+            :element-loading-text="$t('Table.data_loading')"
             element-loading-spinner="el-icon-loading"
-            empty-text="没有此日期的数据,请重新选择日期"
+            :empty-text="$t('GasDataPage.no_data_msg')"
         >
             <el-table-column
                 v-for="item in tableColums"
@@ -64,26 +64,30 @@ export default {
 			code:this.$route.query.EicCode,
             levelPath: [],
             tableData: [], //表格数据
-            tableColums: [
-                { label: "日期", prop: "gasDayStart", minwidthsty: "100px" },
-                { label: "天然气存量", prop: "gasInStorage", unit: "TWh", minwidthsty: "100px" },
-                { label: "储存容量百分比", prop: "full", unit: "%", minwidthsty: "120px" },
-                { label: "较前日对比", prop: "trend", unit: "%", minwidthsty: "110px" },
-                { label: "注入量", prop: "injection", unit: "GWh/d", minwidthsty: "80px" },
-                { label: "减少量", prop: "withdrawal", unit: "GWh/d", minwidthsty: "80px" },
-                { label: "最大存量", prop: "workingGasVolume", unit: "TWh", minwidthsty: "100px" },
-                { label: "注入速度", prop: "injectionCapacity", unit: "GWh/d", minwidthsty: "100px" },
-                { label: "取出速度", prop: "withdrawalCapacity", unit: "GWh/d", minwidthsty: "100px" },
-                { label: "数据状态", prop: "status" },
-            ], //列配置
             statusMap: new Map([
-				['E', '估计'],
-				['C', '已确认'],
-				['N', '无数据'],
+				["E", /* "估计" */this.$t('GasDataPage.status_estimate')],
+                ["C", /* "已确认" */ this.$t('GasDataPage.status_confirm')],
+                ["N", /* "无数据" */this.$t('GasDataPage.status_no')],
 			]),//E(估计)C(已确认)N(无数据)
             loading:false,
         };
     },
+    computed: {
+        tableColums(){
+            return [
+                { label: /* "日期" */this.$t('GasDataPage.col_date'), prop: "gasDayStart", minwidthsty: "100px" },
+                { label: /* "天然气存量" */this.$t('GasDataPage.col_gas_stock'), prop: "gasInStorage", unit: "TWh", minwidthsty: "100px" },
+                { label: /* "储存容量百分比" */this.$t('GasDataPage.col_full'), prop: "full", unit: "%", minwidthsty: "120px" },
+                { label: /* "较前日对比" */this.$t('GasDataPage.col_trend'), prop: "trend", unit: "%", minwidthsty: "110px" },
+                { label: /* "注入量" */this.$t('GasDataPage.col_inject'), prop: "injection", unit: "GWh/d", minwidthsty: "80px" },
+                { label: /* "减少量" */this.$t('GasDataPage.col_withdraw'), prop: "withdrawal", unit: "GWh/d", minwidthsty: "80px" },
+                { label: /* "最大存量" */this.$t('GasDataPage.col_max_stock'), prop: "workingGasVolume", unit: "TWh", minwidthsty: "100px" },
+                { label: /* "注入速度" */this.$t('GasDataPage.col_inject_speed'), prop: "injectionCapacity", unit: "GWh/d", minwidthsty: "100px" },
+                { label: /* "取出速度" */this.$t('GasDataPage.col_withdraw_speed'), prop: "withdrawalCapacity", unit: "GWh/d", minwidthsty: "100px" },
+                { label: /* "数据状态" */this.$t('GasDataPage.col_status'), prop: "status" },
+            ] //列配置
+        }
+    },
     methods: {
 		handleTopChange(e,index){
 			if(e=='首页'){

+ 46 - 41
src/views/dataEntry_manage/gasbase/index.vue

@@ -4,7 +4,7 @@
       <el-date-picker
         v-model="select_date"
         type="date"
-        placeholder="选择日期"
+        :placeholder="$t('GasDataPage.ph_date')"
         value-format="yyyy-MM-dd"
         @change="handleTimeChange"
         :clearable="false"
@@ -20,9 +20,9 @@
       lazy
       :load="handleLoad"
       v-loading="loading"
-      element-loading-text="拼命加载中"
+      :element-loading-text="$t('Table.data_loading')"
       element-loading-spinner="el-icon-loading"
-      empty-text="没有此日期的数据,请重新选择日期"
+      :empty-text="$t('GasDataPage.no_data_msg')"
     >
       <el-table-column
         v-for="item in tableColums"
@@ -54,7 +54,7 @@
             v-if="item.prop === 'action'"
             class="editsty"
             @click="lookHistory(scope.row)"
-            >历史数据</span
+            ><!-- 历史数据 -->{{$t('GasDataPage.op_history')}}</span
           >
           <span
             v-else-if="item.prop === 'Status'"
@@ -83,7 +83,28 @@ export default {
       select_date: "",
       tableData: [],
       expandKeys: [],
-      tableColums: [
+      
+      statusMap: new Map([
+        ["E", /* "估计" */this.$t('GasDataPage.status_estimate')],
+        ["C", /* "已确认" */ this.$t('GasDataPage.status_confirm')],
+        ["N", /* "无数据" */this.$t('GasDataPage.status_no')],
+      ]), //E(估计)C(已确认)N(无数据)
+      listJudge: [
+        { prop: "injection", val: "Injection" },
+        { prop: "gasInStorage", val: "GasInStorage" },
+        { prop: "full", val: "Full" },
+        { prop: "trend", val: "Trend" },
+        { prop: "withdrawal", val: "Withdrawal" },
+        { prop: "workingGasVolume", val: "WorkingGasVolume" },
+        { prop: "injectionCapacity", val: "InjectionCapacity" },
+        { prop: "withdrawalCapacity", val: "WithdrawalCapacity" },
+      ],
+      loading: false,
+    };
+  },
+  computed: {
+    tableColums(){
+      return [
         {
           label: "",
           prop: "Name",
@@ -91,90 +112,74 @@ export default {
           widthsty: "200px",
           fixed: true,
         },
-        { label: "指标ID", prop: "GasInStorageCode", fixed: false },
+        { label: /* "指标ID" */ this.$t('Edb.Detail.e_id'), prop: "GasInStorageCode", fixed: false },
         {
-          label: "天然气存量",
+          label: /* "天然气存量" */this.$t('GasDataPage.col_gas_stock'),
           prop: "gasInStorage",
           unit: "TWh",
           widthsty: "100px",
           fixed: false,
         },
-        { label: "指标ID", prop: "FullCode", fixed: false },
+        { label: /* "指标ID" */this.$t('Edb.Detail.e_id'), prop: "FullCode", fixed: false },
         {
-          label: "储存容量百分比",
+          label: /* "储存容量百分比" */this.$t('GasDataPage.col_full'),
           prop: "full",
           unit: "%",
           widthsty: "120px",
           fixed: false,
         },
-        { label: "指标ID", prop: "TrendCode", fixed: false },
+        { label: /* "指标ID" */this.$t('Edb.Detail.e_id'), prop: "TrendCode", fixed: false },
         {
-          label: "较前日对比",
+          label: /* "较前日对比" */this.$t('GasDataPage.col_trend'),
           prop: "trend",
           unit: "%",
           widthsty: "110px",
           fixed: false,
         },
-        { label: "指标ID", prop: "InjectionCode", fixed: false },
+        { label: /* "指标ID" */this.$t('Edb.Detail.e_id'), prop: "InjectionCode", fixed: false },
         {
-          label: "注入量",
+          label: /* "注入量" */this.$t('GasDataPage.col_inject'),
           prop: "injection",
           unit: "GWh/d",
           widthsty: "80px",
           fixed: false,
         },
-        { label: "指标ID", prop: "WithdrawalCode", fixed: false },
+        { label: /* "指标ID" */this.$t('Edb.Detail.e_id'), prop: "WithdrawalCode", fixed: false },
         {
-          label: "减少量",
+          label: /* "减少量" */this.$t('GasDataPage.col_withdraw'),
           prop: "withdrawal",
           unit: "GWh/d",
           widthsty: "80px",
           fixed: false,
         },
-        { label: "指标ID", prop: "WorkingGasVolumeCode", fixed: false },
+        { label: /* "指标ID" */this.$t('Edb.Detail.e_id'), prop: "WorkingGasVolumeCode", fixed: false },
         {
-          label: "最大存量",
+          label: /* "最大存量" */this.$t('GasDataPage.col_max_stock'),
           prop: "workingGasVolume",
           unit: "TWh",
           widthsty: "100px",
           fixed: false,
         },
-        { label: "指标ID", prop: "InjectionCapacityCode", fixed: false },
+        { label: /* "指标ID" */this.$t('Edb.Detail.e_id'), prop: "InjectionCapacityCode", fixed: false },
         {
-          label: "注入速度",
+          label: /* "注入速度" */this.$t('GasDataPage.col_inject_speed'),
           prop: "injectionCapacity",
           unit: "GWh/d",
           widthsty: "100px",
           fixed: false,
         },
-        { label: "指标ID", prop: "WithdrawalCapacityCode", fixed: false },
+        { label: /* "指标ID" */this.$t('Edb.Detail.e_id'), prop: "WithdrawalCapacityCode", fixed: false },
         {
-          label: "取出速度",
+          label: /* "取出速度" */this.$t('GasDataPage.col_withdraw_speed'),
           prop: "withdrawalCapacity",
           unit: "GWh/d",
           widthsty: "100px",
           fixed: false,
         },
-        { label: "数据状态", prop: "Status", widthsty: "100px", fixed: false },
-        { label: "操作", prop: "action", widthsty: "120px", fixed: false },
-      ], //列配置
-      statusMap: new Map([
-        ["E", "估计"],
-        ["C", "已确认"],
-        ["N", "无数据"],
-      ]), //E(估计)C(已确认)N(无数据)
-      listJudge: [
-        { prop: "injection", val: "Injection" },
-        { prop: "gasInStorage", val: "GasInStorage" },
-        { prop: "full", val: "Full" },
-        { prop: "trend", val: "Trend" },
-        { prop: "withdrawal", val: "Withdrawal" },
-        { prop: "workingGasVolume", val: "WorkingGasVolume" },
-        { prop: "injectionCapacity", val: "InjectionCapacity" },
-        { prop: "withdrawalCapacity", val: "WithdrawalCapacity" },
-      ],
-      loading: false,
-    };
+        { label: /* "数据状态" */this.$t('GasDataPage.col_status'), prop: "Status", widthsty: "100px", fixed: false },
+        { label: /* "操作" */this.$t('Table.column_operations'), prop: "action", widthsty: "120px", fixed: false },
+      ] //列配置
+    }
   },
   methods: {
     handleTimeChange() {

+ 1 - 1
src/views/dataEntry_manage/googleTravel/index.vue

@@ -22,7 +22,7 @@
           {{scope.row.Code}}
         </template>
       </el-table-column>
-      <el-table-column label="指标ID" prop="EdbCode" align="center"
+      <el-table-column :label="$t('Edb.Detail.e_id')" prop="EdbCode" align="center"
       show-overflow-tooltip>
         <template slot-scope="scope" >
           {{scope.row.EdbCode}}

+ 17 - 14
src/views/dataEntry_manage/onlineExcelCopy.vue

@@ -6,37 +6,33 @@
     </div>
     <div class="data-options-box">
       <div class="data-options-buttons">
-        <el-button type="primary" style="width: 80px;font-size: 16px;" @click="saveExcel">保存</el-button>
-        <el-button plain style="width: 80px;font-size: 16px;" @click="cancel">取消</el-button>
+        <el-button type="primary" style="width: 80px;font-size: 16px;" @click="saveExcel"><!-- 保存 -->{{$t('Dialog.confirm_save_btn')}}</el-button>
+        <el-button plain style="width: 80px;font-size: 16px;" @click="cancel"><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button>
       </div>
       <div class="data-options" >
         <el-form :model="dataForm" label-position="top" ref="dataOptions">
-          <el-form-item label="一级分类" prop="firstClassify" :rules="[{required:true,message:'一级分类不能为空',trigger:'change'}]">
+          <el-form-item :label="$t('ManualEntryPage.label_one_level_classify')" prop="firstClassify" :rules="[{required:true,message:'一级分类不能为空',trigger:'change'}]">
             <el-select v-model="dataForm.firstClassify" placeholder="请选择一级分类" style="width: 100%;" @change="changeFirstClassify">
               <el-option :label="item.ClassifyName" :value="item.ClassifyId" v-for="item in classifyArray" :key="item.ClassifyId"></el-option>
             </el-select>
           </el-form-item>
-          <el-form-item label="指标分类" prop="secondClassify" :rules="[{required:true,message:'指标分类不能为空',trigger:'change'}]">
+          <el-form-item :label="$t('ManualEntryPage.label_edb_classify')" prop="secondClassify" :rules="[{required:true,message:'指标分类不能为空',trigger:'change'}]">
             <el-select v-model="dataForm.secondClassify" placeholder="请选择指标分类" style="width: 100%;" @change="changeSecondClassify">
               <el-option :label="item.ClassifyName" :value="item.ClassifyId" v-for="item in secondClassifyArray" :key="item.ClassifyId"></el-option>
             </el-select>
           </el-form-item>
-          <el-form-item label="频度" prop="frequency" :rules="[{required:true,message:'频度不能为空',trigger:'change'}]">
+          <el-form-item :label="$t('Edb.Detail.e_fre')" prop="frequency" :rules="[{required:true,message:'频度不能为空',trigger:'change'}]">
             <el-select v-model="dataForm.frequency" placeholder="请选择频度" style="width: 100%;" @change="changeFrequency">
               <el-option :label="item" :value="item" v-for="item in frequencyList" :key="item"></el-option>
             </el-select>
           </el-form-item>
         </el-form>
         <el-tooltip :open-delay="400">
-          <div slot="content">
-            <p class="hint-message">1、新增指标:在预设好的指标列下输入指标名称、单位、数值并保存;</p>
-            <p class="hint-message">2、新增日期:在第一列选择日期或插入日期行(需复制已有日期格式)输入数值并保存;</p>
-            <p class="hint-message">3、清除指标:清空该指标下所有数据并保存,该操作不会删除指标,仅清除指标数据,请勿直接删除指标列;</p>
-            <p class="hint-message">4、删除日期:清空该日期对应所有数据并保存,请勿直接删除日期行;</p>
-            <p class="hint-message">5、指标名称编辑、单位编辑、频度编辑、指标删除等操作请在“手工指标列表”中完成;</p>
+          <div slot="content" v-html="$t('ManualEntryPage.use_msg')">
+            
           </div>
           <div class="instruction-hint" >
-            <span>使用说明</span>
+            <span><!-- 使用说明 -->{{$t('ManualEntryPage.use_intro')}}</span>
             <i class="el-icon-question" style="color: #999;"></i>
           </div>
         </el-tooltip>
@@ -58,7 +54,7 @@ export default {
     // 初始化数据
     this.options={
       container:'luckysheet',
-      lang: 'zh',
+      lang: this.$i18nt.locale,
       gridKey:'handmade-excel',
       showinfobar:false,
       row:300,
@@ -164,7 +160,14 @@ export default {
       saveLoading:false,
       isEdit:"false",
       refreshed:false,
-      haveSaveProtected:false
+      haveSaveProtected:false,
+      hintMsg:`
+        1、新增指标:在预设好的指标列下输入指标名称、单位、数值并保存;</br>
+        2、新增日期:在第一列选择日期或插入日期行(需复制已有日期格式)输入数值并保存;</br>
+        3、清除指标:清空该指标下所有数据并保存,该操作不会删除指标,仅清除指标数据,请勿直接删除指标列;</br>
+        4、删除日期:清空该日期对应所有数据并保存,请勿直接删除日期行;</br>
+        5、指标名称编辑、单位编辑、频度编辑、指标删除等操作请在“手工指标列表”中完成;</br>
+      `
     }
   },
 created() {

+ 32 - 22
src/views/dataEntry_manage/targetList.vue

@@ -5,11 +5,15 @@
 			<el-button type="primary" size="medium" style="marginRight:20px;" @click="insertData(2)">新增指标</el-button>
 			<el-button type="primary" size="medium" style="marginRight:20px;" @click="handleImport">导入数据</el-button>
 			<el-button size="medium" @click="handleExport">导出数据</el-button> -->
-			<el-button v-permission="permissionBtn.dataSourcePermission.manualData_add"
-                type="primary" size="medium" @click="insertData(2)">新增指标</el-button>
+			<el-button 
+				v-permission="permissionBtn.dataSourcePermission.manualData_add"
+        type="primary"
+				size="medium" 
+				@click="insertData(2)"
+			><!-- 新增指标 -->{{$t('ManualEdbListPage.add_edb_btn')}}</el-button>
 			<!-- <el-button type="primary" size="medium" @click="handleImport">导入新指标</el-button> -->
 			<el-input
-				placeholder="关键字搜索"
+				:placeholder="$t('ManualEdbListPage.ph_search')"
 				v-model="search_txt"
 				@input="searchHandle"
 				style="maxWidth:260px;float:right">
@@ -23,12 +27,18 @@
 					v-model="classify_id"
 					:props="classifyProps"
 					@change="classifyChange"
-					placeholder="请选择分类"
+					:placeholder="$t('ManualEdbListPage.ph_classify')"
 					:show-all-levels="false"
 					style="maxWidth:240px;marginRight:30px;"
 					clearable>
 				</el-cascader>
-				<el-select v-model="frequency" placeholder="请选择频度" @change="frequencyChange" style="maxWidth:240px;marginRight:30px;" clearable>
+				<el-select 
+					v-model="frequency" 
+					:placeholder="$t('Edb.InputHolderAll.input_fre')" 
+					@change="frequencyChange" 
+					style="maxWidth:240px;marginRight:30px;" 
+					clearable
+				>
 					<el-option
 						v-for="item in frequencyList"
 						:key="item.value"
@@ -39,9 +49,9 @@
 				<el-date-picker
 					v-model="date"
 					type="daterange"
-					range-separator="至"
-					start-placeholder="开始日期"
-					end-placeholder="结束日期"
+					:range-separator="$t('Common.to')"
+					:start-placeholder="$t('Edb.InputHolderAll.ph_start_time')"
+					:end-placeholder="$t('Edb.InputHolderAll.ph_end_time')"
 					@change="dateChange"
 					value-format="yyyy-MM-dd">
 				</el-date-picker>
@@ -56,58 +66,58 @@
 				<!-- 指标表格 -->
 				<el-table-column
 				prop="CreateDate"
-				label="日期"
+				:label="$t('ManualEdbListPage.table_col_date')"
 				sortable
 				align="center">
 					<template slot-scope="scope"> <span style="position: relative;">{{scope.row.CreateDate|formatTime}}<i v-if="scope.row.CreateDate.substr(0,10)===today" style="width:6px;height:6px;background:#FB5F5F;borderRadius:50%;position:absolute;right:-10px;top:-3px;"></i></span> </template>
 				</el-table-column>
 				<el-table-column
 				prop="TradeCode"
-				label="指标ID"
+				:label="$t('Edb.Detail.e_id')"
 				align="center">
 					<template slot-scope="scope"> <span>{{scope.row.TradeCode}}</span> </template>
 				</el-table-column>
 				<el-table-column
 				prop="SecName"
-				label="指标名称"
+				:label="$t('Edb.Detail.e_name')"
 				align="center">
 					<template slot-scope="scope"> <span>{{scope.row.SecName}}</span> </template>
 				</el-table-column>
 				<el-table-column
 				prop="Frequency"
-				label="频度"
+				:label="$t('Edb.Detail.e_fre')"
 				align="center">
 					<template slot-scope="scope"> <span>{{scope.row.Frequency}}</span> </template>
 				</el-table-column>
 				<el-table-column
 				prop="ClassifyName"
-				label="分类"
+				:label="$t('ManualEdbListPage.table_col_classify')"
 				align="center">
 					<template slot-scope="scope"> <span>{{scope.row.ClassifyName}}</span> </template>
 				</el-table-column>
 				<el-table-column
 				prop="Unit"
-				label="单位"
+				:label="$t('Edb.Detail.e_unit')"
 				align="center">
 					<template slot-scope="scope"> <span>{{scope.row.Unit}}</span> </template>
 				</el-table-column>
 				<el-table-column
-				label="创建人"
+				:label="$t('ManualEdbListPage.table_col_creator')"
 				align="center">
 					<template slot-scope="scope"> <span>{{scope.row.UserName}}</span> </template>
 				</el-table-column>
-				<el-table-column label="操作" align="center">
+				<el-table-column :label="$t('Table.column_operations')" align="center">
 					<template slot-scope="scope">
 						<div style="color:#4099ef; font-size:24px;">
 							<span v-permission="permissionBtn.dataSourcePermission.manualData_add"
-                                class="editsty" @click="editHandle(scope.row)" style="marginRight:20px;">编辑</span>
+                                class="editsty" @click="editHandle(scope.row)" style="marginRight:20px;">{{$t('Table.edit_btn')}}</span>
 							<span v-permission="permissionBtn.dataSourcePermission.manualData_del"
-                                class="deletesty" @click="delHandle(scope.row)">删除</span>
+                                class="deletesty" @click="delHandle(scope.row)">{{$t('Table.delete_btn')}}</span>
 						</div>
 					</template>
 				</el-table-column>
 				<div  slot="empty" style="lineHeight:25px;margin:20px 0;color:#95A9C5;">
-					<tableNoData text="暂无搜索结果" size="mini"/>
+					<tableNoData :text="$t('ManualEdbListPage.no_search_msg')" size="mini"/>
 				</div>
 			</el-table>
 			<div class="toolbar">
@@ -553,15 +563,15 @@ export default {
 				TradeCode:item.TradeCode
 			}).then(res => {
 					this.$confirm(
-						res.Data.Status===0 ? '是否确认删除该指标?' : '若删除此指标,该指标下关联的数据也将全部删除,是否确认删除?',
-						'提示',{
+						res.Data.Status===0 ? this.$t('ManualEdbListPage.del_edb_msg') : this.$t('ManualEdbListPage.del_edb_rela_msg'),
+						this.$t('Dialog.warn_tit'),{
 						type:'warning'
 					}).then(() => {
 						dataInterence.delTarget({
 							TradeCode:item.TradeCode
 						}).then(res =>{
 								if( res.Ret !== 200 ) return
-								this.$message.success('删除成功!');
+								this.$message.success(/* '删除成功!' */this.$t('MsgPrompt.delete_msg'));
 								this.getTableData();
 							});
 					}).catch(() => {});

+ 26 - 30
src/views/dataEntry_manage/thirdBase/BAIINFOTargetbase.vue

@@ -24,7 +24,7 @@
           size="medium"
           @click="exportClick"
           :loading="btnload"
-          >导出Excel</el-button
+          ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
         >
         <el-autocomplete
           style="margin: 20px 0; width: 100%"
@@ -32,14 +32,14 @@
           v-model="leftSearchVal"
           :fetch-suggestions="handleLeftSearch"
           :trigger-on-focus="false"
-          placeholder="指标名称/指标ID"
+          :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
           @select="handleSelectLeftSearchval"
           popper-class="el-autocomplete-suggestion-data-entry"
           clearable
         >
           <template slot-scope="scope">
             <div v-if="scope.item.nodata" style="text-align: center">
-              暂无数据
+               <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}
             </div>
             <div v-else>
               {{ scope.item.IndexName }}
@@ -133,7 +133,7 @@
             alt=""
             style="width: 16px; height: 16px; margin: 10px"
           />
-          <span>添加分类</span>
+          <span><!-- 添加分类 -->{{$t('SteelChemicalPage.add_classify_btn')}}</span>
         </div>
       </div>
       <span
@@ -148,7 +148,7 @@
       class="right-cont minHeight"
       id="right"
       v-loading="dataloading"
-      element-loading-text="获取数据中..."
+      :element-loading-text="$t('Table.data_loading')"
     >
       <template v-if="rightShow">
         <div class="right-box" @scroll="scrollHandle">
@@ -187,14 +187,14 @@
         </div>
       </template>
       <div v-else class="nodata-cont">
-        <tableNoData text="暂无数据"/>
+        <tableNoData :text="$t('Table.prompt_slogan')"/>
       </div>
     </div>
     <!-- 添加/编辑分类弹窗 -->
     <m-dialog
       :show.sync="openClassifyDia"
       width="700px"
-      :title="classifyForm.title"
+      :title="classifyForm.title==='添加分类'?$t('SteelChemicalPage.add_classify_btn'):$t('SteelChemicalPage.edit_classify_msg')"
       @close="cancelDialogHandle"
     >
       <div class="dialog-cont smmTarget-dialog-cont">
@@ -202,37 +202,37 @@
           ref="classifyFormRef"
           label-position="left"
           hide-required-asterisk
-          label-width="80px"
+          label-width="120px"
           :model="classifyForm"
           :rules="classifyFormRules"
         >
           <!-- 是二级分类 -->
           <el-form-item
-            label="一级目录"
+            :label="$t('SteelChemicalPage.label_one_level')"  
             v-if="classifyForm.parent_classify_name"
           >
             <span>{{ classifyForm.parent_classify_name }}</span>
           </el-form-item>
           <!-- 是分类 -->
           <el-form-item
-            label="分类名称"
+            :label="$t('SteelChemicalPage.label_classify_name')"
             prop="classify_name"
             v-if="classifyForm.type === 'classify'"
           >
             <el-input
               v-model="classifyForm.classify_name"
               style="width: 80%"
-              placeholder="请输入分类名称"
+              :placeholder="$t('Dialog.require_vaild')"
             />
           </el-form-item>
           <!-- 是指标 -->
           <template v-else>
-            <el-form-item label="指标名称">
+            <el-form-item :label="$t('Edb.Detail.e_name')">
               <span>{{ classifyForm.classify_name }}</span>
             </el-form-item>
-            <el-form-item label="频度" prop="frequency">
+            <el-form-item :label="$t('Edb.Detail.e_fre')" prop="frequency">
               <el-select
-                placeholder="请选择频度"
+                :placeholder="$t('Edb.InputHolderAll.input_fre')"
                 style="width: 80%"
                 v-model="classifyForm.frequency"
               >
@@ -245,7 +245,7 @@
                 </el-option>
               </el-select>
             </el-form-item>
-            <el-form-item label="单位" prop="unit">
+            <el-form-item :label="$t('Edb.Detail.e_unit')" prop="unit">
               <el-select
                 placeholder="请选择单位"
                 style="width: 80%"
@@ -261,7 +261,7 @@
               </el-select>
             </el-form-item>
             <el-form-item
-              label="分类名称"
+              :label="$t('SteelChemicalPage.label_classify_name')"
               prop="classifys_id"
               v-if="classifyForm.by !== 'table'"
             >
@@ -286,10 +286,10 @@
           type="primary"
           style="margin-right: 20px"
           @click="saveClassifyHandle"
-          >保存</el-button
+          ><!-- 保存 -->{{$t('Dialog.confirm_save_btn')}}</el-button
         >
         <el-button type="primary" plain @click="cancelDialogHandle"
-          >取消</el-button
+          ><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button
         >
       </div>
     </m-dialog>
@@ -826,11 +826,9 @@ export default {
       //如果分类下有子分类或指标
       let hintText =
         Children && Children.length
-          ? "删除分类将同步删除分类下所有子分类,确认删除吗?"
-          : "删除分类不可恢复,确定删除吗?";
-      this.$confirm(hintText, "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
+          ? this.$t('SteelChemicalPage.del_classify_only_msg')
+          : this.$t('SteelChemicalPage.del_classify_msg');
+      this.$confirm(hintText, this.$t('Dialog.warn_tit'), {
         type: "warning",
       })
         .then(() => {
@@ -841,7 +839,7 @@ export default {
             })
             .then((res) => {
               if (res.Ret !== 200) return;
-              this.$message.success("删除成功");
+              this.$message.success(/* "删除成功" */this.$t('MsgPrompt.delete_msg'));
               this.getClassify();
             });
         })
@@ -863,9 +861,7 @@ export default {
     //删除指标
     deleteTarget(data, node) {
       const { BaseFromBaiinfoIndexId } = data;
-      this.$confirm("指标删除后不可被引用,确认删除吗?", "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
+      this.$confirm(this.$t('SteelChemicalPage.del_edb_msg'), this.$t('Dialog.warn_tit'), {
         type: "warning",
       })
         .then(() => {
@@ -875,7 +871,7 @@ export default {
             })
             .then((res) => {
               if (res.Ret !== 200) return;
-              this.$message.success("删除成功");
+              this.$message.success(/* "删除成功" */this.$t('MsgPrompt.delete_msg'));
               this.getClassify();
             });
           //删除指标接口
@@ -1107,7 +1103,7 @@ export default {
         })
         .then((res) => {
           if (res.Ret !== 200) return;
-          this.$message.success("移动成功!");
+          this.$message.success(/* "移动成功!" */this.$t('MsgPrompt.move_success_msg'));
           this.getClassify();
         });
     },
@@ -1160,7 +1156,7 @@ export default {
         })
         .then((res) => {
           if (res.Ret !== 200) return;
-          this.$message.success("移动成功!");
+          this.$message.success(/* "移动成功!" */this.$t('MsgPrompt.move_success_msg'));
           this.getClassify();
         });
     },

+ 27 - 22
src/views/dataEntry_manage/thirdBase/DatabankBase.vue

@@ -15,21 +15,21 @@
                 ></el-option>
             </el-select>
             <el-select v-model="selectValue" @change="handleCurrentChange(1)"
-                placeholder="请选择频度"
+                :placeholder="$t('Edb.InputHolderAll.input_fre')"
                 clearable
                 style="width:240px;margin-left: auto;">
                 <el-option v-for="item in frequencyList" 
                     :key="item" :value="item" :label="item" />
             </el-select>
             <el-input v-model="inputValue" @input="handleCurrentChange(1)"
-            placeholder="指标ID/指标名称"
+            :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
             clearable
             prefix-icon="el-icon-search"
             style="width:240px;margin-left:30px;"></el-input>
         </div>
         <div class="table-box">
             <el-table :data="tableData" border  @sort-change="sortChange" 
-                v-loading="tableLoading" :element-loading-text="$t('Table.data_loading')" >
+                v-loading="tableLoading" :element-loading-text="$t('Table.data_loading')" > 
                 <el-table-column v-for="column in tableColumnList" 
                     align="center"
                     :key="column.key"
@@ -38,7 +38,7 @@
                     :min-width="column.minWidth"
                     :sortable="column.sortable"></el-table-column>
                 <div class="empty-box" slot="empty">
-                    <tableNoData text="暂无数据"/>
+                    <tableNoData :text="$t('Table.prompt_slogan')"/>
                 </div>
             </el-table>
         </div>
@@ -69,52 +69,57 @@ export default {
 
             inputValue:'',//搜索框
 
-            tableColumnList:[
+            
+            tableData:[],//表格数据
+            pageNo:1,
+            pageSize:15,
+            total:0,
+            SortField:0,
+            SortRule:0,
+            tableLoading:false,
+        };
+    },
+    computed: {
+        tableColumnList() {
+            return  [
                 {
                     key:'Id',
-                    label:'指标ID'
+                    label:/* '指标ID' */ this.$t('Edb.Detail.e_id')
                 },
                 {
                     key:'Code',
-                    label:'指标编码'
+                    label:/* '指标编码' */this.$t('Edb.Detail.e_code')
                 },
                 {
                     key:'Name',
-                    label:'指标名称',
+                    label:/* '指标名称', */this.$t('Edb.Detail.e_name'),
                     minWidth:170,
                 },
                 {
                     key:'Frequency',
-                    label:'频度'
+                    label:/* '频度' */this.$t('Edb.Detail.e_fre'),
                 },
                 {
                     key:'Unit',
-                    label:'单位'
+                    label:/* '单位' */this.$t('Edb.Detail.e_unit')
                 },
                 {
                     key:'DateFirst',
-                    label:'指标开始时间',
+                    label:/* '指标开始时间' */this.$t('DataBankPage.table_col_start_time'),
                     sortable:true,
                 },
                 {
                     key:'DateLast',
-                    label:'指标最新时间',
+                    label:/* '指标最新时间' */this.$t('DataBankPage.table_col_newest_time'),
                     sortable:true
                 },
                 {
                     key:'TimeLastUpdate',
-                    label:'更新时间',
+                    label:/* '更新时间', */this.$t('Edb.Detail.e_update_time'),
                     sortable:true
                 }
-            ],
-            tableData:[],//表格数据
-            pageNo:1,
-            pageSize:15,
-            total:0,
-            SortField:0,
-            SortRule:0,
-            tableLoading:false,
-        };
+            ]
+        }
     },
     watch:{
         choosedSource(newVal){

+ 5 - 5
src/views/dataEntry_manage/thirdBase/FwmtData.vue

@@ -24,7 +24,7 @@
           size="medium"
           @click="exportClick"
           :loading="btnload"
-          >导出Excel</el-button
+          ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
         >
         <el-autocomplete
           style="margin: 20px 0; width: 100%"
@@ -32,14 +32,14 @@
           v-model="leftSearchVal"
           :fetch-suggestions="handleLeftSearch"
           :trigger-on-focus="false"
-          placeholder="指标名称/指标ID"
+          :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
           @select="handleSelectLeftSearchval"
           popper-class="el-autocomplete-suggestion-data-entry"
           clearable
         >
           <template slot-scope="scope">
             <div v-if="scope.item.nodata" style="text-align: center">
-              暂无数据
+              <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}
             </div>
             <div v-else>
               {{ scope.item.IndexName }}
@@ -78,7 +78,7 @@
       class="right-cont minHeight"
       id="right"
       v-loading="dataloading"
-      element-loading-text="获取数据中..."
+      :element-loading-text="$t('Table.data_loading')"
     >
       <template v-if="rightShow">
         <div class="right-box" @scroll="scrollHandle">
@@ -103,7 +103,7 @@
         </div>
       </template>
       <div v-else class="nodata-cont">
-        <tableNoData text="暂无数据"/>
+        <tableNoData :text="$t('Table.prompt_slogan')"/>
       </div>
     </div>
   </div>

+ 3 - 3
src/views/dataEntry_manage/thirdBase/NationalDataBase.vue

@@ -34,7 +34,7 @@
       </div>
       <el-button v-permission="permissionBtn.dataSourcePermission.gjtjjData_export"
         type="primary" :disabled="isDisabled" @click="handleExport"
-        >导出</el-button
+        ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
       >
     </div>
     <div class="data-show-cotainer" v-loading="searchLoading">
@@ -51,7 +51,7 @@
           <el-select
             filterable
             remote
-            placeholder="指标名称/指标ID"
+            :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
             v-model="searchValue"
             :remote-method="searchHandle"
             value-key="IndexCode"
@@ -116,7 +116,7 @@
         </div>
       </div>
       <div class="data-table-wrap wrap nodata-cont" v-else>
-        <tableNoData text="暂无数据"/>
+        <tableNoData :text="$t('Table.prompt_slogan')"/>
       </div>
     </div>
   </div>

+ 22 - 26
src/views/dataEntry_manage/thirdBase/SCITargetbase.vue

@@ -24,7 +24,7 @@
           size="medium"
           @click="exportClick"
           :loading="btnload"
-          >导出Excel</el-button
+          ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
         >
         <el-autocomplete
           style="margin: 20px 0; width: 100%"
@@ -32,14 +32,14 @@
           v-model="leftSearchVal"
           :fetch-suggestions="handleLeftSearch"
           :trigger-on-focus="false"
-          placeholder="指标名称/指标ID"
+          :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
           @select="handleSelectLeftSearchval"
           popper-class="el-autocomplete-suggestion-data-entry"
           clearable
         >
           <template slot-scope="scope">
             <div v-if="scope.item.nodata" style="text-align: center">
-              暂无数据
+              <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}
             </div>
             <div v-else>
               {{ scope.item.IndexName }}
@@ -132,7 +132,7 @@
             alt=""
             style="width: 16px; height: 16px; margin: 10px"
           />
-          <span>添加分类</span>
+          <span><!-- 添加分类 -->{{$t('SteelChemicalPage.add_classify_btn')}}</span>
         </div>
       </div>
       <span
@@ -147,7 +147,7 @@
       class="right-cont minHeight"
       id="right"
       v-loading="dataloading"
-      element-loading-text="获取数据中..."
+      :element-loading-text="$t('Table.data_loading')"
     >
       <template v-if="rightShow">
         <div class="right-box" @scroll="scrollHandle">
@@ -182,14 +182,14 @@
         </div>
       </template>
       <div v-else class="nodata-cont">
-        <tableNoData text="暂无数据"/>
+        <tableNoData :text="$t('Table.prompt_slogan')"/>
       </div>
     </div>
     <!-- 添加/编辑分类弹窗 -->
     <m-dialog
       :show.sync="openClassifyDia"
       width="700px"
-      :title="classifyForm.title"
+      :title="classifyForm.title==='添加分类'?$t('SteelChemicalPage.add_classify_btn'):$t('SteelChemicalPage.edit_classify_msg')"
       @close="cancelDialogHandle"
     >
       <div class="dialog-cont smmTarget-dialog-cont">
@@ -197,28 +197,28 @@
           ref="classifyFormRef"
           label-position="left"
           hide-required-asterisk
-          label-width="80px"
+          label-width="120px"
           :model="classifyForm"
           :rules="classifyFormRules"
         >
           <el-form-item
-            label="一级目录"
+            :label="$t('SteelChemicalPage.label_one_level')"
             v-if="classifyForm.parent_classify_name"
           >
             <span>{{ classifyForm.parent_classify_name }}</span>
           </el-form-item>
           <el-form-item
-            label="分类名称"
+            :label="$t('SteelChemicalPage.label_classify_name')"
             prop="classify_name"
             v-if="classifyForm.type === 'classify'"
           >
             <el-input
               v-model="classifyForm.classify_name"
               style="width: 80%"
-              placeholder="请输入分类名称"
+              :placeholder="$t('Dialog.require_vaild')"
             />
           </el-form-item>
-          <el-form-item label="分类名称" prop="classifys_id" v-else>
+          <el-form-item :label="$t('SteelChemicalPage.label_classify_name')" prop="classifys_id" v-else>
             <el-cascader
               style="width: 80%"
               :key="cascaderKey"
@@ -239,10 +239,10 @@
           type="primary"
           style="margin-right: 20px"
           @click="saveClassifyHandle"
-          >保存</el-button
+          ><!-- 保存 -->{{$t('Dialog.confirm_save_btn')}}</el-button
         >
         <el-button type="primary" plain @click="cancelDialogHandle"
-          >取消</el-button
+          ><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button
         >
       </div>
     </m-dialog>
@@ -733,11 +733,9 @@ export default {
       //如果分类下有子分类或指标
       let hintText =
         Children && Children.length
-          ? "删除分类将同步删除分类下所有子分类,确认删除吗?"
-          : "删除分类不可恢复,确定删除吗?";
-      this.$confirm(hintText, "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
+          ? this.$t('SteelChemicalPage.del_classify_only_msg')
+          : this.$t('SteelChemicalPage.del_classify_msg');
+      this.$confirm(hintText, this.$t('Dialog.warn_tit'), {
         type: "warning",
       })
         .then(() => {
@@ -748,7 +746,7 @@ export default {
             })
             .then((res) => {
               if (res.Ret !== 200) return;
-              this.$message.success("删除成功");
+              this.$message.success(/* "删除成功" */this.$t('MsgPrompt.delete_msg'));
               this.getClassify();
             });
         })
@@ -770,9 +768,7 @@ export default {
     //删除指标
     deleteTarget(data, node) {
       const { BaseFromSciIndexId } = data;
-      this.$confirm("指标删除后不可被引用,确认删除吗?", "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
+      this.$confirm(this.$t('SteelChemicalPage.del_edb_msg'),  this.$t('Dialog.warn_tit'), {
         type: "warning",
       })
         .then(() => {
@@ -782,7 +778,7 @@ export default {
             })
             .then((res) => {
               if (res.Ret !== 200) return;
-              this.$message.success("删除成功");
+              this.$message.success(/* "删除成功" */this.$t('MsgPrompt.delete_msg'));
               this.getClassify();
             });
         })
@@ -1004,7 +1000,7 @@ export default {
         })
         .then((res) => {
           if (res.Ret !== 200) return;
-          this.$message.success("移动成功!");
+          this.$message.success(/* "移动成功!" */this.$t('MsgPrompt.move_success_msg'));
           this.getClassify();
         });
     },
@@ -1048,7 +1044,7 @@ export default {
         })
         .then((res) => {
           if (res.Ret !== 200) return;
-          this.$message.success("移动成功!");
+          this.$message.success(/* "移动成功!" */this.$t('MsgPrompt.move_success_msg'));
           this.getClassify();
         });
     },

+ 18 - 18
src/views/dataEntry_manage/thirdBase/UNdata.vue

@@ -1,13 +1,13 @@
 <template>
   <div id="UN-data-container">
     <div class="search-zone">
-      <el-select v-model="searchParams.IndexCode" placeholder="请选择Commodity Code" filterable clearable
+      <el-select v-model="searchParams.IndexCode" :placeholder="$t('UnDataPage.ph_indexcode')" filterable clearable
       remote :remote-method="IndexCodeResearch"
       style="width: 286px;margin: 0 0 10px 30px;" @change="searchList">
         <el-option :label="item.IndexCode" :value="item.IndexCode" 
         v-for="item in indexCodeArray" :key="item.IndexCode"></el-option>  
       </el-select>
-      <el-select v-model="searchParams.Flow" placeholder="请选择贸易流向" @change="searchList"
+      <el-select v-model="searchParams.Flow" :placeholder="$t('UnDataPage.ph_flow')" @change="searchList"
       style="margin: 0 0 10px 30px;" clearable>
         <el-option :label="item.label" :value="item.id" v-for="item in flowToData" :key="item.id" ></el-option>
       </el-select>
@@ -15,7 +15,7 @@
       style="width: 286px;margin: 0 0 10px 30px;" multiple collapse-tags @change="(value)=>changeCountry(value,'exportCountry')">
         <el-option :label="item.ThirdId==0?item.Name:item.NameCn" :value="item.ThirdId" v-for="item in countryData" :key="item.code"></el-option>  
       </el-select> -->
-      <el-select v-model="searchParams.ReporterCode" placeholder="请选择报告国" filterable clearable
+      <el-select v-model="searchParams.ReporterCode" :placeholder="$t('UnDataPage.ph_reportCode')" filterable clearable
       style="width: 286px;margin: 0 0 10px 30px;" @change="searchList">
         <el-option :label="item.ThirdId==0?item.Name:item.NameCn" :value="item.ThirdId" 
         v-for="item in [...this.countryData.slice(0,1),...this.countryData.slice(2)]" :key="item.code"></el-option>  
@@ -25,22 +25,22 @@
         <el-option :label="item.NameCn" :value="item.ThirdId" 
         v-for="item in [...this.countryData.slice(0,1),...this.countryData.slice(2)]" :key="item.code"></el-option>  
       </el-select> -->
-      <el-select v-model="searchParams.PartnerCode" placeholder="请选择对手国" filterable clearable
+      <el-select v-model="searchParams.PartnerCode" :placeholder="$t('UnDataPage.ph_partcode')" filterable clearable
       style="width: 286px;margin: 0 0 10px 30px;" @change="searchList">
         <el-option :label="item.NameCn" :value="item.ThirdId" 
         v-for="item in countryData" :key="item.code"></el-option>  
       </el-select>
-      <el-select v-model="searchParams.Partner2Code" placeholder="请选择第二对手国" filterable clearable
+      <el-select v-model="searchParams.Partner2Code" :placeholder="$t('UnDataPage.ph_parttwocode')" filterable clearable
       style="width: 286px;margin: 0 0 10px 30px;" @change="searchList">
         <el-option :label="item.NameCn" :value="item.ThirdId" 
         v-for="item in countryData" :key="item.code"></el-option>  
       </el-select>
       <div style="margin: 0 0 10px 30px;height:40px;display:flex;">
       <el-dropdown split-button type="primary"  @command="handleCommand">
-          {{searchParams.DateType===1?'年度':'月度'}}
+          {{searchParams.DateType===1?$t('UnDataPage.option_year'):$t('UnDataPage.option_month')}}
           <el-dropdown-menu slot="dropdown">
-            <el-dropdown-item :command="1">年度</el-dropdown-item>
-            <el-dropdown-item :command="2">月度</el-dropdown-item>
+            <el-dropdown-item :command="1"><!-- 年度 -->{{$t('UnDataPage.option_year')}}</el-dropdown-item>
+            <el-dropdown-item :command="2"><!-- 月度 -->{{$t('UnDataPage.option_month')}}</el-dropdown-item>
           </el-dropdown-menu>
         </el-dropdown>
       <el-date-picker v-model="searchParams.Date" :placeholder="datePlaceholder" style="margin: 0 0 10px 10px;"
@@ -48,38 +48,38 @@
       </div>
       
     </div>
-    <p style="padding-left: 20px;font-size: 16px;color: #999;">更新时间:{{updateTime}}</p>
+    <p style="padding-left: 20px;font-size: 16px;color: #999;"><!-- 更新时间: -->{{$t('Edb.Detail.e_update_time')}}:{{updateTime}}</p>
     <div class="table-zone">
       <el-table :data="tableData" border @sort-change="sortChange" v-loading="tableLoading">
-        <el-table-column label="Commodity Code(HS代码)" align="center" show-overflow-tooltip 
+        <el-table-column :label="$t('UnDataPage.col_code')" align="center" show-overflow-tooltip 
         prop="IndexCode">
           <template slot-scope="{row}">
             {{row.IndexCode}}
           </template>
         </el-table-column>
-        <el-table-column label="日期" align="center" prop="Date" width="80" sortable="custom">
+        <el-table-column :label="$t('UnDataPage.col_date')"  align="center" prop="Date" width="80" sortable="custom">
           <template slot-scope="{row}">
             {{row.Date}}
           </template>
         </el-table-column>
-        <el-table-column label="贸易流向" align="center" prop="Flow" width="80">
+        <el-table-column :label="$t('UnDataPage.col_flow')" align="center" prop="Flow" width="80">
           <template slot-scope="{row}">
             {{row.Flow}}
           </template>
         </el-table-column>
-        <el-table-column label="报告国" align="center" prop="ReporterName"
+        <el-table-column :label="$t('UnDataPage.col_report')" align="center" prop="ReporterName"
         show-overflow-tooltip >
           <template slot-scope="{row}">
             {{row.ReporterName}}
           </template>
         </el-table-column>
-        <el-table-column label="对手国" align="center" prop="PartnerName"
+        <el-table-column :label="$t('UnDataPage.col_part')"  align="center" prop="PartnerName"
         show-overflow-tooltip >
           <template slot-scope="{row}">
             {{row.PartnerName}}
           </template>
         </el-table-column>
-        <el-table-column label="第二对手国" align="center" prop="Partner2Name"
+        <el-table-column :label="$t('UnDataPage.col_parttow')" align="center" prop="Partner2Name"
         show-overflow-tooltip >
           <template slot-scope="{row}">
             {{row.Partner2Name}}
@@ -90,7 +90,7 @@
             {{row.IndexTradeCode}}
           </template>
         </el-table-column>
-        <el-table-column label="贸易金额(美元)" align="center" width="120" 
+        <el-table-column :label="$t('UnDataPage.col_value')" align="center" width="120" 
         show-overflow-tooltip prop="TradeValue">
           <template slot-scope="{row}">
             {{row.TradeValue}}
@@ -101,7 +101,7 @@
             {{row.IndexNetWeightCode}}
           </template>
         </el-table-column>
-        <el-table-column label="贸易重量(千克)" align="center" prop="NetWeightValue" width="120" 
+        <el-table-column :label="$t('UnDataPage.col_weight')" align="center" prop="NetWeightValue" width="120" 
         show-overflow-tooltip >
           <template slot-scope="{row}">
             {{row.NetWeightValue}}
@@ -155,7 +155,7 @@ import { dataInterence } from "@/api/api.js";
     computed:{
       datePlaceholder(){
         const {DateType} = this.searchParams
-        return `请选择${DateType===1?'年份':'月份'}`
+        return `${DateType===1?this.$t('UnDataPage.ph_year'):this.$t('UnDataPage.ph_month')}`
       },
       dateType(){
         const {DateType} = this.searchParams

+ 5 - 5
src/views/dataEntry_manage/thirdBase/YyzxData.vue

@@ -25,7 +25,7 @@
           @click="exportClick"
           :loading="btnload"
           :disabled="!select_classify&&!leftSearchTradeCode"
-          >导出Excel</el-button
+          ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
         >
         <el-autocomplete
           style="margin: 20px 0; width: 100%"
@@ -33,14 +33,14 @@
           v-model="leftSearchVal"
           :fetch-suggestions="handleLeftSearch"
           :trigger-on-focus="false"
-          placeholder="指标名称/指标ID"
+          :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
           @select="handleSelectLeftSearchval"
           popper-class="el-autocomplete-suggestion-data-entry"
           clearable
         >
           <template slot-scope="scope">
             <div v-if="scope.item.nodata" style="text-align: center">
-              暂无数据
+              <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}
             </div>
             <div v-else>
               {{ scope.item.IndexName }}
@@ -79,7 +79,7 @@
       class="right-cont minHeight"
       id="right"
       v-loading="dataloading"
-      element-loading-text="获取数据中..."
+      :element-loading-text="$t('Table.data_loading')"
     >
       <template v-if="rightShow">
         <div class="right-box" @scroll="scrollHandle">
@@ -104,7 +104,7 @@
         </div>
       </template>
       <div v-else class="nodata-cont">
-        <tableNoData text="暂无数据"/>
+        <tableNoData :text="$t('Table.prompt_slogan')"/>
       </div>
     </div>
   </div>

+ 26 - 22
src/views/dataEntry_manage/thirdBase/chinaFinancialFutures.vue

@@ -27,17 +27,17 @@
                 >{{item}}</li>
             </ul>
         </div>
-        <div class="right-wrap box" v-loading="loading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading">
+        <div class="right-wrap box" v-loading="loading" :element-loading-text="$t('Table.data_loading')" element-loading-spinner="el-icon-loading">
             <div class="content" v-if="list.length>0">
               <table width="auto" border="0" v-for="item in list" :key="item.Code">
                   <thead>
                       <tr>
-                        <td :colspan="Object.keys(labelArr).length" style="background:#ECF5FF">合约代码:{{item.Code}}</td>
+                        <td :colspan="Object.keys(labelArr).length" style="background:#ECF5FF"><!-- 合约代码 -->{{$t('SqEnergyPage.contranct_code')}}:{{item.Code}}</td>
                       </tr>
                       <tr>
-                          <td colspan="5" style="background:#ECF5FF">成交量排名</td>
-                          <td colspan="4" style="background:#ECF5FF">持买单量排名</td>
-                          <td colspan="4" style="background:#ECF5FF">持卖单量排名</td>
+                          <td colspan="5" style="background:#ECF5FF"><!-- 成交量排名 -->{{$t('ZjDataPage.col_trade_rank')}}</td>
+                          <td colspan="4" style="background:#ECF5FF"><!-- 持买单量排名 -->{{$t('ZjDataPage.col_buy_rank')}}</td>
+                          <td colspan="4" style="background:#ECF5FF"><!-- 持卖单量排名 -->{{$t('ZjDataPage.col_sold_rank')}}</td>
                       </tr>
                       <tr>
                           <td v-for="(val,index) in labelArr" :key="`${item.Code}_${index}`">
@@ -48,7 +48,7 @@
                   <tbody>
                       <tr v-for="item2 in item.Item" :key="item2.Rank">
                           <td v-for="(val, key) in labelArr" :key="`${item.Code}_${item2.Rank}_${key}`">
-                              {{item2.Rank==999&&key=='Rank'?'合计':item2[key]}}
+                              {{item2.Rank==999&&key=='Rank'?$t('SqEnergyPage.col_total'):item2[key]}}
                           </td>
                       </tr>
                   </tbody>
@@ -68,7 +68,7 @@
               </table>
             </div>
             <div class="empty-wrap" v-else>
-                <tableNoData text="没有此日期的数据,请重新选择查询日期"/>
+                <tableNoData :text="$t('GasDataPage.no_data_msg')"/>
             </div>
         </div>
     </div>
@@ -83,21 +83,6 @@ export default {
     data() {
         return {
             isLeftWrapShow:true,
-            labelArr: {
-                Rank: "名次",
-                DealShortName: "会员简称",
-                DealCode: "指标ID",
-                DealValue: "成交量(手)",
-                DealChange: "增减量",
-                BuyShortName: "会员简称",
-                BuyCode: "指标ID",
-                BuyValue: "持买仓量",
-                BuyChange: "增减量",
-                SoldShortName: "会员简称",
-                SoldCode: "指标ID",
-                SoldValue: "持卖仓量",
-                SoldChange: "增减量",
-            },
             time: '',
             type:'',
             typeList:[],
@@ -105,6 +90,25 @@ export default {
             loading:false
         };
     },
+    computed: {
+        labelArr(){
+            return {
+                Rank: /* "名次" */this.$t('SqEnergyPage.col_rank'),
+                DealShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                DealCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                DealValue: /* "成交量(手)" */this.$t('SqEnergyPage.col_trade'),
+                DealChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+                BuyShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                BuyCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                BuyValue: /* "持买仓量" */this.$t('SqEnergyPage.col_buy'),
+                BuyChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+                SoldShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                SoldCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                SoldValue: /* "持卖仓量" */this.$t('SqEnergyPage.col_sold'),
+                SoldChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+            }
+        } 
+    },
     created () {
         // this.getLastWorkDay()
         this.getClassifyList()

+ 5 - 5
src/views/dataEntry_manage/thirdBase/coalWord.vue

@@ -17,7 +17,7 @@
           @click="exportClick"
           :loading="btnload"
           v-permission="permissionBtn.dataSourcePermission.coalWordData_export" 
-          >导出Excel</el-button
+          ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
         >
         <el-autocomplete
           style="margintop: 20px; width: 100%"
@@ -25,7 +25,7 @@
           v-model="leftSearchVal"
           :fetch-suggestions="handleLeftSearch"
           :trigger-on-focus="false"
-          placeholder="指标名称/指标ID"
+          :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
           @select="handleSelectLeftSearchval"
           @blur="searchvalBlur"
           @clear="searchvalClear"
@@ -34,7 +34,7 @@
         >
           <template slot-scope="scope">
             <div v-if="scope.item.nodata" style="text-align: center">
-              暂无数据
+              <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}
             </div>
             <div v-else>
               {{ scope.item.IndexName }}
@@ -56,7 +56,7 @@
     <div
       class="right-cont minHeight"
       v-loading="dataloading"
-      element-loading-text="获取数据中..."
+      :element-loading-text="$t('Table.data_loading')"
     >
       <div class="right-box" v-if="rightShow"
         v-infinite-scroll="loadNext"
@@ -80,7 +80,7 @@
             />
           </div>
         </template>
-        <tableNoData v-else text="暂无数据" class="nodata"></tableNoData>
+        <tableNoData v-else :text="$t('Table.prompt_slogan')" class="nodata"></tableNoData>
       </div>
       <div class="frequency-list" v-if="rightShow">
         <el-button

+ 18 - 13
src/views/dataEntry_manage/thirdBase/components/batchAddEdbDia.vue

@@ -4,7 +4,7 @@
     :close-on-click-modal="false"
     :modal-append-to-body="false"
     top="5vh"
-    title="添加指标"
+    :title="$t('SteelChemicalPage.add_edb')"
     @close="cancelHandle"
     custom-class="dialog"
     center
@@ -13,26 +13,31 @@
   >
     <div
     v-loading="isAddLoading"
-    element-loading-text="加载时间大概五分钟,关闭弹窗不影响加载"
+    :element-loading-text="$t('SteelChemicalPage.add_loading_msg')"
     element-loading-spinner="el-icon-loading">
       <div class="dialog-main">
         <el-row :gutter="10" class="row" style="margin-bottom: 15px;">
-          <el-col style="width: 250px;" class="col title-col">指标ID</el-col>
-          <el-col style="width: 382px;" class="col title-col">所属分类</el-col>
+          <el-col style="width: 250px;" class="col title-col"><!-- 指标ID -->{{$t('Edb.Detail.e_id')}}</el-col>
+          <el-col style="width: 382px;" class="col title-col"><!-- 所属分类 -->{{$t('SteelChemicalPage.label_edb_classify')}}</el-col>
         </el-row>
         <el-form :model="edbForm" ref="edbFormDataListRef" >
           <div class="form-box" ref="formBoxRef">
             <el-row v-for="(item,index) in edbForm.edbDataList" :key="item.edbIndex" :gutter="10" class="row">
             <el-col class="col edb-col">
-              <el-form-item :prop="`edbDataList.${index}.IndexCode`" 
-              :rules="[{required:true,message:'指标ID不能为空',trigger:'blur'},
-                        {validator:checkAge,trigger:'blur'}]">
-                <el-input v-model.trim="item.IndexCode" placeholder="请输入指标ID"></el-input>
+              <el-form-item 
+                :prop="`edbDataList.${index}.IndexCode`" 
+                :rules="[{required:true,message:$t('SteelChemicalPage.ph_edbid'),trigger:'blur'},
+                {validator:checkAge,trigger:'blur'}]"
+              >
+                <el-input 
+                  v-model.trim="item.IndexCode" 
+                  :placeholder="$t('Edb.InputHolderAll.input_common',{label:$t('Edb.Detail.e_id')})"
+                ></el-input>
               </el-form-item>
             </el-col>
             <el-col class="col classify-col">
               <el-form-item :prop="`edbDataList.${index}.BaseFromMysteelChemicalClassifyId`" 
-              :rules="{required:true,message:'所属分类不能为空',trigger:'change'}">
+              :rules="{required:true,message:$t('SteelChemicalPage.ph_classify'),trigger:'change'}">
                 <el-cascader
                   class="classify-cascader"
                   :ref="'classifyCascader'+item.edbIndex"
@@ -45,7 +50,7 @@
                     children: 'Children',
                     emitPath: false,
                   }"
-                  placeholder="请选择分类"
+                  :placeholder="$t('Edb.InputHolderAll.input_classify')"
                 />
               </el-form-item>
             </el-col>
@@ -54,15 +59,15 @@
           </div>
           <div class="add-box" @click="addEdbItem">
             <img src="~@/assets/img/add-quadrate-blue.png"/>
-            <span>添加</span>
+            <span><!-- 添加 -->{{$t('Table.add_btn')}}</span>
           </div>
         </el-form>
       </div>
       <div class="dia-bot">
         <el-button type="primary" style="margin-right: 20px" @click="saveHandle"
-          >保存</el-button
+          ><!-- 保存 -->{{$t('Dialog.confirm_save_btn')}}</el-button
         >
-        <el-button type="primary" plain @click="cancelHandle">取消</el-button>
+        <el-button type="primary" plain @click="cancelHandle"><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button>
       </div>
     </div>
   </el-dialog>

+ 8 - 9
src/views/dataEntry_manage/thirdBase/components/targetDialog.vue

@@ -3,7 +3,7 @@
     :visible.sync="isOpenDialog"
     :close-on-click-modal="false"
     :modal-append-to-body="false"
-    :title="edbForm.edb_id ? '编辑指标' : '添加指标'"
+    :title="edbForm.edb_id ? $t('SteelChemicalPage.edit_edb') : $t('SteelChemicalPage.add_edb')"
     @close="cancelHandle"
     custom-class="dialog"
     center
@@ -24,7 +24,7 @@
           :model="formData"
           :rules="formRules"
         >
-          <el-form-item label="分类" prop="classify">
+          <el-form-item :label="$t('SteelChemicalPage.label_edb_classify')" prop="classify">
             <el-cascader
               class="classify-cascader"
               v-model="formData.classify"
@@ -36,14 +36,14 @@
                 emitPath: false,
               }"
               style="width: 90%"
-              placeholder="请选择分类"
+              :placeholder="$t('Edb.InputHolderAll.input_classify')"
               ref='classifyIns'
             />
           </el-form-item>
-          <el-form-item label="指标ID" prop="from_edb_code">
+          <el-form-item :label="$t('Edb.Detail.e_id')" prop="from_edb_code">
             <el-input
               v-model="formData.from_edb_code"
-              placeholder="请输入指标ID"
+              :placeholder="$t('Edb.InputHolderAll.input_common',{label:$t('Edb.Detail.e_id')})"
               style="width: 90%"
               clearable
               :disabled="edbForm.edb_id"
@@ -102,9 +102,9 @@
       </div>
       <div class="dia-bot">
         <el-button type="primary" style="margin-right: 20px" @click="saveHandle"
-          >保存</el-button
+          ><!-- 保存 -->{{$t('Dialog.confirm_save_btn')}}</el-button
         >
-        <el-button type="primary" plain @click="cancelHandle">取消</el-button>
+        <el-button type="primary" plain @click="cancelHandle"><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button>
       </div>
     </div>
   </el-dialog>
@@ -174,8 +174,7 @@ export default {
           { required: true, message: "分类名称不能为空", trigger: "blur" },
         ],
         from_edb_code: [
-          { required: true, message: "指标ID不能为空", trigger: "blur" },
-          { required: true, message: "指标ID不能为空" },
+          { required: true, message: /* "指标ID不能为空" */this.$t('SteelChemicalPage.ph_edbid'), trigger: "blur" },
         ],
       },
       // frequencyArr: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"],

+ 20 - 16
src/views/dataEntry_manage/thirdBase/dlExchangeData.vue

@@ -58,7 +58,7 @@
                 </table>
             </div>
             <div class="empty-wrap" style="height:90%" v-else>
-                <tableNoData text="没有此日期的数据,请重新选择查询日期"/>
+                <tableNoData :text="$t('GasDataPage.no_data_msg')"/>
             </div>
             <div class="num-warp">
                 <div 
@@ -81,21 +81,6 @@ export default {
     data() {
         return {
             isLeftWrapShow:true,
-            labelArr: {
-                Rank: "名次",
-                DealShortName: "会员简称",
-                DealCode: "指标ID",
-                DealValue: "成交量(手)",
-                DealChange: "增减量",
-                BuyShortName: "会员简称",
-                BuyCode: "指标ID",
-                BuyValue: "持买仓量",
-                BuyChange: "增减量",
-                SoldShortName: "会员简称",
-                SoldCode: "指标ID",
-                SoldValue: "持卖仓量",
-                SoldChange: "增减量",
-            },
             time:'',
             type:'',
             typeList:[],
@@ -105,6 +90,25 @@ export default {
             loading:false
         };
     },
+    computed: {
+        labelArr(){
+            return {
+                Rank: /* "名次" */this.$t('SqEnergyPage.col_rank'),
+                DealShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                DealCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                DealValue: /* "成交量(手)" */this.$t('SqEnergyPage.col_trade'),
+                DealChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+                BuyShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                BuyCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                BuyValue: /* "持买仓量" */this.$t('SqEnergyPage.col_buy'),
+                BuyChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+                SoldShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                SoldCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                SoldValue: /* "持卖仓量" */this.$t('SqEnergyPage.col_sold'),
+                SoldChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+            }
+        } 
+    },
     created () {
         // this.getLastWorkDay()
         this.getClassifyList()  

+ 4 - 4
src/views/dataEntry_manage/thirdBase/elaSteoBase.vue

@@ -17,7 +17,7 @@
           size="medium"
           @click="exportClick"
           :loading="btnload"
-          >导出Excel</el-button
+          ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
         >
         <el-autocomplete
           style="margin: 20px 0; width: 100%"
@@ -25,14 +25,14 @@
           v-model="leftSearchVal"
           :fetch-suggestions="handleLeftSearch"
           :trigger-on-focus="false"
-          placeholder="指标名称/指标ID"
+          :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
           @select="handleSelectLeftSearchval"
           popper-class="el-autocomplete-suggestion-data-entry"
           clearable
         >
           <template slot-scope="scope">
             <div v-if="scope.item.nodata" style="text-align: center">
-              暂无数据
+              <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}
             </div>
             <div v-else>
               {{ scope.item.IndexName }}
@@ -57,7 +57,7 @@
     <div
       class="right-cont minHeight"
       v-loading="dataloading"
-      element-loading-text="获取数据中..."
+      :element-loading-text="$t('Table.data_loading')"
     >
       <div class="right-box" @scroll="scrollHandle" v-if="rightShow">
         <div class="data-header">

+ 5 - 5
src/views/dataEntry_manage/thirdBase/glTargetbase.vue

@@ -18,7 +18,7 @@
           size="medium"
           @click="exportClick"
           :loading="btnload"
-          >导出Excel</el-button
+          ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
         >
         <el-autocomplete
           style="margin: 20px 0; width: 100%"
@@ -26,14 +26,14 @@
           v-model="leftSearchVal"
           :fetch-suggestions="handleLeftSearch"
           :trigger-on-focus="false"
-          placeholder="指标名称/指标ID"
+          :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
           @select="handleSelectLeftSearchval"
           popper-class="el-autocomplete-suggestion-data-entry"
           clearable
         >
           <template slot-scope="scope">
             <div v-if="scope.item.nodata" style="text-align: center">
-              暂无数据
+               <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}
             </div>
             <div v-else>
               {{ scope.item.IndexName }}
@@ -58,7 +58,7 @@
     <div
       class="right-cont minHeight"
       v-loading="dataloading"
-      element-loading-text="获取数据中..."
+      :element-loading-text="$t('Table.data_loading')"
     >
       <div
         class="right-box"
@@ -152,7 +152,7 @@ export default {
         if (res.Ret !== 200) return;
         this.classifyList = res.Data || [];
         this.select_classify =
-          this.select_classify || this.classifyList[0].BreedShortName;
+          this.select_classify || (this.classifyList[0]?this.classifyList[0].BreedShortName:'');
         this.select_breed = this.select_classify;
       });
     },

+ 20 - 16
src/views/dataEntry_manage/thirdBase/gqExchangeData.vue

@@ -20,9 +20,10 @@
                 </el-tree>
             </div>
         </div>
-        <div class="right-wrap box" v-loading="loading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading">
+        <div class="right-wrap box" v-loading="loading" :element-loading-text="$t('Table.data_loading')"
+        element-loading-spinner="el-icon-loading">
             <el-button v-if="list.length>0 && haveSummation && (!summationView)" 
-                class="export-button" type="primary" plain @click="excelExport" :loading="exportBtnload">导出Excel</el-button>
+                class="export-button" type="primary" plain @click="excelExport" :loading="exportBtnload"><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button>
             <div class="content" v-if="list.length>0">
                 <table width="auto" border="0">
                     <thead class="border-head">
@@ -30,21 +31,21 @@
                             <td v-for="(val,index) in labelArr" :key="`${val}_${index}`">
                                 {{ val }}
                             </td>
-                            <td v-if="haveSummation && summationView">操作</td>
+                            <td v-if="haveSummation && summationView"><!-- 操作 -->{{$t('Table.column_operations')}}</td>
                         </tr>
                     </thead>
                     <tbody>
                         <tr v-for="item in list" :key="item.BaseFromTradeGuangzhouIndexId">
                             <td v-for="(val,key) in labelArr" :key="key">{{item[key]}}</td>
                             <td v-if="haveSummation && summationView">
-                                <el-button type="text" @click="detailView(item)">查看详情</el-button>
+                                <el-button type="text" @click="detailView(item)"><!-- 查看详情 -->{{$t('Table.look_detail')}}</el-button>
                             </td>
                         </tr>
                     </tbody>
                 </table>
             </div>
             <div class="empty-wrap" v-else>
-                <tableNoData text="暂无数据"/>
+                <tableNoData :text="$t('Table.prompt_slogan')"/>
             </div>
             <div class="num-warp" v-if="numList.length>0">
                 <div v-for="item in numList" :key="item.BaseFromTradeGuangzhouContractId" 
@@ -65,16 +66,6 @@ export default {
     data() {
         return {
             isLeftWrapShow:true,
-            labelArr: {
-                IndexCode: "指标ID",
-                IndexName: "指标名称",
-                Value: "数值",
-                Unit: "单位",
-                Frequency: "频度",
-                StartDate: "起始日期",
-                EndDate: "最新日期",
-                // Operations:"操作"
-            },
             summationView:true,// 当前是否是合计
             haveSummation:false, // 是否有合计
             time:'',
@@ -104,7 +95,20 @@ export default {
             let url=this.exportApi + 
                 `?${localStorage.getItem("auth") || ""}&BaseFromTradeGuangzhouIndexId=${this.tradeIndexId}&TradeDate=${this.time}`
             return this.escapeStr(url);
-        }
+        },
+
+        labelArr() {
+            return {
+                IndexCode: /* "指标ID" */ this.$t('Edb.Detail.e_id'),
+                IndexName: /* "指标名称" */this.$t('Edb.Detail.e_name'),
+                Value: /* "数值" */this.$t('Edb.Detail.e_value'),
+                Unit: /* "单位" */ this.$t('Edb.Detail.e_unit'),
+                Frequency: /* "频度" */this.$t('Edb.Detail.e_fre'),
+                StartDate: /* "起始日期" */this.$t('Edb.Detail.e_start_date'),
+                EndDate: /* "最新日期" */this.$t('Edb.Detail.e_latest_date'),
+                // Operations:"操作"
+            }
+        } 
     },
     created () {
         this.getClassifyListFun()  

+ 5 - 5
src/views/dataEntry_manage/thirdBase/icpiConsumption.vue

@@ -16,7 +16,7 @@
           size="medium"
           @click="exportClick"
           :loading="btnload"
-          >导出Excel</el-button
+          ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
         >
         <el-autocomplete
           style="margin-top: 20px; width: 100%"
@@ -24,7 +24,7 @@
           v-model="leftSearchVal"
           :fetch-suggestions="handleLeftSearch"
           :trigger-on-focus="false"
-          placeholder="指标名称/指标ID"
+          :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
           @select="handleSelectLeftSearchval"
           popper-class="el-autocomplete-suggestion-data-entry"
           @clear="clearSearchVal"
@@ -32,7 +32,7 @@
         >
           <template slot-scope="scope">
             <div v-if="scope.item.nodata" style="text-align: center">
-              暂无数据
+              <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}
             </div>
             <div v-else>
               {{ scope.item.IndexName }}
@@ -54,7 +54,7 @@
     <div
       class="right-cont minHeight"
       v-loading="dataloading"
-      element-loading-text="获取数据中..."
+      :element-loading-text="$t('Table.data_loading')"
     >
       <div class="right-box" v-if="rightShow" @scroll="scrollHandle">
         <template v-if="dateArr.length">
@@ -75,7 +75,7 @@
             />
           </div>
         </template>
-        <tableNoData v-else text="暂无数据" class="nodata"></tableNoData>
+        <tableNoData v-else :text="$t('Table.prompt_slogan')" class="nodata"></tableNoData>
       </div>
     </div>
   </div>

+ 4 - 4
src/views/dataEntry_manage/thirdBase/lzTargetbase.vue

@@ -17,7 +17,7 @@
           size="medium"
           @click="exportClick"
           :loading="btnload"
-          >导出Excel</el-button
+          ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
         >
         <el-autocomplete
           style="margintop: 20px; width: 100%"
@@ -25,14 +25,14 @@
           v-model="leftSearchVal"
           :fetch-suggestions="handleLeftSearch"
           :trigger-on-focus="false"
-          placeholder="指标名称/指标ID"
+          :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
           @select="handleSelectLeftSearchval"
           popper-class="el-autocomplete-suggestion-data-entry"
           clearable
         >
           <template slot-scope="scope">
             <div v-if="scope.item.nodata" style="text-align: center">
-              暂无数据
+              <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}
             </div>
             <div v-else>
               {{ scope.item.QuotaName }}
@@ -55,7 +55,7 @@
     <div
       class="right-cont minHeight"
       v-loading="dataloading"
-      element-loading-text="获取数据中..."
+      :element-loading-text="$t('Table.data_loading')"
     >
       <div class="right-box" v-if="rightShow">
         <div class="data-header">

+ 24 - 19
src/views/dataEntry_manage/thirdBase/shEnergy.vue

@@ -27,12 +27,13 @@
                 >{{item}}</li>
             </ul>
         </div>
-        <div class="right-wrap box" v-loading="loading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading">
+        <div class="right-wrap box" v-loading="loading" :element-loading-text="$t('Table.data_loading')"
+        element-loading-spinner="el-icon-loading">
             <div class="content" v-if="list.length>0">
               <table width="auto" border="0" v-for="item in list" :key="item.Code">
                   <thead>
                       <tr>
-                        <td :colspan="Object.keys(labelArr).length" style="background:#ECF5FF">合约代码:{{item.Code}}</td>
+                        <td :colspan="Object.keys(labelArr).length" style="background:#ECF5FF"><!-- 合约代码 -->{{$t('SqEnergyPage.contranct_code')}}:{{item.Code}}</td>
                       </tr>
                       <tr>
                           <td v-for="(val,index) in labelArr" :key="`${item.Code}_${index}`">
@@ -43,7 +44,7 @@
                   <tbody>
                       <tr v-for="item2 in item.Item" :key="`${item.Code}_${item2.Rank}`">
                           <td v-for="(val, key) in labelArr" :key="`${item.Code}_${item2.Rank}_${key}`">
-                              {{item2.Rank==999&&key=='Rank'?'合计':item2[key]}}
+                              {{item2.Rank==999&&key=='Rank'?$t('SqEnergyPage.col_total'):item2[key]}}
                           </td>
                       </tr>
                   </tbody>
@@ -63,7 +64,7 @@
               </table>
             </div>
             <div class="empty-wrap" v-else>
-                <tableNoData text="没有此日期的数据,请重新选择查询日期"/>
+                <tableNoData :text="$t('GasDataPage.no_data_msg')"/>
             </div>
         </div>
     </div>
@@ -78,21 +79,6 @@ export default {
     data() {
         return {
             isLeftWrapShow:true,
-            labelArr: {
-                Rank: "名次",
-                DealShortName: "会员简称",
-                DealCode: "指标ID",
-                DealValue: "成交量(手)",
-                DealChange: "增减量",
-                BuyShortName: "会员简称",
-                BuyCode: "指标ID",
-                BuyValue: "持买仓量",
-                BuyChange: "增减量",
-                SoldShortName: "会员简称",
-                SoldCode: "指标ID",
-                SoldValue: "持卖仓量",
-                SoldChange: "增减量",
-            },
             time: '',
             type:'',
             typeList:[],
@@ -100,6 +86,25 @@ export default {
             loading:false
         };
     },
+    computed: {
+        labelArr(){
+            return {
+                Rank: /* "名次" */this.$t('SqEnergyPage.col_rank'),
+                DealShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                DealCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                DealValue: /* "成交量(手)" */this.$t('SqEnergyPage.col_trade'),
+                DealChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+                BuyShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                BuyCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                BuyValue: /* "持买仓量" */this.$t('SqEnergyPage.col_buy'),
+                BuyChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+                SoldShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                SoldCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                SoldValue: /* "持卖仓量" */this.$t('SqEnergyPage.col_sold'),
+                SoldChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+            }
+        } 
+    },
     created () {
         // this.getLastWorkDay()
         this.getClassifyList()

+ 24 - 20
src/views/dataEntry_manage/thirdBase/shFutures.vue

@@ -29,7 +29,7 @@
                 </li>
             </ul>
         </div>
-        <div class="right-wrap box" v-loading="loading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading">
+        <div class="right-wrap box" v-loading="loading" :element-loading-text="$t('Table.data_loading')" element-loading-spinner="el-icon-loading">
             <div class="content" v-if="list.length>0">
                 <table
                     width="auto"
@@ -43,7 +43,7 @@
                                 :colspan="Object.keys(labelArr).length"
                                 style="background: #ecf5ff"
                             >
-                                商品名称:{{ item.Title }}
+                                <!-- 商品名称 -->{{$t('SqEnergyPage.product_name')}}:{{ item.Title }}
                             </td>
                         </tr>
                     </thead>
@@ -53,7 +53,7 @@
                                 :colspan="Object.keys(labelArr).length"
                                 style="background: #ecf5ff"
                             >
-                                合约代码:{{ item2.Code }}
+                                <!-- 合约代码 -->{{$t('SqEnergyPage.contranct_code')}}:{{ item2.Code }}
                             </td>
                         </tr>
                         <tr>
@@ -63,7 +63,7 @@
                         </tr>
                         <tr v-for="item3 in item2.Item" :key="`${item.Title}_${item2.Code}_${item3.Rank}`">
                             <td v-for="(val, key) in labelArr" :key="`${item.Title}_${item2.Code}_${item3.Rank}_${key}`">
-                                {{item3.Rank==999&&key=='Rank'?'合计':item3[key]}}
+                                {{item3.Rank==999&&key=='Rank'?$t('SqEnergyPage.col_total'):item3[key]}}
                             </td>
                         </tr>
                         <!-- <tr>
@@ -81,7 +81,7 @@
                 </table>
             </div>
             <div class="empty-wrap" v-else>
-                <tableNoData text="没有此日期的数据,请重新选择查询日期"/>
+                <tableNoData :text="$t('GasDataPage.no_data_msg')"/>
             </div>
         </div>
     </div>
@@ -96,21 +96,6 @@ export default {
     data() {
         return {
             isLeftWrapShow:true,
-            labelArr: {
-                Rank: "名次",
-                DealShortName: "会员简称",
-                DealCode: "指标ID",
-                DealValue: "成交量(手)",
-                DealChange: "增减量",
-                BuyShortName: "会员简称",
-                BuyCode: "指标ID",
-                BuyValue: "持买仓量",
-                BuyChange: "增减量",
-                SoldShortName: "会员简称",
-                SoldCode: "指标ID",
-                SoldValue: "持卖仓量",
-                SoldChange: "增减量",
-            },
             time: '',
             type: "全部",
             typeList: [],
@@ -118,6 +103,25 @@ export default {
             loading:false,
         };
     },
+    computed: {
+        labelArr(){
+            return {
+                Rank: /* "名次" */this.$t('SqEnergyPage.col_rank'),
+                DealShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                DealCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                DealValue: /* "成交量(手)" */this.$t('SqEnergyPage.col_trade'),
+                DealChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+                BuyShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                BuyCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                BuyValue: /* "持买仓量" */this.$t('SqEnergyPage.col_buy'),
+                BuyChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+                SoldShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                SoldCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                SoldValue: /* "持卖仓量" */this.$t('SqEnergyPage.col_sold'),
+                SoldChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+            }
+        } 
+    },
     created() {
         // this.getLastWorkDay()
         this.getClassifyList();

+ 18 - 22
src/views/dataEntry_manage/thirdBase/smmTargetbase.vue

@@ -24,7 +24,7 @@
           size="medium"
           @click="exportClick"
           :loading="btnload"
-          >导出Excel</el-button
+          ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
         >
         <el-autocomplete
           style="margin: 20px 0; width: 100%"
@@ -32,14 +32,14 @@
           v-model="leftSearchVal"
           :fetch-suggestions="handleLeftSearch"
           :trigger-on-focus="false"
-          placeholder="指标名称/指标ID"
+          :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
           @select="handleSelectLeftSearchval"
           popper-class="el-autocomplete-suggestion-data-entry"
           clearable
         >
           <template slot-scope="scope">
             <div v-if="scope.item.nodata" style="text-align: center">
-              暂无数据
+               <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}
             </div>
             <div v-else>
               {{ scope.item.IndexName }}
@@ -148,7 +148,7 @@
             alt=""
             style="width: 16px; height: 16px; margin: 10px"
           />
-          <span>添加分类</span>
+          <span><!-- 添加分类 -->{{$t('SteelChemicalPage.add_classify_btn')}}</span>
         </div>
       </div>
       <span
@@ -163,7 +163,7 @@
       class="right-cont minHeight"
       id="right"
       v-loading="dataloading"
-      element-loading-text="获取数据中..."
+      :element-loading-text="$t('Table.data_loading')"
     >
       <template v-if="rightShow">
         <div class="right-box" @scroll="scrollHandle">
@@ -198,14 +198,14 @@
         </div>
       </template>
       <div v-else class="nodata-cont">
-        <tableNoData text="暂无数据"/>
+        <tableNoData :text="$t('Table.prompt_slogan')"/>
       </div>
     </div>
     <!-- 添加/编辑分类弹窗 -->
     <m-dialog
       :show.sync="openClassifyDia"
       width="700px"
-      :title="classifyForm.title"
+      :title="classifyForm.title==='添加分类'?$t('SteelChemicalPage.add_classify_btn'):$t('SteelChemicalPage.edit_classify_msg')"
       @close="cancelDialogHandle"
     >
       <div class="dialog-cont smmTarget-dialog-cont">
@@ -213,18 +213,18 @@
           ref="classifyFormRef"
           label-position="left"
           hide-required-asterisk
-          label-width="80px"
+          label-width="120px"
           :model="classifyForm"
           :rules="classifyFormRules"
         >
           <el-form-item
-            label="一级目录"
+            :label="$t('SteelChemicalPage.label_one_level')" 
             v-if="classifyForm.parent_classify_name"
           >
             <span>{{ classifyForm.parent_classify_name }}</span>
           </el-form-item>
           <el-form-item
-            label="分类名称"
+            :label="$t('SteelChemicalPage.label_classify_name')"
             prop="classify_name"
             v-if="classifyForm.type === 'classify'"
           >
@@ -234,7 +234,7 @@
               placeholder="请输入分类名称"
             />
           </el-form-item>
-          <el-form-item label="分类名称" prop="classifys_id" v-else>
+          <el-form-item :label="$t('SteelChemicalPage.label_classify_name')" prop="classifys_id" v-else>
             <el-cascader
               style="width: 80%"
               :key="cascaderKey"
@@ -255,10 +255,10 @@
           type="primary"
           style="margin-right: 20px"
           @click="saveClassifyHandle"
-          >保存</el-button
+          ><!-- 保存 -->{{$t('Dialog.confirm_save_btn')}}</el-button
         >
         <el-button type="primary" plain @click="cancelDialogHandle"
-          >取消</el-button
+          ><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button
         >
       </div>
     </m-dialog>
@@ -798,11 +798,9 @@ export default {
       //如果分类下有子分类或指标
       let hintText =
         Children && Children.length
-          ? "删除分类将同步删除分类下所有子分类,确认删除吗?"
+          ? this.$t('SteelChemicalPage.del_classify_msg')
           : "删除分类不可恢复,确定删除吗?";
-      this.$confirm(hintText, "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
+      this.$confirm(hintText,this.$t('Dialog.warn_tit'), {
         type: "warning",
       })
         .then(() => {
@@ -813,7 +811,7 @@ export default {
             })
             .then((res) => {
               if (res.Ret !== 200) return;
-              this.$message.success("删除成功");
+              this.$message.success(/* "删除成功" */this.$t('MsgPrompt.delete_msg'));
               this.getClassify();
             });
         })
@@ -835,9 +833,7 @@ export default {
     //删除指标
     deleteTarget(data, node) {
       const { BaseFromSmmIndexId } = data;
-      this.$confirm("指标删除后不可被引用,确认删除吗?", "提示", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
+      this.$confirm(this.$t('SteelChemicalPage.del_edb_msg'), this.$t('Dialog.warn_tit'), {
         type: "warning",
       })
         .then(() => {
@@ -847,7 +843,7 @@ export default {
             })
             .then((res) => {
               if (res.Ret !== 200) return;
-              this.$message.success("删除成功");
+              this.$message.success(/* "删除成功" */this.$t('MsgPrompt.delete_msg'));
               this.getClassify();
             });
           //删除指标接口

+ 21 - 21
src/views/dataEntry_manage/thirdBase/steelChemicalbase.vue

@@ -19,7 +19,7 @@
         <div>
           <el-button v-permission="permissionBtn.dataSourcePermission.mysteelData_add"
           type="primary" size="medium" @click="addTargetBatch"
-            >新增指标</el-button
+            ><!-- 新增指标 -->{{$t('SteelChemicalPage.add_edb_btn')}}</el-button
           >
           <el-button
           v-permission="permissionBtn.dataSourcePermission.mysteelData_export"
@@ -28,7 +28,7 @@
             size="medium"
             @click="exportClick"
             :loading="btnload"
-            >导出Excel</el-button
+            ><!-- 导出Excel -->{{$t('Common.exp_excel')}}</el-button
           >
         </div>
         <el-autocomplete
@@ -37,14 +37,14 @@
           v-model="leftSearchVal"
           :fetch-suggestions="handleLeftSearch"
           :trigger-on-focus="false"
-          placeholder="指标名称/指标ID"
+          :placeholder="$t('Edb.InputHolderAll.input_name_orid')"
           @select="handleSelectLeftSearchval"
           popper-class="el-autocomplete-suggestion-data-entry"
           clearable
         >
           <template slot-scope="scope">
             <div v-if="scope.item.nodata" style="text-align: center">
-              暂无数据
+              <!-- 暂无数据 -->{{$t('Table.prompt_slogan')}}
             </div>
             <div v-else>
               {{ scope.item.IndexName }}
@@ -128,7 +128,7 @@
             alt=""
             style="width: 16px; height: 16px; margin: 10px"
           />
-          <span>添加分类</span>
+          <span><!-- 添加分类 -->{{$t('SteelChemicalPage.add_classify_btn')}}</span>
         </div>
       </div>
       <span
@@ -144,7 +144,7 @@
       class="right-cont minHeight"
       id="right"
       v-loading="dataloading"
-      element-loading-text="获取数据中..."
+      :element-loading-text="$t('Table.data_loading')"
     >
       <div v-if="rightShow">
         <el-button
@@ -155,7 +155,7 @@
           :loading="isRefresh"
           style="margin-bottom: 10px"
           v-if="edb_id"
-          >一键更新</el-button
+          ><!-- 一键更新 -->{{$t('SteelChemicalPage.refresh_one_btn')}}</el-button
         >
 
         <div
@@ -195,7 +195,7 @@
         </div>
       </div>
       <div v-else class="nodata-cont">
-        <tableNoData text="暂无数据"/>
+        <tableNoData :text="$t('Table.prompt_slogan')"/>
       </div>
     </div>
 
@@ -203,7 +203,7 @@
     <m-dialog
       :show.sync="openClassifyDia"
       width="700px"
-      :title="classifyForm.title"
+      :title="classifyForm.title==='添加分类'?$t('SteelChemicalPage.add_classify_btn'):$t('SteelChemicalPage.edit_classify_msg')"
       @close="openClassifyDia = false"
     >
       <div class="dialog-cont">
@@ -211,19 +211,19 @@
           ref="classifyFormRef"
           label-position="left"
           hide-required-asterisk
-          label-width="80px"
+          label-width="120px"
           :model="classifyForm"
           :rules="classifyFormRules"
           @close="cancelDialogHandle"
         >
-          <el-form-item label="一级目录" v-if="classifyForm.parent_classify_id">
+          <el-form-item :label="$t('SteelChemicalPage.label_one_level')"  v-if="classifyForm.parent_classify_id">
             <span>{{ classifyForm.parent_classify_name }}</span>
           </el-form-item>
-          <el-form-item label="分类名称" prop="classify_name">
+          <el-form-item :label="$t('SteelChemicalPage.label_classify_name')" prop="classify_name">
             <el-input
               v-model="classifyForm.classify_name"
               style="width: 80%"
-              placeholder="必填项"
+              :placeholder="$t('Dialog.require_vaild')"
             />
           </el-form-item>
         </el-form>
@@ -233,10 +233,10 @@
           type="primary"
           style="margin-right: 20px"
           @click="saveClassifyHandle"
-          >保存</el-button
+          ><!-- 保存 -->{{$t('Dialog.confirm_save_btn')}}</el-button
         >
         <el-button type="primary" plain @click="cancelDialogHandle"
-          >取消</el-button
+          ><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button
         >
       </div>
     </m-dialog>
@@ -597,10 +597,10 @@ export default {
       this.$confirm(
         `${
           node.level === 3
-            ? "删除后该指标不能被引用,确认删除吗?"
-            : "删除分类将同步删除分类下所有指标,确认删除吗?"
+            ? this.$t('SteelChemicalPage.del_edb_msg')
+            : this.$t('SteelChemicalPage.del_classify_edb_msg')
         }`,
-        "提示",
+        this.$t('Dialog.warn_tit'),
         {
           type: "warning",
         }
@@ -615,7 +615,7 @@ export default {
 
           if (res.Ret !== 200) return;
 
-          this.$message.success("删除成功");
+          this.$message.success(/* "删除成功" */this.$t('MsgPrompt.delete_msg'));
           this.getClassify();
         })
         .catch(() => {});
@@ -671,7 +671,7 @@ export default {
 
       if (res.Ret !== 200) return;
 
-      this.$message.success("保存成功");
+      this.$message.success(/* "保存成功" */this.$t('MsgPrompt.saved_msg'));
       this.getClassify();
       this.openClassifyDia = false;
     },
@@ -695,7 +695,7 @@ export default {
         .then((res) => {
           this.isRefresh = false;
           if (res.Ret !== 200) return;
-          this.$message.success("刷新成功");
+          this.$message.success(/* "刷新成功" */this.$t('MsgPrompt.refresh_success_msg'));
           this.page_no = 1;
           this.getDataList();
         });

+ 46 - 40
src/views/dataEntry_manage/thirdBase/ysTargetBase.vue

@@ -1,24 +1,24 @@
 <template>
-  <div id="YS-data-container" v-loading="dataLoading" element-loading-text="指标数据加载中,请勿切换到其他页面">
-    <div class="search-zone" v-loading="listLoading" element-loading-text="列表加载中,请稍后">
+  <div id="YS-data-container" v-loading="dataLoading" :element-loading-text="$t('YsDataPage.loading_data_msg')">
+    <div class="search-zone" v-loading="listLoading" :element-loading-text="$t('YsDataPage.loading_list_msg')">
       <div class="search-row">
         <el-cascader @change="searchList" :options="classifyList" v-model="typeChecks" 
-        clearable placeholder="请选择分类" class="search-item" collapse-tags	
+        clearable :placeholder="$t('YsDataPage.ph_classify')" class="search-item" collapse-tags	
         :props="{
           value:'Type',
           label:'Type',
           children:'Child',
           multiple:true
         }"></el-cascader>
-        <el-select v-model="frequencyChecks" class="search-item" placeholder="请选择频度" 
+        <el-select v-model="frequencyChecks" class="search-item" :placeholder="$t('Edb.InputHolderAll.input_fre')" 
         multiple collapse-tags clearable @change="searchListDelay">
           <el-option :label="item" :value="item" v-for="item in frequencyList" :key="item" ></el-option>  
         </el-select>
-        <el-select v-model="dataStateChecks" class="search-item" placeholder="请选择指标数据状态" 
+        <el-select v-model="dataStateChecks" class="search-item" :placeholder="$t('YsDataPage.ph_data_status')" 
         multiple collapse-tags clearable @change="searchListDelay">
           <el-option :label="item.label" :value="item.value" v-for="item in dataStatusList" :key="item.value"></el-option>  
         </el-select>
-        <el-input v-model="searchParams.Keyword" placeholder="请输入指标ID/指标名称" class="search-item" clearable 
+        <el-input v-model="searchParams.Keyword" :placeholder="$t('Edb.InputHolderAll.input_name_orid')"  class="search-item" clearable 
         @blur="searchListDelay(!keyWordChanged)" @keyup.enter.native="searchListDelay(!keyWordChanged)" @clear="searchList"></el-input>
         <!-- <el-select v-model="edbCheckList" multiple filterable remote clearable collapse-tags class="search-item edb-filter"
           reserve-keyword placeholder="指标ID/指标名称" :remote-method="remoteMethod" 
@@ -27,66 +27,66 @@
             :label="item.IndexName" :value="item.IndexCode">
           </el-option>
         </el-select> -->
-        <el-checkbox label="列表全选" v-model="isCheckAll" :indeterminate="isCheckIndeterminate" style="margin: 0 20px 10px 0;"
+        <el-checkbox :label="$t('YsDataPage.label_all_check')" v-model="isCheckAll" :indeterminate="isCheckIndeterminate" style="margin: 0 20px 10px 0;"
         @change="listCheckAllChange"></el-checkbox>
       </div>
       <el-button type="primary" style="margin: 0 0 10px 0;padding:12px 18px ;" @click="addToEdbBase" 
-      :disabled="addBaseDisable"  v-permission="permissionBtn.dataSourcePermission.ysTarget_addBatch">添加到指标库</el-button>
+      :disabled="addBaseDisable"  v-permission="permissionBtn.dataSourcePermission.ysTarget_addBatch"><!-- 添加到指标库 -->{{$t('YsDataPage.add_base_btn')}}</el-button>
     </div>
     <div class="table-zone">
       <el-table :data="tableData" border @sort-change="sortChange"  @selection-change="selectionChange"
       ref="edbDataRef" @select="selectHandle" @select-all="selectAllHandle">
         <el-table-column type="selection" min-width="50" align="center"></el-table-column>
-        <el-table-column label="指标ID" align="center" prop="IndexCode">
+        <el-table-column :label="$t('Edb.Detail.e_id')" align="center" prop="IndexCode">
           <template slot-scope="{row}">
             {{row.IndexCode}}
           </template>
         </el-table-column>
-        <el-table-column label="指标名称" align="center" prop="IndexName">
+        <el-table-column :label="$t('Edb.Detail.e_name')" align="center" prop="IndexName">
           <template slot-scope="{row}">
             {{row.IndexName}}
           </template>
         </el-table-column>
-        <el-table-column label="频度" align="center" prop="Frequency" width="80">
+        <el-table-column :label="$t('Edb.Detail.e_fre')"  align="center" prop="Frequency" width="80">
           <template slot-scope="{row}">
             {{row.Frequency}}
           </template>
         </el-table-column>
-        <el-table-column label="单位" align="center" prop="Unit" >
+        <el-table-column :label="$t('Edb.Detail.e_unit')"  align="center" prop="Unit" >
           <template slot-scope="{row}">
             {{row.Unit}}
           </template>
         </el-table-column>
-        <el-table-column label="指标开始时间" align="center" prop="StartDate"
+        <el-table-column :label="$t('YsDataPage.col_start_time')" align="center" prop="StartDate"
         sortable="custom">
           <template slot-scope="{row}">
             {{row.StartDate}}
           </template>
         </el-table-column>
-        <el-table-column label="指标最新时间" align="center" prop="EndDate"
+        <el-table-column :label="$t('YsDataPage.col_newest_time')" align="center" prop="EndDate"
         sortable="custom" >
           <template slot-scope="{row}">
             {{row.EndDate}}
           </template>
         </el-table-column>
-        <el-table-column label="更新时间" align="center" prop="ModifyTime" sortable="custom">
+        <el-table-column :label="$t('Edb.Detail.e_update_time')" align="center" prop="ModifyTime" sortable="custom">
           <template slot-scope="{row}">
             {{row.ModifyTime}}
           </template>
         </el-table-column>
-        <el-table-column label="预计发布时间" align="center" prop="ReleaseTime" sortable="custom" >
+        <el-table-column :label="$t('YsDataPage.col_pub_time')" align="center" prop="ReleaseTime" sortable="custom" >
           <template slot-scope="{row}">
             {{row.ReleaseTime}}
           </template>
         </el-table-column>
-        <el-table-column label="指标数据状态" align="center" prop="DataState" >
+        <el-table-column :label="$t('YsDataPage.col_data_status')" align="center" prop="DataState" >
           <template slot-scope="{row}">
             {{row.DataState?
             dataStatusList.find(it => it.value == row.DataState)?dataStatusList.find(it => it.value == row.DataState).label:''
-            :'正常更新'}}
+            :$t('YsDataPage.col_status_normal')}}
           </template>
         </el-table-column>
-        <el-table-column label="分类" align="center" prop="TypeAll" >
+        <el-table-column :label="$t('YsDataPage.col_classify')" align="center" prop="TypeAll" >
           <template slot-scope="{row}">
             {{row.TypeAll}}
           </template>
@@ -99,24 +99,24 @@
     @handleCurrentChange="pageNumberChange"/>
     <!-- 指标重复弹窗 -->
     <el-dialog :visible.sync="checkFailShow" :close-on-click-modal="false" :modal-append-to-body='false' 
-			width="600px" title="操作提示">
+			width="600px" :title="$t('Dialog.warn_tit')">
 			<div class="check-fail-box">
 				<div>
 					<div style="margin-bottom: 20px;">
-            {{ indexAllExist?'本次添加的指标均已在指标库中,请勿重复添加!':'指标库中已存在以下指标,会自动过滤!' }}
+            {{ indexAllExist?$t('YsDataPage.haved_all_msg'):$t('YsDataPage.haved_some_msg') }}
           </div>
-					<div v-for="(item,index) in existIndexList" class="exist-index-item" @click="existIndexClick(item)">
+					<div v-for="(item,index) in existIndexList" :key="index" class="exist-index-item" @click="existIndexClick(item)">
 						{{ index+1+'、'+item.text }}
 					</div>
 				</div>
 				<div class="check-fail-button">
-					<el-button type="primary" @click="edbCheckFinished" style="width: 120px;">知道了</el-button>
+					<el-button type="primary" @click="edbCheckFinished" style="width: 120px;"><!-- 知道了 -->{{$t('Dialog.known')}}</el-button>
 				</div>
 			</div>
 		</el-dialog>
     <!-- 添加到指标库 -->
     <el-dialog :visible.sync="addToEbdDiaShow" :close-on-click-modal="false" :modal-append-to-body='false' 
-    width="980px" title="添加到指标库">
+    width="980px" :title="$t('YsDataPage.add_base_btn')">
       <div class="edb-table-box">
         <div class="edb-table-preview">
           <table width="auto" border="0">
@@ -128,7 +128,7 @@
                 <td v-for="(data, sub_index) in edbIndexDatas" :key="sub_index" :colspan="2" 
                 :class="highLightIndex.includes(data.EdbName) && item=='EdbName' ?'exist-highlight':''">
                   <template v-if="item === 'ClassifyId'">
-                    <el-cascader :options="options" v-model="data[item]" placeholder="请选择所属目录"
+                    <el-cascader :options="options" v-model="data[item]" :placeholder="$t('Edb.InputHolderAll.input_menu')"
                     size="mini" :disabled="!data.Source"
                     :props="{label: 'ClassifyName',
                       value: 'ClassifyId',
@@ -142,19 +142,19 @@
                     :disabled="!data.Source"
                       v-model.trim="data[item]"
                       :fetch-suggestions="querySearchUnit"
-                      placeholder="请输入单位"
+                      :placeholder="$t('Edb.InputHolderAll.input_unit')"
                       suffix-icon="el-icon-arrow-down"
                       size="mini"
                     ></el-autocomplete>
                   </template>
                   <template v-else-if="item === 'Frequency'">
-                    <el-select v-model="data[item]" placeholder="请选择频度" size="mini" :disabled="!data.Source">
+                    <el-select v-model="data[item]" :placeholder="$t('Edb.InputHolderAll.input_fre')" size="mini" :disabled="!data.Source">
                       <el-option :label="item" :value="item"
                       v-for="item in edbFrequencyList" :key="item"></el-option>
                     </el-select>
                   </template>
                   <template v-else-if="item === 'EdbName'">
-                    <el-input v-model.trim="data[item]" placeholder="请输入指标名称" size="mini" :disabled="!data.Source"></el-input>
+                    <el-input v-model.trim="data[item]" :placeholder="$t('Edb.InputHolderAll.input_name')" size="mini" :disabled="!data.Source"></el-input>
                   </template>
                   <template v-else>
                     <div style="padding: 0 7px;">{{ data[item] }}</div>
@@ -166,7 +166,7 @@
               <tr v-for="(item,index) in edbIndexDatas[0].DataList.length" :key="index">
                 <td :rowspan="edbIndexDatas[0].DataList.length" v-if="index==0"
                 class="sticky" style="left: 0;text-align: center;">
-                  数据详情
+                  <!-- 数据详情 -->{{$t('Edb.data_detail_tab')}}
                 </td>
                 <template v-for="(item1,index1) in edbIndexDatas.length">
                   <td>{{ edbIndexDatas[index1].DataList[index].DataTime }}</td>
@@ -177,8 +177,8 @@
           </table>
         </div>
         <div class="dia-bot">
-          <el-button @click="addToEbdDiaShow=false" style="width: 120px;">取消</el-button>
-          <el-button type="primary" @click="ysEdbSaveHandle" style="width: 120px;margin-left: 30px;" :loading="saveLoading">保存</el-button>
+          <el-button @click="addToEbdDiaShow=false" style="width: 120px;"><!-- 取消 -->{{$t('Dialog.cancel_btn')}}</el-button>
+          <el-button type="primary" @click="ysEdbSaveHandle" style="width: 120px;margin-left: 30px;" :loading="saveLoading"><!-- 保存 -->{{$t('Dialog.confirm_save_btn')}}</el-button>
         </div>
       </div>
 		</el-dialog>
@@ -218,7 +218,11 @@ import { frequencyArr} from '../databaseComponents/util';
         classifyList:[],
         frequencyList: ["日度", "周度", "月度", "季度", "半年", "年度"],
         edbFrequencyList:frequencyArr,
-        dataStatusList:[{value:'normal',label:'正常更新'},{value:'ceased',label:'已停更'},{value:'irregular',label:'更新依赖外部会有不定期延迟'}],
+        dataStatusList:[
+          {value:'normal',label:this.$t('YsDataPage.col_status_normal')},
+          {value:'ceased',label:this.$t('YsDataPage.col_status_close')},
+          {value:'irregular',label:this.$t('YsDataPage.col_status_irr')}
+        ],
         // forSearchParams:{
         //   Keyword:'',
         //   CurrentIndex:1,
@@ -248,13 +252,6 @@ import { frequencyArr} from '../databaseComponents/util';
           "EdbName",
           "EdbCode",
         ],
-        edbTableHeadData:new Map([
-          ["ClassifyId", "所属目录"],
-          ["Unit", "单位"],
-          ["Frequency", "频度"],
-          ["EdbName", "指标名称"],
-          ["EdbCode", "指标ID"],
-        ]),
         BatchList:[],
         addToEbdDiaShow:false,
         highLightIndex:[],
@@ -268,6 +265,15 @@ import { frequencyArr} from '../databaseComponents/util';
       },
       isCanView(){
         return this.permissionBtn.isShowBtn('dataSourcePermission','ysTarget_view')
+      },
+      edbTableHeadData(){
+        return new Map([
+          ["ClassifyId", /* "所属目录" */this.$t('Edb.Detail.e_menu')],
+          ["Unit", /* "单位" */this.$t('Edb.Detail.e_unit')],
+          ["Frequency", /* "频度" */this.$t('Edb.Detail.e_fre')],
+          ["EdbName", /* "指标名称" */this.$t('Edb.Detail.e_name')],
+          ["EdbCode", /* "指标ID" */this.$t('Edb.Detail.e_id')],
+        ])
       }
     },
     watch:{
@@ -688,7 +694,7 @@ import { frequencyArr} from '../databaseComponents/util';
         // return 
         smmDataInterface.ysEdbAddBatch({BatchList:this.BatchList}).then(res=>{
           if(res.Ret == 200){
-            this.$message.success("添加指标成功")
+            this.$message.success(/* "添加指标成功" */this.$t('MsgPrompt.add_msg2'))
             let {href} = this.$router.resolve({
               path:'/database',
               query:{code:res.Data.UniqueCode,id:res.Data.EdbInfoId,classifyId:res.Data.ClassifyId}

+ 22 - 18
src/views/dataEntry_manage/thirdBase/zzExchangeData.vue

@@ -27,7 +27,7 @@
                 >{{item}}</li>
             </ul>
         </div>
-        <div class="right-wrap box" v-loading="loading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading">
+        <div class="right-wrap box" v-loading="loading" :element-loading-text="$t('Table.data_loading')" element-loading-spinner="el-icon-loading">
             <div class="content" v-if="list.length>0">
                 <table width="auto">
                     <thead class="border-head">
@@ -39,7 +39,7 @@
                     </thead>
                     <tbody>
                         <tr v-for="item in list" :key="item.Rank">
-                            <td v-for="(val,key) in labelArr" :key="key">{{item.Rank==999&&key=='Rank'?'合计':item[key]}}</td>
+                            <td v-for="(val,key) in labelArr" :key="key">{{item.Rank==999&&key=='Rank'?$t('SqEnergyPage.col_total'):item[key]}}</td>
                         </tr>
                     </tbody>
                     <!-- <tfoot>
@@ -58,7 +58,7 @@
                 </table>
             </div>
             <div class="empty-wrap" v-else>
-                <tableNoData text="没有此日期的数据,请重新选择查询日期"/>
+                <tableNoData :text="$t('GasDataPage.no_data_msg')"/>
             </div>
         </div>
     </div>
@@ -73,21 +73,6 @@ export default {
     data() {
         return {
             isLeftWrapShow:true,
-            labelArr: {
-                Rank: "名次",
-                DealShortName: "会员简称",
-                DealCode: "指标ID",
-                DealValue: "成交量(手)",
-                DealChange: "增减量",
-                BuyShortName: "会员简称",
-                BuyCode: "指标ID",
-                BuyValue: "持买仓量",
-                BuyChange: "增减量",
-                SoldShortName: "会员简称",
-                SoldCode: "指标ID",
-                SoldValue: "持卖仓量",
-                SoldChange: "增减量",
-            },
             time:'',
             type:'',
             typeList:[],
@@ -95,6 +80,25 @@ export default {
             loading:false
         };
     },
+    computed: {
+        labelArr(){
+            return {
+                Rank: /* "名次" */this.$t('SqEnergyPage.col_rank'),
+                DealShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                DealCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                DealValue: /* "成交量(手)" */this.$t('SqEnergyPage.col_trade'),
+                DealChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+                BuyShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                BuyCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                BuyValue: /* "持买仓量" */this.$t('SqEnergyPage.col_buy'),
+                BuyChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+                SoldShortName:/*  "会员简称" */this.$t('SqEnergyPage.col_sname'),
+                SoldCode: /* "指标ID" */this.$t('Edb.Detail.e_id'),
+                SoldValue: /* "持卖仓量" */this.$t('SqEnergyPage.col_sold'),
+                SoldChange: /* "增减量" */this.$t('SqEnergyPage.col_inorde'),
+            }
+        } 
+    },
     created () {
         // this.getLastWorkDay()
         this.getClassifyList()

+ 23 - 19
src/views/futures_manage/futuresBase.vue

@@ -6,7 +6,7 @@
         type="date"
         range
         value-type="format"
-        placeholder="数据日期"
+        :placeholder="$t('FutureBasePage.ph_date')"
         @change="initData"
         style="width: 200px; "
       />
@@ -29,7 +29,7 @@
         <el-select
           v-model="filterObj.exchange"
           clearable
-          placeholder="请选择交易所"
+          :placeholder="$t('FutureBasePage.ph_exchange')"
           @change="initData"
         >
           <el-option
@@ -47,7 +47,7 @@
           :filterable="!filterObj.search_txt"
           remote
           clearable
-          placeholder="合约代码"
+          :placeholder="$t('FutureBasePage.col_good_code')"
           style="width: 350px"
           :remote-method="searchHandle"
           @change="initData"
@@ -83,7 +83,7 @@
         </template>
       </el-table-column>
       <div class="nodata" slot="empty">
-        <tableNoData text="请选择数据日期并输入合约代码" size="mini"/>
+        <tableNoData :text="$t('FutureBasePage.no_result_msg')" size="mini"/>
       </div>
     </el-table>
     
@@ -108,55 +108,59 @@ export default {
       loadOver: false,
       page_no: 1,
       pageSize: 20,
-      tableColums: [
+
+      exchangeOptions: [],//交易所数据
+    }
+  },
+  computed: {
+    tableColums() {
+      return [
         {
-					label: '日期',
+					label: /* '日期' */ this.$t('FutureBasePage.col_date'),
 					key: 'DataTime',
 					widthsty: '120px'
 				},
         {
-					label: '合约代码',
+					label: /* '合约代码' */this.$t('FutureBasePage.col_good_code'),
 					key: 'FutureGoodEdbCode',
 				},
         {
-					label: '合约名称',
+					label: /* '合约名称' */this.$t('FutureBasePage.col_good_name'),
 					key: 'FutureGoodEdbName',
 				},
         {
-					label: '开盘价',
+					label: /* '开盘价' */this.$t('FutureBasePage.col_open'),
 					key: 'Open',
 				},
         {
-					label: '最高价',
+					label: /* '最高价' */this.$t('FutureBasePage.col_high'),
 					key: 'High',
 				},
         {
-					label: '最低价',
+					label: /* '最低价' */this.$t('FutureBasePage.col_low'),
 					key: 'Low'
 				},
         {
-					label: '收盘价',
+					label: /* '收盘价' */this.$t('FutureBasePage.col_close'),
 					key: 'Close'
 				},
         {
-					label: '成交量',
+					label: /* '成交量' */this.$t('FutureBasePage.col_volume'),
 					key: 'Volume'
 				},
         {
-					label: '成交额',
+					label: /* '成交额' */this.$t('FutureBasePage.col_amt'),
 					key: 'Amt'
 				},
         {
-					label: '持仓量',
+					label: /* '持仓量' */this.$t('FutureBasePage.col_oi'),
 					key: 'Oi'
 				},
         {
-					label: '结算价',
+					label: /* '结算价' */this.$t('FutureBasePage.col_settle'),
 					key: 'Settle'
 				},
-      ],
-
-      exchangeOptions: [],//交易所数据
+      ]
     }
   },
   methods: {