Ver Fonte

英文研报,PPT模块翻译补充

cxmo há 11 meses atrás
pai
commit
4af61960d4

+ 6 - 2
src/lang/modules/Slides/pptMsg.js

@@ -14,7 +14,9 @@ export const messageEn = {
     `<p>2. Choose the desired location to copy or cut the PPT slides, click on the more options for the selected PPT slide, and choose "Paste Before This Slide" or "Paste After This Slide."</p>`,
   msg_affirmative: "Affirmative",
   is_delete_ppt_msg:'Are you sure to delete the ppt on this page',
-  generating_powerPoint_msg:'Generating PowerPoint'
+  generating_powerPoint_msg:'Generating PowerPoint...',
+  msg_page_at_least_one:'Please add at least one page!',
+  download_ppt_msg:'Generating PPT completed. Now downloading PowerPoint...',
 
 };
 
@@ -30,6 +32,8 @@ export const messageZh = {
     `<p>2、选择所要复制或剪切的PPT页位置,点击PPT页的更多操作项,选择“粘贴到此页前”或“粘贴到此页后”。</p>`,
   msg_affirmative: "知道了",
   is_delete_ppt_msg:'确定删除该页ppt吗',
-  generating_powerPoint_msg:'生成ppt中...'
+  generating_powerPoint_msg:'生成ppt中...',
+  msg_page_at_least_one:'请至少添加一页!',
+  download_ppt_msg:'生成PPT完成,正在下载PPT...',
 };
 // Slides

+ 12 - 0
src/routes/modules/pptRoutes.js

@@ -13,11 +13,17 @@ export default [
 		path: '/pptpresent',
 		component: () => import('@/views/ppt_manage/newVersion/pptPresent.vue'),
 		name: 'ppt演示',
+		meta:{
+			name_en:'ppt demo'
+		},
 		hidden: true,
 	},{
 		path: '/pptpublish',
 		component: () => import('@/views/ppt_manage/newVersion/pptPublish.vue'),
 		name: 'ppt发布',
+		meta:{
+			name_en:'ppt publish'
+		},
 		hidden: true,
 	},
    //英文ppt 演示 发布
@@ -26,12 +32,18 @@ export default [
 		component: () => import('@/views/ppt_manage/newVersion/pptEnPresent.vue'),
 		name: 'ppt演示',
 		hidden: true,
+		meta:{
+			name_en:'ppt demo'
+		},
   },
 	{
     path: '/pptenpublish',
 		component: () => import('@/views/ppt_manage/newVersion/pptEnPublish.vue'),
 		name: 'ppt发布',
 		hidden: true,
+		meta:{
+			name_en:'ppt publish'
+		},
   },
 
   // ppt自动生成

+ 1 - 1
src/views/ppt_manage/mixins/layerMixins.js

@@ -23,7 +23,7 @@ export default {
     handleChangeEditModal(){
       //判断当前ppt是否添加了页面
       if(this.pageList.length===0){
-        this.$message.warning('请至少添加一页!')
+        this.$message.warning(this.$t('Slides.msg_page_at_least_one'))
         return
       }
       this.isEditLayer = !this.isEditLayer

+ 1 - 1
src/views/ppt_manage/newVersion/components/TextEditor.vue

@@ -78,7 +78,7 @@ export default {
         skin_url: "/static/css",//会发送http请求,/static/css->localhost:8080/static/css/skin.min.css
         content_url: "/static/css",
         /* auto_focus:true */
-        placeholder:"点击输入文本内容"
+        placeholder:this.$t('Slides.click_input_text_content')
       },
       initFlag: false,
       afterMounted:false

+ 1 - 1
src/views/ppt_manage/newVersion/components/editor/chooseCover/TextEl.vue

@@ -104,7 +104,7 @@
                     skin_url: "/static/css",
                     content_url: "/static/css",
                     //加placeholder
-                    placeholder: "点击输入文本内容"
+                    placeholder:this.$t('Slides.click_input_text_content')
                 }
             };
         },

+ 1 - 5
src/views/ppt_manage/newVersion/components/formatEl/TextEl.vue

@@ -84,6 +84,7 @@ export default {
         fixed_toolbar_container: ".richtext-tool",//将toolbar放到指定div上
         skin_url: "/static/css",
         content_url: "/static/css",
+        placeholder:this.$t('Slides.click_input_text_content')
        
       },
       content:'',
@@ -132,11 +133,6 @@ export default {
       tinymce.editors[elementId].focus()
     },
   },
-  computed:{
-     placeholder(){
-      return this.$t('Slides.click_input_text_content')
-     }
-  }
 };
 </script>
 

+ 1 - 1
src/views/ppt_manage/newVersion/components/layer/Element/TextShape.vue

@@ -99,7 +99,7 @@ export default {
         skin_url: "/static/css",
         content_url: "/static/css",
         //加placeholder
-        placeholder:"点击输入文本内容"
+        placeholder:this.$t('Slides.click_input_text_content')
       }
     };
   },

+ 1 - 1
src/views/ppt_manage/newVersion/pptEnPublish.vue

@@ -422,7 +422,7 @@ export default {
       if(type==='dowload'){
         this.downloadLoading = this.$loading({
             fullscreen:true,
-            text:'生成PPT完成,正在下载PPT...'
+            text:this.$t('Slides.download_ppt_msg')
         })
         pptx2.writeFile({ 
             fileName: `${this.coverInfo.page.Title||'unname'}.pptx`,

+ 1 - 1
src/views/ppt_manage/newVersion/pptPublish.vue

@@ -453,7 +453,7 @@ export default {
       if(type==='dowload'){
         this.downloadLoading = this.$loading({
             fullscreen:true,
-            text:'生成PPT完成,正在下载PPT...'
+            text:this.$t('Slides.download_ppt_msg')
         })
         pptx.writeFile({ 
             fileName: `${this.coverInfo.page.Title||'unname'}.pptx`,

+ 8 - 8
src/views/report_manage/reportEn/reportEditor.vue

@@ -174,14 +174,14 @@
 								size="medium"
 								style="width: 270px"
 							> 
-							   <el-option :label="$t('ReportManage.smart_annually')" :value="$t('ReportManage.smart_annually')"></el-option>
-                               <el-option :label="$t('ReportManage.smart_semi_annually')" :value="$t('ReportManage.smart_semi_annually')"></el-option>
-                               <el-option :label="$t('ReportManage.smart_quarterly')" :value="$t('ReportManage.smart_quarterly')"></el-option>
-                               <el-option :label="$t('ReportManage.smart_monthly')" :value="$t('ReportManage.smart_monthly')"></el-option>
-                               <el-option :label="$t('ReportManage.smart_bi_weekly')" :value="$t('ReportManage.smart_bi_weekly')"></el-option>
-                               <el-option :label="$t('ReportManage.smart_weekly')" :value="$t('ReportManage.smart_weekly')"></el-option>
-                               <el-option :label="$t('ReportManage.smart_daily')" :value="$t('ReportManage.smart_daily')"></el-option>
-                               <el-option :label="$t('ReportManage.smart_irregularly')" :value="$t('ReportManage.smart_irregularly')"></el-option>
+								<el-option :label="$t('ReportManage.smart_annually')" value="年度"></el-option>
+								<el-option :label="$t('ReportManage.smart_semi_annually')" value="半年度"></el-option>
+								<el-option :label="$t('ReportManage.smart_quarterly')" value="季度"></el-option>
+								<el-option :label="$t('ReportManage.smart_monthly')" value="月度"></el-option>
+								<el-option :label="$t('ReportManage.smart_bi_weekly')" value="双周度"></el-option>
+								<el-option :label="$t('ReportManage.smart_weekly')" value="周度"></el-option>
+								<el-option :label="$t('ReportManage.smart_daily')" value="日度"></el-option>
+								<el-option :label="$t('ReportManage.smart_irregularly')" value="不定时"></el-option>
 							</el-select>
 						</el-form-item>
 						<el-form-item :label="$t('ReportManage.ReportList.creation_time_select')">

+ 19 - 6
src/views/report_manage/reportEn/reportlist.vue

@@ -51,7 +51,7 @@
                             clearable
                             style="width:100%;"
                         >
-                            <el-option v-for="item in frequencyArr" :key="item" :label="item" :value="item"></el-option>
+                            <el-option v-for="item in frequencyArr" :key="item.value" :label="item.label" :value="item.value"></el-option>
                         </el-select>
                     </div>
                     <div class="select-item">
@@ -179,7 +179,10 @@
                 <span v-if="row.State == '5'">{{$t('ReportManage.smart_rejected')}}</span>
                 <span v-if="row.State == '6'">{{$t('ReportManage.smart_approved')}}</span>
               </span>
-              <span v-else-if="item.key==='Stage'">第{{row.Stage}}期</span>
+              <span v-else-if="item.key==='Stage'">
+                <!-- 第{{row.Stage}}期 -->
+                {{ $t('ReportManage.smart_issue_bumber_text',{num:row.Stage}) }}
+              </span>
               <span v-else-if="item.key==='Pv'" style="cursor:pointer; color:#4099ef;" >
                 <span @click="reportHandle(row,'PV')" v-if="row.PvEmail">{{row.PvEmail}}</span>
                 <span v-if="row.PvEmail&&row.Pv" style="color:#333">/</span>
@@ -195,10 +198,8 @@
                 <template v-else>
                     <span>{{row.ApproveTime}}</span>
                 </template>
-                
-                
               </span>
-
+              <span v-else-if="item.key==='Frequency'">{{ getFrequencyTrans(row.Frequency) }}</span>
               <span v-else-if="item.key==='handle'">
                     <!-- 操作:未发布——发布、编辑、删除
                     已发布——取消发布、群发邮件/群发日志
@@ -478,7 +479,7 @@ export default {
         publishState:''
       },
       optionsArr:[],
-      frequencyArr: [ '年度','半年度','季度','月度','双周度','周度','日度','不定时' ],
+      /* frequencyArr: [ '年度','半年度','季度','月度','双周度','周度','日度','不定时' ], */
 
       listLoading: false,
       tableData: [],
@@ -577,6 +578,18 @@ export default {
             fixed:'right',
         },
       ]
+    },
+    frequencyArr(){
+        return [
+            {label:this.$t('ReportManage.smart_annually'),value:'年度'},
+            {label:this.$t('ReportManage.smart_semi_annually'),value:'半年度'},
+            {label:this.$t('ReportManage.smart_quarterly'),value:'季度'},
+            {label:this.$t('ReportManage.smart_monthly'),value:'月度'},
+            {label:this.$t('ReportManage.smart_bi_weekly'),value:'双周度'},
+            {label:this.$t('ReportManage.smart_weekly'),value:'周度'},
+            {label:this.$t('ReportManage.smart_daily'),value:'日度'},
+            {label:this.$t('ReportManage.smart_irregularly'),value:'不定时'},
+        ]
     }
   },
   methods: {