瀏覽代碼

研报,沙盘图翻译补充

cxmo 11 月之前
父節點
當前提交
12d9a86a88

+ 18 - 1
src/lang/modules/SandboxManage/SandList.js

@@ -21,9 +21,18 @@ export const SandListEn = {
     logic_diagram_name:"Logic diagram's name",
     delete_attention_msg1:'Logic diagrams exist under this category and cannot be deleted',
     delete_attention_msg2:'Are you sure to delete current category?',
+    delete_attention_msg3:'Are you sure to delete the current category and the subcategories it contains?',
     add_diagram_msg01:"Please fill in the logic diagram's name",
     select_categories_msg:'Please select category',
     save_as_success:'Save As successful.',
+    delete_check:"Are you sure to delete the logic diagram?",
+    move_classify_success:"Move sort success",
+    move_classify_fail:"Failed to restore the directory location. Refresh the directory",
+    success_text:"successful",
+    no_content_copy:"There is no content to copy",
+    copy_pic:"Copy the picture...",
+    no_content_pic:"Canvas without content",
+    save_pic:"Saving",
   };
   
   /* 中文 */
@@ -45,10 +54,18 @@ export const SandListEn = {
     logic_diagram_name:"逻辑图名称",
     delete_attention_msg1:'该分类下存在沙盘图,不可删除',
     delete_attention_msg2:'确定删除当前分类吗?',
+    delete_attention_msg3:'确认删除当前分类及包含的子分类吗?',
     add_diagram_msg01:'请填写逻辑图名称',
     select_categories_msg:'请选择所属分类',
     save_as_success:'另存为成功',
-
+    delete_check:"确定删除该沙盘图吗?",
+    move_classify_success:"移动分类成功",
+    move_classify_fail:"目录位置还原失败,刷新目录",
+    success_text:"成功",
+    no_content_copy:"暂无内容可复制",
+    copy_pic:"复制图片中...",
+    no_content_pic:"画布无内容",
+    save_pic:"保存中...",
   };
   
   /**

+ 2 - 2
src/views/report_manage/reportlist.vue

@@ -874,13 +874,13 @@ export default {
     },
     uploadaudio() {
       if (this.uploadForm.formdata == null) {
-        this.$message.error("请选择文件");
+        this.$message.error(/* "请选择文件" */this.$t('ReportManage.smart_msg.please_select_file'));
         return false;
       }
       this.uploadloading = true;
       voiceupload(this.uploadForm.formdata).then((res) => {
         if (res.Ret === 200) {
-          this.$message.success("上传成功");
+          this.$message.success(/* "上传成功" */this.$t('MsgPrompt.upload_success_msg'));
           this.getlist();
         }
         this.uploadloading = false;

+ 16 - 14
src/views/sandbox_manage/index_new_version.vue

@@ -490,7 +490,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
         }
         sandInterface.sandboxClassifyMove(params).then(res=>{
           if(res.Ret == 200){
-            this.$message.success('移动分类成功')
+            this.$message.success(/* '移动分类成功' */this.$t('SandboxManage.SandList.move_classify_success'))
             if(parentNode){
               this.zTreeObj.removeChildNodes(parentNode)
             }
@@ -499,7 +499,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
             // 接口失败后的还原位置
             let result=this.zTreeObj.moveNode(this.movingRecoveData.targetNode,this.movingRecoveData.treeNode,this.movingRecoveData.moveType)
             if(!result){
-              this.$message.error('目录位置还原失败,刷新目录')
+              this.$message.error(/* '目录位置还原失败,刷新目录' */this.$t('SandboxManage.SandList.move_classify_fail'))
               setTimeout(()=>{
                 this.getSandboxClassify()
               },1000)
@@ -645,7 +645,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
              */
             const deleteLabelMap = {
               1: this.$t('SandboxManage.SandList.delete_attention_msg1')||'该分类下存在沙盘图,不可删除',
-              2: '确认删除当前分类及包含的子分类吗?',
+              2: this.$t('SandboxManage.SandList.delete_attention_msg3')||'确认删除当前分类及包含的子分类吗?',
               4: res.Data.TipsMsg
             }
 
@@ -660,7 +660,9 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
             else if([0,2].includes(res.Data.DeleteStatus)) this.$confirm(
                 res.Data.DeleteStatus === 2 
                 ? deleteLabelMap[res.Data.DeleteStatus]
-                : node.SandboxId?'确认删除该沙盘图吗?':this.$t('SandboxManage.SandList.delete_attention_msg2'), 
+                : node.SandboxId
+                    ?/* '确认删除该沙盘图吗?' */this.$t('SandboxManage.SandList.delete_check')
+                    :/* '确定删除当前分类吗?' */this.$t('SandboxManage.SandList.delete_attention_msg2'), 
                 this.$t('Confirm.prompt'),
                 {
                 confirmButtonText: this.$t('Dialog.confirm_btn'),
@@ -706,7 +708,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
               sandInterface.editSandboxClassify(params).then(res=>{
                 if(res.Ret == 200){
                   this.classifyAddShow=false
-                  this.$message.success(this.classifyAddTitle+"成功")
+                  this.$message.success(this.classifyAddTitle+/* "成功" */this.$t('SandboxManage.SandList.success_text'))
                   let parentNode = this.locationNode.getParentNode()
 
                   if(!parentNode){
@@ -730,7 +732,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
               sandInterface.addSandboxClassify(params).then(res=>{
                 if(res.Ret == 200){
                   this.classifyAddShow=false
-                  this.$message.success(this.classifyAddTitle+"成功")
+                  this.$message.success(this.classifyAddTitle+/* "成功" */this.$t('SandboxManage.SandList.success_text'))
                   if(!this.addClassifyNodeTid){
                     this.getSandboxClassify()
                   }else{
@@ -841,10 +843,10 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
         })
       },
       copyHandle:_.debounce(function ({ PicUrl }){
-        if(!PicUrl) return this.$message('暂无内容可复制')
+        if(!PicUrl) return this.$message(/* '暂无内容可复制' */this.$t('SandboxManage.SandList.no_content_copy'))
         this.lockLoding = this.$loading({
           lock: true,
-          text: '复制图片中...',
+          text: this.$t('SandboxManage.SandList.copy_pic'),
           target: '.sandbox-pictures-box',
           spinner: 'el-icon-loading',
           background: 'rgba(255, 255, 255, 0.8)'
@@ -869,7 +871,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
                 this.$message.success(this.$t('MsgPrompt.copy_success_msg'))
                 },
                 () => {
-                  this.$message.warning('浏览器不支持')
+                  this.$message.warning(/* '浏览器不支持' */this.$t('MsgPrompt.browser_not_support'))
                 }
               ).finally(()=>{
                 this.lockLoding && this.lockLoding.close();
@@ -882,7 +884,7 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
         }
       },500),
       deleteHandle(item,type){
-        this.$confirm("确定删除该沙盘图吗?", this.$t('Confirm.prompt'), {
+        this.$confirm(/* "确定删除该沙盘图吗?" */this.$t('SandboxManage.SandList.delete_check'), this.$t('Confirm.prompt'), {
           type: "warning",
         })
         .then(() => {
@@ -960,13 +962,13 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
         this.saveOtherForm.classifyId=value[value.length-1]
       },
       saveOtherSubmit: _.debounce( function() {
-        if(!this.graph.toJSON().cells.length) return this.$message.warning('画布无内容');
+        if(!this.graph.toJSON().cells.length) return this.$message.warning(/* '画布无内容' */this.$t('SandboxManage.SandList.no_content_pic'));
         this.$refs.saveOtherFormRef.validate(valid=>{
           if(valid){
             const { Content,MindmapData} = this.viewSandbox;
             this.lockLoding = this.$loading({
               lock: true,
-              text: '保存中...',
+              text: this.$t('SandboxManage.SandList.save_pic'),
               target: '.save-as-dialog',
               spinner: 'el-icon-loading',
               background: 'rgba(255, 255, 255, 0.8)'
@@ -1044,11 +1046,11 @@ import {reportVarietyInterence} from '@/api/modules/reportVariety'
       },
       copySandHandle: _.debounce(function() {
         const { cells } = this.graph.toJSON();
-        if(!cells.length) return this.$message.warning('当前画布无可复制内容');
+        if(!cells.length) return this.$message.warning(/* '当前画布无可复制内容' */this.$t('SandboxManage.SandList.no_content_copy'));
 
         this.lockLoding = this.$loading({
           lock: true,
-          text: '复制图片中...',
+          text: this.$t('SandboxManage.SandList.save_pic'),
           target: '.sandbox-chart-box',
           spinner: 'el-icon-loading',
           background: 'rgba(255, 255, 255, 0.8)'