Browse Source

翻译补充

cxmo 11 months ago
parent
commit
d09c177cbb

+ 9 - 0
src/lang/modules/Aprroval/En.js

@@ -50,4 +50,13 @@ export default {
     rejection_title: "Examination and rejection",
     rejection_title: "Examination and rejection",
     rejection_reason_ipt: "Please enter the reason for rejection",
     rejection_reason_ipt: "Please enter the reason for rejection",
   },
   },
+  ApprovalEdit:{
+    name_placeholder:'Please enter an approval flow name',
+    name_max_hint:'The name is within 20 characters',
+    report_placeholder:'Please select the associated report',
+    add_node_hint:'Please add an approval node',
+    node_select_hint:'If no approver is selected for a node, check it',
+    edit_success_text:'Edit successfully',
+    add_success_text:'Add successfully'
+  }
 };
 };

+ 9 - 0
src/lang/modules/Aprroval/Zh.js

@@ -50,4 +50,13 @@ export default {
     rejection_title: "审批驳回",
     rejection_title: "审批驳回",
     rejection_reason_ipt: "请输入驳回理由",
     rejection_reason_ipt: "请输入驳回理由",
   },
   },
+  ApprovalEdit:{
+    name_placeholder:'请输入审批流名称',
+    name_max_hint:'长度在20个字符内',
+    report_placeholder:'请选择关联报告',
+    add_node_hint:'请添加审批节点',
+    node_select_hint:'有节点未选择审批人,请检查',
+    edit_success_text:'编辑成功',
+    add_success_text:'新增成功'
+  }
 };
 };

+ 1 - 0
src/lang/modules/MainApp/En.js

@@ -63,5 +63,6 @@ export default {
 
 
     tab_vaild_phone:'Mobile Phone Verification',
     tab_vaild_phone:'Mobile Phone Verification',
     tab_vaild_email:'Email Verification',
     tab_vaild_email:'Email Verification',
+    no_menu_hint:'This account does not have any menu permissions. Please contact the administrator',
   }
   }
 }
 }

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

@@ -63,5 +63,6 @@ export default {
 
 
     tab_vaild_phone:'手机号验证',
     tab_vaild_phone:'手机号验证',
     tab_vaild_email:'邮箱验证',
     tab_vaild_email:'邮箱验证',
+    no_menu_hint:"该账号没有任何菜单权限,请联系管理员"
   }
   }
 }
 }

+ 2 - 1
src/lang/modules/MyEta/En.js

@@ -78,6 +78,7 @@ export default {
     label_label_link:'Node Link',
     label_label_link:'Node Link',
     ph_link: 'Please select a node link',
     ph_link: 'Please select a node link',
 
 
-    no_graph_msg: 'Please draw canvas content'
+    no_graph_msg: 'Please draw canvas content',
+    upload_pic_fail:'Upload picture failed'
   }
   }
 }
 }

+ 2 - 1
src/lang/modules/MyEta/Zh.js

@@ -79,6 +79,7 @@ export default {
     label_label_link:'节点链接',
     label_label_link:'节点链接',
     ph_link: '请选择节点链接',
     ph_link: '请选择节点链接',
 
 
-    no_graph_msg: '请绘制画布内容'
+    no_graph_msg: '请绘制画布内容',
+    upload_pic_fail:'上传图片失败'
   }
   }
 }
 }

+ 1 - 1
src/views/Login.vue

@@ -397,7 +397,7 @@ export default {
                 if (res.Ret === 200) {
                 if (res.Ret === 200) {
                     let menuList = res.Data.List || [];
                     let menuList = res.Data.List || [];
                     if (!menuList.length) {
                     if (!menuList.length) {
-                        this.$message.error('该账号没有任何菜单权限,请联系管理员');
+                        this.$message.error(/* '该账号没有任何菜单权限,请联系管理员' */this.$t('LoginPage.no_menu_hint'));
                         return;
                         return;
                     }
                     }
                     // 是否已经拿到菜单信息
                     // 是否已经拿到菜单信息

+ 14 - 11
src/views/approve_manage/approveEdit.vue

@@ -5,11 +5,11 @@
             <el-form :inline="true" :model="approveForm" ref="approve-form" :rules="formRules"
             <el-form :inline="true" :model="approveForm" ref="approve-form" :rules="formRules"
                 label-width="180px" label-position="left">
                 label-width="180px" label-position="left">
                 <el-form-item :label="$t('SystemManage.ReportApprove.table_col01')" prop="name">
                 <el-form-item :label="$t('SystemManage.ReportApprove.table_col01')" prop="name">
-                    <el-input v-model="approveForm.name" :disabled="this.$route.query.flowId" placeholder="请输入审批流名称"></el-input>
+                    <el-input v-model="approveForm.name" :disabled="this.$route.query.flowId" :placeholder="$t('ApprovalEdit.name_placeholder')"></el-input>
                 </el-form-item>
                 </el-form-item>
                 <el-form-item :label="$t('SystemManage.ReportApprove.table_col02')" prop="classify">
                 <el-form-item :label="$t('SystemManage.ReportApprove.table_col02')" prop="classify">
                     <el-cascader v-model="approveForm.classify"
                     <el-cascader v-model="approveForm.classify"
-                        placeholder="请选择关联报告" clearable
+                        :placeholder="$t('ApprovalEdit.report_placeholder')" clearable
                         :disabled="this.$route.query.flowId"
                         :disabled="this.$route.query.flowId"
                         :options="classifyTree"
                         :options="classifyTree"
                         :props="{value:'ClassifyId',label:'ClassifyName',children:'Children'}"
                         :props="{value:'ClassifyId',label:'ClassifyName',children:'Children'}"
@@ -66,14 +66,17 @@ export default {
                 classify:'',
                 classify:'',
                 /* flowNodes:null */
                 /* flowNodes:null */
             },
             },
-            formRules:{
-                name:[{ required: true, message: '请输入审批流名称名称', trigger: 'blur' },
-                      { max: 20, message: '长度在20个字符内', trigger: 'change' }],
-                classify:[{ required: true, message: '请选择关联报告', trigger: 'blur' },]
-            },
-
         };
         };
     },
     },
+    computed:{
+        formRules(){
+            return {
+                name:[{ required: true, message: /* '请输入审批流名称' */this.$t('ApprovalEdit.name_placeholder'), trigger: 'blur' },
+                      { max: 20, message: /* '长度在20个字符内' */this.$t('ApprovalEdit.name_max_hint'), trigger: 'change' }],
+                classify:[{ required: true, message: /* '请选择关联报告' */this.$t('ApprovalEdit.report_placeholder'), trigger: 'blur' },]
+            }
+        }
+    },
     methods: {
     methods: {
         async checkFlow(){
         async checkFlow(){
             //检查name,region是否为空
             //检查name,region是否为空
@@ -81,12 +84,12 @@ export default {
             //检查审批流内容:每个审批节点是否都选择了审批人
             //检查审批流内容:每个审批节点是否都选择了审批人
             const data = this.$refs.floweditor.flowData
             const data = this.$refs.floweditor.flowData
             if(data.length<3){
             if(data.length<3){
-                this.$message.warning("请添加审批节点")
+                this.$message.warning(/* "请添加审批节点" */this.$t('ApprovalEdit.add_node_hint'))
                 return
                 return
             }
             }
             for(let item of data){
             for(let item of data){
                 if(item.nodeType===2&&!item.approvers.length){
                 if(item.nodeType===2&&!item.approvers.length){
-                    this.$message.warning("有节点未选择审批人,请检查")
+                    this.$message.warning(/* "有节点未选择审批人,请检查" */this.$t('ApprovalEdit.node_select_hint'))
                     return
                     return
                 }
                 }
             }
             }
@@ -128,7 +131,7 @@ export default {
                 res = await approveInterence.addNewApproveFlow(params)
                 res = await approveInterence.addNewApproveFlow(params)
             }
             }
             if(res.Ret!==200) return
             if(res.Ret!==200) return
-            this.$message.success(`${id?'编辑':'新增'}成功`)
+            this.$message.success(/* `${id?'编辑':'新增'}成功` */ id?this.$t('ApprovalEdit.edit_success_text'):this.$t('ApprovalEdit.add_success_text'))
             this.$router.push('/approveSetting')
             this.$router.push('/approveSetting')
         },
         },
         getFlowDetail(){
         getFlowDetail(){

+ 1 - 1
src/views/chartFrame_manage/frameEditor.vue

@@ -136,7 +136,7 @@ export default {
                 const { Data,Ret } = await dataBaseInterface.uploadImgSvg(params);
                 const { Data,Ret } = await dataBaseInterface.uploadImgSvg(params);
                 if(Ret !== 200) return;
                 if(Ret !== 200) return;
                 if(!Data){
                 if(!Data){
-                    return this.$message.warning("上传图片失败")
+                    return this.$message.warning(/* "上传图片失败" */this.$t('ChartFrameEditorPage.upload_pic_fail'))
                 }
                 }
                 this.frameDetail.FrameworkImg = Data.ResourceUrl||''
                 this.frameDetail.FrameworkImg = Data.ResourceUrl||''
             }
             }

+ 2 - 2
src/views/dataEntry_manage/databaseComponents/addTargetDiaBase.vue

@@ -634,7 +634,7 @@ export default {
 				return (it.StockCode && it.EdbCode) && ((!it.ClassifyId) || (!it.Unit) || (!it.Frequency) || (!it.EdbName))
 				return (it.StockCode && it.EdbCode) && ((!it.ClassifyId) || (!it.Unit) || (!it.Frequency) || (!it.EdbName))
 			})
 			})
 			if(flag){
 			if(flag){
-				this.$message.warning("指标信息未填写完整")
+				this.$message.warning(/* "指标信息未填写完整" */this.$t('BloombergPage.add_edb_check_hint1'))
 				return 
 				return 
 			}
 			}
 			this.BatchList.map((it,ind) => {
 			this.BatchList.map((it,ind) => {
@@ -647,7 +647,7 @@ export default {
 			})
 			})
 			dataBaseInterface.edbAddBatch({BatchList:this.BatchList}).then(res=>{
 			dataBaseInterface.edbAddBatch({BatchList:this.BatchList}).then(res=>{
 				if(res.Ret == 200){
 				if(res.Ret == 200){
-					this.$message.success("添加指标成功")
+					this.$message.success(/* "添加指标成功" */this.$t('MsgPrompt.add_msg2'))
 					this.$emit('addSuccessHandle',{ code:res.Data.UniqueCode,id:res.Data.EdbInfoId,classifyId:res.Data.ClassifyId })	
 					this.$emit('addSuccessHandle',{ code:res.Data.UniqueCode,id:res.Data.EdbInfoId,classifyId:res.Data.ClassifyId })	
 					this.cancelHandle()	
 					this.cancelHandle()	
 				}else if(res.Ret == 403){
 				}else if(res.Ret == 403){

+ 1 - 1
src/views/dataEntry_manage/databaseComponents/operationDialog.vue

@@ -645,7 +645,7 @@ export default {
 				let obj = this.searchOptions.find(item => item.EdbInfoId === val);
 				let obj = this.searchOptions.find(item => item.EdbInfoId === val);
 				if(obj.Frequency !== '月度' && this.type === 5) {
 				if(obj.Frequency !== '月度' && this.type === 5) {
 					this.select_target = '';
 					this.select_target = '';
-					this.$message.warning('只能选择月度指标')
+					this.$message.warning(/* '只能选择月度指标' */this.$t('ETableChildren.only_select_msg'))
 					return;
 					return;
 				}
 				}
 				//频度 名称默认同步
 				//频度 名称默认同步

+ 1 - 1
src/views/dataEntry_manage/thirdBase/ysTargetBase.vue

@@ -682,7 +682,7 @@ import {frequencySelectList} from '@/utils/defaultOptions';
 				  return it.Source && ((!it.ClassifyId) || (!it.Unit) || (!it.Frequency) || (!it.EdbName) || (!it.EdbCode))
 				  return it.Source && ((!it.ClassifyId) || (!it.Unit) || (!it.Frequency) || (!it.EdbName) || (!it.EdbCode))
         })
         })
         if(flag){
         if(flag){
-          this.$message.warning("指标信息未填写完整")
+          this.$message.warning(/* "指标信息未填写完整" */this.$t('BloombergPage.add_edb_check_hint1'))
           return 
           return 
         }
         }
         this.BatchList.map((it,ind) => {
         this.BatchList.map((it,ind) => {

+ 1 - 1
src/views/transferPage.vue

@@ -73,7 +73,7 @@ export default {
 				if (res.Ret === 200) {
 				if (res.Ret === 200) {
 					let menuList = res.Data.List || [];
 					let menuList = res.Data.List || [];
 					if (!menuList.length) {
 					if (!menuList.length) {
-						this.$message.error('该账号没有任何菜单权限,请联系管理员')
+						this.$message.error(/* '该账号没有任何菜单权限,请联系管理员' */this.$t('LoginPage.no_menu_hint'))
 						return
 						return
 					}
 					}
 					// 是否已经拿到菜单信息
 					// 是否已经拿到菜单信息