浏览代码

数据源 lang改一波

Karsa 1 年之前
父节点
当前提交
c02045780f

+ 4 - 0
src/lang/commonLang.js

@@ -167,6 +167,10 @@ export default {
       en: "Saved successfully.",
       en: "Saved successfully.",
       zh: "保存成功",
       zh: "保存成功",
     },
     },
+    entry_msg: {
+      en: "Entry Successful",
+      zh: "录入成功",
+    },
     delete_info_msg: {
     delete_info_msg: {
       en: "Are you sure you want to permanently delete this file?",
       en: "Are you sure you want to permanently delete this file?",
       zh: "删除后不可恢复,是否确认删除?",
       zh: "删除后不可恢复,是否确认删除?",

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

@@ -58,6 +58,7 @@ export default {
     step_two:'2. Step Two: Upload data. Click on "Import Data" to upload the completed template and confirm the import. ',
     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 ',
     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',
     upload_size_msg:'The file size must not exceed 10MB',
+    down_fail_list2: 'Download Failure List'
   },
   },
 
 
   /* 期货数据库页面 */
   /* 期货数据库页面 */
@@ -150,6 +151,7 @@ export default {
   /* 上期能源 */
   /* 上期能源 */
   SqEnergyPage: {
   SqEnergyPage: {
     contranct_code:'Contract Code',
     contranct_code:'Contract Code',
+    product_name:'Product Name',
     col_rank:'Rank',
     col_rank:'Rank',
     col_sname:'Membership Abbreviation',
     col_sname:'Membership Abbreviation',
     col_trade:'Volume (lots)',
     col_trade:'Volume (lots)',

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

@@ -58,6 +58,7 @@ export default {
     step_two:'2、第二步,上传数据。点击“导入数据”,上传已经填写好的模板,确认导入。',
     step_two:'2、第二步,上传数据。点击“导入数据”,上传已经填写好的模板,确认导入。',
     step_three:'3、第三步,完成导入。若有导入失败数据,下载',
     step_three:'3、第三步,完成导入。若有导入失败数据,下载',
     upload_size_msg:'文件大小不得超过10M',
     upload_size_msg:'文件大小不得超过10M',
+    down_fail_list2: '下载失败列表'
   },
   },
 
 
   /* 期货数据库页面 */
   /* 期货数据库页面 */

+ 5 - 1
src/lang/modules/EtaBase/commonLang.js

@@ -315,7 +315,7 @@ export default {
     },
     },
     dekad: {
     dekad: {
       zh:'旬度',
       zh:'旬度',
-      en:'Every ten days'
+      en:'Decadal'
     },
     },
     month: {
     month: {
       zh:'月度',
       zh:'月度',
@@ -325,6 +325,10 @@ export default {
       zh:'季度',
       zh:'季度',
       en:'Quarterly'
       en:'Quarterly'
     },
     },
+    half_year: {
+      zh:'半年度',
+      en:'Semi-Annual'
+    },
     year: {
     year: {
       zh:'年度',
       zh:'年度',
       en:'Yearly'
       en:'Yearly'

+ 30 - 12
src/views/dataEntry_manage/components/addTarget.vue

@@ -84,7 +84,7 @@
 								class="inline-input"
 								class="inline-input"
 								v-model="formData.unit"
 								v-model="formData.unit"
 								:fetch-suggestions="querySearchUnit"
 								:fetch-suggestions="querySearchUnit"
-								placeholder="请填写单位"
+								:placeholder="$t('Edb.InputHolderAll.input_unit')"
 								suffix-icon="el-icon-arrow-down"
 								suffix-icon="el-icon-arrow-down"
 								style="width: 321px;"
 								style="width: 321px;"
 							></el-autocomplete>
 							></el-autocomplete>
@@ -190,13 +190,34 @@ import {dataInterence} from 'api/api.js';
 					],
 					],
 				},
 				},
 				frequencyArr: [
 				frequencyArr: [
-					{ label:'日度',value:'日度' },
-					{ label:'周度',value:'周度' },
-					{ label:'旬度',value:'旬度' },
-					{ label:'月度',value:'月度' },
-					{ label:'季度',value:'季度' },
-					{ label:'半年度',value:'半年度' },
-					{ label:'年度',value:'年度' },
+					{
+						value: '日度',
+						label: /* '日度'  */this.$t('Edb.FreAll.day'),
+					},
+					{
+						value: '周度',
+						label: /* '周度' */this.$t('Edb.FreAll.week'),
+					},
+					{
+						value: '旬度',
+						label: /* '旬度' */this.$t('Edb.FreAll.dekad'),
+					},
+					{
+						value: '月度',
+						label: /* '月度' */this.$t('Edb.FreAll.month'),
+					},
+					{
+						value: '季度',
+						label: /* '季度' */ this.$t('Edb.FreAll.quarter'),
+					},
+					{
+						value: '半年度',
+						label: /* '半年度' */ this.$t('Edb.FreAll.month'),
+					},
+					{
+						value: '年度',
+						label: /* '年度' */ this.$t('Edb.FreAll.year'),
+					}
 				],
 				],
 				weeksArr: [
 				weeksArr: [
 					{ label:'周一',value:'周一' },
 					{ label:'周一',value:'周一' },
@@ -360,10 +381,7 @@ import {dataInterence} from 'api/api.js';
 								NoticeTime:notice_time
 								NoticeTime:notice_time
 							}).then(res => {
 							}).then(res => {
 								if(res.Ret === 200) {
 								if(res.Ret === 200) {
-									this.$message({
-										message: '新增指标成功!',
-										type: 'success'
-									});
+									this.$message.success(this.$t('MsgPrompt.add_msg'));
 									this.$emit('addOver',this.formData.type)
 									this.$emit('addOver',this.formData.type)
 									// // 重置分类id
 									// // 重置分类id
 									// this.classify_id = sessionStorage.getItem('default_id') || '';
 									// this.classify_id = sessionStorage.getItem('default_id') || '';

+ 33 - 21
src/views/dataEntry_manage/components/editTarget.vue

@@ -76,7 +76,7 @@
 								class="inline-input"
 								class="inline-input"
 								v-model="formData.unit"
 								v-model="formData.unit"
 								:fetch-suggestions="querySearchUnit"
 								:fetch-suggestions="querySearchUnit"
-								placeholder="请填写单位"
+								:placeholder="$t('Edb.InputHolderAll.input_unit')"
 								suffix-icon="el-icon-arrow-down"
 								suffix-icon="el-icon-arrow-down"
 								style="width: 321px;"
 								style="width: 321px;"
 							></el-autocomplete>
 							></el-autocomplete>
@@ -193,13 +193,34 @@ import {dataInterence} from 'api/api.js';
 					],
 					],
 				},
 				},
 				frequencyArr: [
 				frequencyArr: [
-					{ label:'日度',value:'日度' },
-					{ label:'周度',value:'周度' },
-					{ label:'旬度',value:'旬度' },
-					{ label:'月度',value:'月度' },
-					{ label:'季度',value:'季度' },
-					{ label:'半年度',value:'半年度' },
-					{ label:'年度',value:'年度' },
+					{
+						value: '日度',
+						label: /* '日度'  */this.$t('Edb.FreAll.day'),
+					},
+					{
+						value: '周度',
+						label: /* '周度' */this.$t('Edb.FreAll.week'),
+					},
+					{
+						value: '旬度',
+						label: /* '旬度' */this.$t('Edb.FreAll.dekad'),
+					},
+					{
+						value: '月度',
+						label: /* '月度' */this.$t('Edb.FreAll.month'),
+					},
+					{
+						value: '季度',
+						label: /* '季度' */ this.$t('Edb.FreAll.quarter'),
+					},
+					{
+						value: '半年度',
+						label: /* '半年度' */ this.$t('Edb.FreAll.month'),
+					},
+					{
+						value: '年度',
+						label: /* '年度' */ this.$t('Edb.FreAll.year'),
+					}
 				],
 				],
 				weeksArr: [
 				weeksArr: [
 					{ label:'周一',value:'周一' },
 					{ label:'周一',value:'周一' },
@@ -306,10 +327,7 @@ import {dataInterence} from 'api/api.js';
 										OldCreateDate:this.old_date
 										OldCreateDate:this.old_date
 									}).then(res => {
 									}).then(res => {
 										if(res.Ret === 200) {
 										if(res.Ret === 200) {
-											this.$message({
-												message: '录入成功',
-												type: 'success'
-											});
+											this.$message.success(this.$t('MsgPrompt.entry_msg'));
 											this.$emit('editDataOver')
 											this.$emit('editDataOver')
 										}else {
 										}else {
 											this.$message({
 											this.$message({
@@ -319,7 +337,7 @@ import {dataInterence} from 'api/api.js';
 										}
 										}
 									})
 									})
 								}else if(res.Data.Status==1) {
 								}else if(res.Data.Status==1) {
-									this.$confirm('该日期已存在数据值'+res.Data.Close+',确认修改?','提示',{
+									this.$confirm('该日期已存在数据值'+res.Data.Close+',确认修改?',this.$t('Dialog.warn_tit'),{
 										type:'warning'
 										type:'warning'
 									}).then(() => {
 									}).then(() => {
 										//编辑数据
 										//编辑数据
@@ -330,10 +348,7 @@ import {dataInterence} from 'api/api.js';
 											OldCreateDate:this.old_date
 											OldCreateDate:this.old_date
 										}).then(res => {
 										}).then(res => {
 											if(res.Ret === 200) {
 											if(res.Ret === 200) {
-												this.$message({
-													message: '修改成功',
-													type: 'success'
-												});
+												this.$message.success(this.$t('MsgPrompt.edit_msg'));
 												this.$emit('editDataOver')
 												this.$emit('editDataOver')
 											}else {
 											}else {
 												this.$message({
 												this.$message({
@@ -379,10 +394,7 @@ import {dataInterence} from 'api/api.js';
 								NoticeTime:notice_time
 								NoticeTime:notice_time
 							}).then(res => {
 							}).then(res => {
 								if(res.Ret === 200) {
 								if(res.Ret === 200) {
-									this.$message({
-										message: '修改成功',
-										type: 'success'
-									});
+									this.$message.success(this.$t('MsgPrompt.edit_msg'));
 									this.$emit('editDataOver',1)
 									this.$emit('editDataOver',1)
 								}else if(res.Ret!=403){
 								}else if(res.Ret!=403){
 									this.$message({
 									this.$message({

+ 9 - 9
src/views/dataEntry_manage/targetList.vue

@@ -50,8 +50,8 @@
 					v-model="date"
 					v-model="date"
 					type="daterange"
 					type="daterange"
 					:range-separator="$t('Common.to')"
 					:range-separator="$t('Common.to')"
-					:start-placeholder="$t('Edb.InputHolderAll.ph_start_time')"
-					:end-placeholder="$t('Edb.InputHolderAll.ph_end_time')"
+					:start-placeholder="$t('ManualEdbListPage.ph_start_time')"
+					:end-placeholder="$t('ManualEdbListPage.ph_end_time')"
 					@change="dateChange"
 					@change="dateChange"
 					value-format="yyyy-MM-dd">
 					value-format="yyyy-MM-dd">
 				</el-date-picker>
 				</el-date-picker>
@@ -194,31 +194,31 @@ export default {
 			frequencyList:[
 			frequencyList:[
 				{
 				{
 					value: '日度',
 					value: '日度',
-					label: '日度',
+					label: /* '日度'  */this.$t('Edb.FreAll.day'),
 				},
 				},
 				{
 				{
 					value: '周度',
 					value: '周度',
-					label: '周度',
+					label: /* '周度' */this.$t('Edb.FreAll.week'),
 				},
 				},
 				{
 				{
 					value: '旬度',
 					value: '旬度',
-					label: '旬度',
+					label: /* '旬度' */this.$t('Edb.FreAll.dekad'),
 				},
 				},
 				{
 				{
 					value: '月度',
 					value: '月度',
-					label: '月度',
+					label: /* '月度' */this.$t('Edb.FreAll.month'),
 				},
 				},
 				{
 				{
 					value: '季度',
 					value: '季度',
-					label: '季度',
+					label: /* '季度' */ this.$t('Edb.FreAll.quarter'),
 				},
 				},
 				{
 				{
 					value: '半年度',
 					value: '半年度',
-					label: '半年度',
+					label: /* '半年度' */ this.$t('Edb.FreAll.month'),
 				},
 				},
 				{
 				{
 					value: '年度',
 					value: '年度',
-					label: '年度',
+					label: /* '年度' */ this.$t('Edb.FreAll.year'),
 				}
 				}
 			],//频度列表
 			],//频度列表
 			tableData: [],
 			tableData: [],