bding 1 жил өмнө
parent
commit
47e267356a

+ 139 - 70
src/lang/modules/Slides/pptList.js

@@ -29,8 +29,8 @@ export const listEn = {
   delete_directory_info: "Deletion action is irreversible, confirm deletion?",
   delete_directory_ppt_info: "This directory has associated PPTs, deletion is not allowed.",
   please_preview_info: "Please preview and publish first",
-  cancel_sharing_info: "you sure you want to unshare?",
-  successfully_converted_PPT: "Successfully converted into English PPT",
+  cancel_sharing_info: "Are you sure you want to unshare?",
+  successfully_converted_ppt: "Successfully converted into English PPT",
   batch_converted_ppt: "Successfully converted into English PPT",
   my_ppt_tabs: "My PPT",
   share_ppt_tabs: "Share PPT",
@@ -40,11 +40,80 @@ export const listEn = {
   add_directory_dlg: "Add Directory",
   edit_directory_dlg: "Edit directory",
   name_directory_dlg: "Directory Name",
-  input_directory_dlg: "Please Input Directory Name",
+  input_directory_dlg: "Please Input The Directory Name",
   please_input_cover_title: "Please input cover title",
   please_save_first: "Please save first",
   re_edit_slide: "Slide",
   please_re_edit: "content is incomplete, please re-edit!",
+  // ///////
+  view_report_btn: "View report",
+  editing_progress_msg: "Editing in progress.",
+  no_duplicated_edit_msg: "Another user is currently editing, editing cannot be duplicated.",
+  exceed_ppt_msg: "The number of charts inserted in PPT cannot exceed 100, please modify and retry.",
+  exceed_sixty_ppt_msg: "PPT pages cannot exceed 60, please modify and retry.",
+  move_success_msg: "Move successful.",
+  add_table_msg: "Please add a table of contents first!",
+  add_main_text_empty: "After adding the main text, it will be generated here.",
+  updating_chart_loading: "Updating chart information...",
+  error_ppt_data_msg: "Failed to retrieve PowerPoint data!",
+  unable_files_msg: "Unable to read files from clipboard!",
+  uploading_images_msg: "Uploading images...",
+  all_loaded_completely_text: "All loaded completely.",
+  please_add_page_msg: "Please add a page first.",
+  please_ppt_title_msg: "Please enter the title for slide number {count}!",
+  please_ppt_content_msg: "Please fill in the content for slide number {count}!",
+  most_add_ppt_msg: "A maximum of {count} PowerPoint slides can be added, please modify and try again!",
+  most_add_chart_msg: "Up to {count} charts can be added. Please make the necessary modifications and try again",
+  please_add_one_page: "Please add at least one page.",
+  deleting_process_loading: "Deleting in process...",
+  upload_error_msg: "Upload failed, please refresh and retry.",
+  no_categories_empty: "No categories available",
+  internal_chart_no_msg: "Internal chart, ppt insertion not allowed",
+  delete_chart_img_table: "There is no place left, please delete existing charts/images/tables",
+  least_one_ppt_msg: "Please add at least one PPT",
+  ppt_edit_btn: "PPT editing",
+  just_mine_radio: "Just Mine",
+  no_corresponding_ppt_msg: "No corresponding PPT data available",
+  this_one_ppt_msg: "This is already the first PPT",
+  this_last_ppt_msg: "This is already the last PPT",
+  please_select_researcher_msg: "Please select a researcher",
+  please_select_directory_msg: "Please select a directory.",
+  powerPoint_data_loading: "Loading PowerPoint data...",
+  my_company_title: "Hongze Midi Dao (Shanghai) Investment Consulting Co., Ltd.",
+  ficc_department_title: "FICC Research Department.",
+  get_report_data_loading: "Get report list...",
+  switch_template_title: "Switch template.",
+  custom_cover_page_title: "Custom Cover Page",
+  re_enter_entry_msg: "The starting page number must be less than or equal to the ending page number, please re-enter",
+  batch_import_all_chart: "This operation will batch import all charts under the selected graph category",
+  no_charts_category_msg: "No charts in this category",
+  keyword_search_ipt: "Keyword search",
+
+  copy_ppt_success: "Copying PowerPoint page successful.",
+  indicator_name_tlt: "Indicator name.",
+  es_indicator_name_tlt: "English indicator name.",
+  please_es_indicator_name: "Please enter an English indicator name.",
+  es_unit: "Unit in English.",
+  es_futures_name: "English futures name.",
+  please_es_futures_name: "Please enter an English futures name.",
+  gross_margin_name: "Gross margin name (for futures).",
+  es_gross_margin_name: "English gross margin name (for futures).",
+  please_es_margin_name: "Please enter an English gross margin name (for futures).",
+  x_axis_name: "X-axis name",
+  es_x_axis_name: "English X-axis name",
+  please_es_x_axis_name: "Please enter an English X-axis name",
+  loading_thumbnails: "Loading thumbnails",
+
+  drag_and_hold: "Drag and hold",
+  please_re_edit: "Title/Creator.",
+  download_pptx_file: "Download pptx file.",
+  is_delete_sure: "This action cannot be undone, are you sure you want to delete?",
+  last_updated_time: "Last updated time.",
+  creator_btn: "Creator.",
+  presentation_ppt: "Time taken to convert PowerPoint presentation.",
+  is_delete_ppt: "Are you sure you want to delete this PowerPoint slide?",
+  add_least_one: "Please add at least one PowerPoint slide.",
+  preview_report_btn: "Preview report.",
 };
 
 /* 中文 */
@@ -91,74 +160,74 @@ export const listZh = {
   re_edit_slide: "第",
   please_re_edit: "页内容不完整,请重新编辑!",
   // ///////
-  view_report_btn: "查看报告 View report",
-  editing_progress_msg: "编辑中 Editing in progress.",
-  no_duplicated_edit_msg: "他人正在编辑中,不可重复编辑 Another user is currently editing, editing cannot be duplicated.",
-  exceed_ppt_msg: "PPT插入图表数量不能超过100张,请修改后重试 The number of charts inserted in PPT cannot exceed 100, please modify and retry.",
-  exceed_sixty_ppt_msg: "PPT页数不能超过60页,请修改后重试 PPT pages cannot exceed 60, please modify and retry.",
-  move_success_msg: "移动成功 Move successful.",
-  add_table_msg: "请先添加目录! Please add a table of contents first!",
-  add_main_text_empty: "添加正文后,会在这里生成 After adding the main text, it will be generated here.",
-  updating_chart_loading: "正在更新图表... Updating chart information...",
-  error_ppt_data_msg: "获取ppt数据失败! Failed to retrieve PowerPoint data!",
-  unable_files_msg: "剪贴板读取不到文件! Unable to read files from clipboard!",
-  uploading_images_msg: "上传图片中... Uploading images...",
-  all_loaded_completely_text: "已全部加载完 All loaded completely.",
-  please_add_page_msg: "请先添加页面 Please add a page first.",
-  please_ppt_title_msg: "请输入第{count}张PPT的标题! Please enter the title for slide number {count}!",
-  please_ppt_content_msg: "请填写第{count}张PPT的内容! Please fill in the content for slide number {count}!",
-  most_add_ppt_msg: "最多可添加{count}页PPT,请修改后再试! A maximum of {count} PowerPoint slides can be added, please modify and try again!",
-  most_add_chart_msg: "最多可添加{count}图表,请修改后再试! Up to {count} charts can be added. Please make the necessary modifications and try again",
-  please_add_one_page: "请至少添加一页 Please add at least one page.",
-  deleting_process_loading: "删除中... Deleting in process...",
-  upload_error_msg: "上传失败,请刷新重试 Upload failed, please refresh and retry.",
-  no_categories_empty: "暂无分类 No categories available",
-  internal_chart_no_msg: "内部图表,不允许插入ppt Internal chart, ppt insertion not allowed",
-  delete_chart_img_table: "已无位置,请删除现有图表/图片/表格 There is no place left, please delete existing charts/images/tables",
-  least_one_ppt_msg: "请至少添加一张PPT Please add at least one PPT",
-  ppt_edit_btn: "ppt编辑 PPT editing",
-  just_mine_radio: "只看我的 Just Mine",
-  no_corresponding_ppt_msg: "无对应的ppt数据! No corresponding PPT data available",
-  this_one_ppt_msg: "已是第一张PPT! This is already the first PPT",
-  this_last_ppt_msg: "已是最后一张PPT! This is already the last PPT",
-  please_select_researcher_msg: "请选择研究员 Please select a researcher",
-  please_select_directory_msg: "请选择一个目录 Please select a directory.",
-  powerPoint_data_loading: "正在加载ppt数据... Loading PowerPoint data...",
-  my_company_title: "弘则弥道(上海)投资咨询有限公司 Hongze Midi Dao (Shanghai) Investment Consulting Co., Ltd.",
-  ficc_department_title: "FICC研究部 FICC Research Department.",
-  get_report_data_loading: "获取报告列表中... Get report list...",
-  switch_template_title: "切换模板 Switch template.",
-  custom_cover_page_title: "自定义封面页 Custom Cover Page",
-  re_enter_entry_msg: "起始页数需小于等于终止页数,请重新输入 The starting page number must be less than or equal to the ending page number, please re-enter",
-  batch_import_all_chart:'该操作将批量导入所选图分类下所有图表 This operation will batch import all charts under the selected graph category',
-  no_charts_category_msg: "该分类无图表 No charts in this category",
-  keyword_search_ipt: "关键词搜索 Keyword search",
+  view_report_btn: "查看报告",
+  editing_progress_msg: "编辑中",
+  no_duplicated_edit_msg: "他人正在编辑中,不可重复编辑",
+  exceed_ppt_msg: "PPT插入图表数量不能超过100张,请修改后重试",
+  exceed_sixty_ppt_msg: "PPT页数不能超过60页,请修改后重试",
+  move_success_msg: "移动成功",
+  add_table_msg: "请先添加目录!",
+  add_main_text_empty: "添加正文后,会在这里生成",
+  updating_chart_loading: "正在更新图表...",
+  error_ppt_data_msg: "获取ppt数据失败!",
+  unable_files_msg: "剪贴板读取不到文件!",
+  uploading_images_msg: "上传图片中...",
+  all_loaded_completely_text: "已全部加载完",
+  please_add_page_msg: "请先添加页面",
+  please_ppt_title_msg: "请输入第{count}张PPT的标题!",
+  please_ppt_content_msg: "请填写第{count}张PPT的内容!",
+  most_add_ppt_msg: "最多可添加{count}页PPT,请修改后再试!",
+  most_add_chart_msg: "最多可添加{count}图表,请修改后再试!",
+  please_add_one_page: "请至少添加一页",
+  deleting_process_loading: "删除中...",
+  upload_error_msg: "上传失败,请刷新重试",
+  no_categories_empty: "暂无分类",
+  internal_chart_no_msg: "内部图表,不允许插入ppt",
+  delete_chart_img_table: "已无位置,请删除现有图表/图片/表格",
+  least_one_ppt_msg: "请至少添加一张PPT",
+  ppt_edit_btn: "ppt编辑",
+  just_mine_radio: "只看我的",
+  no_corresponding_ppt_msg: "无对应的ppt数据!",
+  this_one_ppt_msg: "已是第一张PPT!",
+  this_last_ppt_msg: "已是最后一张PPT!",
+  please_select_researcher_msg: "请选择研究员",
+  please_select_directory_msg: "请选择一个目录",
+  powerPoint_data_loading: "正在加载ppt数据...",
+  my_company_title: "弘则弥道(上海)投资咨询有限公司",
+  ficc_department_title: "FICC研究部",
+  get_report_data_loading: "获取报告列表中...",
+  switch_template_title: "切换模板",
+  custom_cover_page_title: "自定义封面页",
+  re_enter_entry_msg: "起始页数需小于等于终止页数,请重新输入",
+  batch_import_all_chart: "该操作将批量导入所选图分类下所有图表",
+  no_charts_category_msg: "该分类无图表",
+  keyword_search_ipt: "关键词搜索",
 
   //?????
-  
-  please_re_edit: "复制ppt页成功 Copying PowerPoint page successful.",
-  please_re_edit: "指标名称 Indicator name.",
-  please_re_edit: "英文指标名称 English indicator name.",
-  please_re_edit: "请输入英文指标名称 Please enter an English indicator name.",
-  please_re_edit: "英文单位 Unit in English.",
-  please_re_edit: "英文期货名称 English futures name.",
-  please_re_edit: "请输入英文期货名称 Please enter an English futures name.",
-  please_re_edit: "盘面利润名称 Gross margin name (for futures).",
-  please_re_edit: "英文盘面利润名称 English gross margin name (for futures).",
-  please_re_edit: "请输入英文盘面利润名称 Please enter an English gross margin name (for futures).",
-  please_re_edit: "X轴名称 X-axis name",
-  please_re_edit: "英文X轴名称 English X-axis name",
-  please_re_edit: "请输入英文X轴名称 Please enter an English X-axis name",
-  please_re_edit: "加载缩略图中 Loading thumbnails",
 
-  please_re_edit: "按住拖动 Drag and hold",
-  please_re_edit: "标题/创建人 Title/Creator.",
-  please_re_edit: "下载pptx Download pptx file.",
-  please_re_edit: "该操作不可撤销,确定删除吗 This action cannot be undone, are you sure you want to delete?",
-  please_re_edit: "更新时间 Last updated time.",
-  please_re_edit: "创建人 Creator.",
-  please_re_edit: "转换ppt用时 Time taken to convert PowerPoint presentation.",
-  please_re_edit: "确定删除该页ppt吗 Are you sure you want to delete this PowerPoint slide?",
-  please_re_edit: "请至少添加一张 Please add at least one PowerPoint slide.",
-  please_re_edit: "预览报告 Preview report.",
+  copy_ppt_success: "复制ppt页成功",
+  indicator_name_tlt: "指标名称",
+  es_indicator_name_tlt: "英文指标名称",
+  please_es_indicator_name: "请输入英文指标名称",
+  es_unit: "英文单位",
+  es_futures_name: "英文期货名称",
+  please_es_futures_name: "请输入英文期货名称",
+  gross_margin_name: "盘面利润名称",
+  es_gross_margin_name: "英文盘面利润名称",
+  please_es_margin_name: "请输入英文盘面利润名称",
+  x_axis_name: "X轴名称",
+  es_x_axis_name: "英文X轴名称",
+  please_es_x_axis_name: "请输入英文X轴名称",
+  loading_thumbnails: "加载缩略图中",
+
+  drag_and_hold: "按住拖动",
+  please_re_edit: "标题/创建人",
+  download_pptx_file: "下载pptx",
+  is_delete_sure: "该操作不可撤销,确定删除吗",
+  last_updated_time: "更新时间",
+  creator_btn: "创建人",
+  presentation_ppt: "转换ppt用时",
+  is_delete_ppt: "确定删除该页ppt吗",
+  add_least_one: "请至少添加一张",
+  preview_report_btn: "预览报告",
 };

+ 4 - 2
src/lang/modules/Slides/pptPresent.js

@@ -87,7 +87,8 @@ export const presentEn = {
   previous_sheet_default: "Previous sheet",
   table_analysis_semantic: "Semantic analysis insert",
   table_chart: "Chart",
-
+  is_incomplete_please_edit:'Slide {num} content is incomplete, please re-edit!',
+  publishing_loading:'Publishing',
 };
 
 /* 中文 */
@@ -175,6 +176,8 @@ export const presentZh = {
   exit_full_screen_default: "退出全屏",
   next_sheet_default: "下一张",
   previous_sheet_default: "上一张",
+  is_incomplete_please_edit:'第{num}页内容不完整,请重新编辑!',
+  publishing_loading:'发布中...',
 };
 
 /**
@@ -184,7 +187,6 @@ export const presentZh = {
  * 已是第一张PPT
  * 进入全屏
  * 退出全屏
- * `第${i+1}页内容不完整,请重新编辑!`
  *   {{$t('Slides.add_my_directory')}}
  *   this.$t('Slides.rename_successful')
  */

+ 27 - 16
src/views/ppt_manage/newVersion/components/catalog/chooseCatalog.vue

@@ -72,24 +72,12 @@ export default {
       catalogArr:[],
       selectedCatalog:null,
       catalogShow:false,
-      dia_title:'新增目录',
-      dialogKeyArrs:[
-        {
-          label: '目录名称',
-          prop: 'name',
-          type: 'input',
-          maxlen: 10,
-          placeholder: '请输入目录名称',
-        }
-      ],
+      
+      
       formData:{
         name:'',
       },
-      addRules:{
-				name:[
-					{ required: true, message: '目录名称不能为空', trigger: 'blur' },
-				],
-			}
+      
     };
   },
   watch:{
@@ -149,7 +137,30 @@ export default {
       this.selectedCatalog = null
     }
   },
-  mounted(){}
+  mounted(){},
+  computed:{
+    dia_title(){
+      return this.$t('Slides.add_directory_dlg')
+    },
+    dialogKeyArrs(){
+      return [
+        {
+          label: this.$t('Slides.name_directory_dlg'),
+          prop: 'name',
+          type: 'input',
+          maxlen: 10,
+          placeholder: this.$t('Slides.input_directory_dlg'),
+        }
+      ]
+    },
+    addRules(){
+      return {
+				name:[
+					{ required: true, message: this.$t('EtaBasePage.input_menu_msg'), trigger: 'blur' },
+				]
+			}
+    }
+  },
 };
 </script>
 

+ 5 - 2
src/views/ppt_manage/newVersion/components/catalog/chooseShareUserDia.vue

@@ -3,7 +3,7 @@
 		:visible.sync="isShow"
 		:close-on-click-modal="false"
 		:modal-append-to-body="false"
-    :title="title"
+    :title="showTitle(title)"
 		@close="cancelHandle"
 		custom-class="shared-dialog"
 		center
@@ -88,7 +88,10 @@ export default {
     }
   },
   methods: {
-
+    showTitle(e){
+      if(e==='选择用户') return this.$t('Slides.select_user_btn')
+      return e
+    },
     /* 获取研究员列表 */
     async getResearcherList() {
       // const res = await roadshowInterence.getResearcherList();

+ 1 - 1
src/views/ppt_manage/newVersion/components/catalog/modifyCatalog.vue

@@ -41,7 +41,7 @@ export default {
   methods: {
     saveChange(){
       if(!this.catalogItem.GroupName||!this.catalogItem.GroupName.length){
-        this.$message.warning(this.$t('Slider.input_directory_dlg'))
+        this.$message.warning(this.$t('Slides.input_directory_dlg'))
         return
       }
       this.$emit('changeCatalog',this.catalogItem)

+ 8 - 4
src/views/ppt_manage/newVersion/pptCatalog.vue

@@ -440,11 +440,15 @@ export default {
   methods: {
     // 
     getContentMenuOptText(e){
-      if(e==='预览发布') return this.$t('Slides.operations_preview')
+      if(e==='查看报告') return this.$t('Slides.view_report_btn')
+      if(e==='编辑') return this.$t('Slides.edit_lable_name')
+      if(e==='转报告') return this.$t('Slides.convert_to_report')
+      if(e==='预览发布') return this.$t('Slides.convert_to_report')
       if(e==='演示') return this.$t('Slides.operations_presentation')
       if(e==='转英文PPT') return this.$t('Slides.operations_english')
       if(e==='复制') return this.$t('Slides.operations_copy')
       if(e==='下载') return this.$t('Slides.operations_download')
+      if(e==='删除') return this.$t('Table.delete_btn')
       return e
     },
     //编辑or新增目录
@@ -582,7 +586,7 @@ export default {
         })
       }
       //ppt3.0 除旧版的ppt以外,增加 转报告/查看报告按钮
-      const labelName = this.pptItem.isTrans?this.$t('Slides.view_report_btn') : this.$t('Slides.convert_to_report')
+      const labelName = this.pptItem.isTrans? '查看报告': '转报告'
       this.pptToolList.map(i=>{
         if(i.key==='transform'){
           i.label = labelName
@@ -612,7 +616,7 @@ export default {
       //若有人在编辑,则显示编辑中
       if(this.pptToolList.find(i=>i.key==='edit')){
         const {Editor={}} = pptDetail
-        let labelName = this.$t('Slides.edit_lable_name')
+        let labelName = '编辑'
         if(Editor.IsEditing&&Editor.AdminId!==Number(localStorage.getItem('AdminId'))){
             labelName = `${Editor.Editor}${this.$t('Slides.editing_progress_msg') }...`
         }
@@ -1281,7 +1285,7 @@ export default {
         GroupId:selectedCatalog
       })
       if(res.Ret!==200) return
-      this.$message.success(this.$t('Slides.successfully_converted_PPT'))
+      this.$message.success(this.$t('Slides.successfully_converted_ppt'))
     },
     async transformCatalogtoEn(selectedCatalog){
       let PptIds = []

+ 15 - 3
src/views/ppt_manage/newVersion/pptEnCatalog.vue

@@ -253,7 +253,7 @@
               <span v-for="item in pptToolList" :key="item.key" 
                 :class="{'delete':item.key==='delete'}"
                 @click="handleToolClick(item)">
-                {{item.label}}
+               {{getContentMenuOptText(item.label)}}
               </span>
             </div>
           </div>
@@ -424,6 +424,18 @@ export default {
     },
   },
   methods: {
+    getContentMenuOptText(e){
+      if(e==='查看报告') return this.$t('Slides.view_report_btn')
+      if(e==='编辑') return this.$t('Slides.edit_lable_name')
+      if(e==='转报告') return this.$t('Slides.convert_to_report')
+      if(e==='预览发布') return this.$t('Slides.convert_to_report')
+      if(e==='演示') return this.$t('Slides.operations_presentation')
+      if(e==='转英文PPT') return this.$t('Slides.operations_english')
+      if(e==='复制') return this.$t('Slides.operations_copy')
+      if(e==='下载') return this.$t('Slides.operations_download')
+      if(e==='删除') return this.$t('Table.delete_btn')
+      return e
+    },
     //编辑or新增目录
    async changeCatalog(item){
       let res = null
@@ -541,7 +553,7 @@ export default {
       }
       //去掉转英文PPT按钮
       this.pptToolList = this.pptToolList.filter(_=>_.key!=='transEn')
-      const labelName = this.pptItem.isTrans?this.$t('Slides.view_report_btn') : this.$t('Slides.convert_to_report')
+      const labelName = this.pptItem.isTrans?'查看报告': '转报告'
       this.pptToolList.map(i=>{
         if(i.key==='transform'){
           i.label = labelName
@@ -571,7 +583,7 @@ export default {
       //若有人在编辑,则显示编辑中
       if(this.pptToolList.find(i=>i.key==='edit')){
         const {Editor={}} = pptDetail
-        let labelName = this.$t('Slides.edit_lable_name')
+        let labelName = '编辑'
         if(Editor.IsEditing&&Editor.AdminId!==Number(localStorage.getItem('AdminId'))){
             labelName = `${Editor.Editor}${this.$t('Slides.editing_progress_msg') }...`
         }

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

@@ -6,7 +6,7 @@
           <el-radio v-model="transChartType" :label="2">本地转</el-radio>
         </div> -->
         <el-button  type="primary" plain style="width:182px;height:40px;" @click="$router.push({path:'/pptenlist'})">{{$t('Slides.return_to_list')}}</el-button>
-        <el-button  type="primary" style="width:182px;height:40px;margin-left: 0;" @click="downloadPPT" :disabled="isPublish">下载</el-button>
+        <el-button  type="primary" style="width:182px;height:40px;margin-left: 0;" @click="downloadPPT" :disabled="isPublish">{{$t('Slides.operations_download')}}</el-button>
         <el-dropdown split-button style="width:182px;height:40px;" type="primary" @click="transHandle" @command="handleCommand" :disabled="isPublish">
           {{layoutStr}}
           <el-dropdown-menu slot="dropdown">
@@ -459,7 +459,7 @@ export default {
       }
       this.publishLoading = this.$loading({
         fullscreen:true,
-        text:"发布中..."
+        text:this.$t('Slides.publishing_loading')
       })
       //console.log('pptx',pptx)
       // pptx2.write('blob').then((data)=>{

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

@@ -7,7 +7,7 @@
           <el-radio v-model="transChartType" :label="2">本地转</el-radio>
         </div> -->
         <el-button  type="primary" plain style="width:182px;height:40px;" @click="$router.push({path:'/pptlist'})">{{$t('Slides.return_to_list')}}</el-button>
-        <el-button  type="primary" style="width:182px;height:40px;margin-left: 0;" @click="downloadPPT" :disabled="isPublish">下载</el-button>
+        <el-button  type="primary" style="width:182px;height:40px;margin-left: 0;" @click="downloadPPT" :disabled="isPublish">{{$t('Slides.operations_download')}}</el-button>
         <el-dropdown split-button style="width:182px;height:40px;" type="primary" @click="transHandle" @command="handleCommand" :disabled="isPublish">
           {{layoutStr}}
           <el-dropdown-menu slot="dropdown">
@@ -488,7 +488,7 @@ export default {
       }
       this.publishLoading = this.$loading({
         fullscreen:true,
-        text:"发布中..."
+        text:this.$t('Slides.publishing_loading')
       })
 
       // 生成文件名
@@ -689,11 +689,11 @@ export default {
       //检验每一页
       for(let i=0;i<this.pageList.length;i++){
         if(!this.pageList[i].title){
-          return {result:false,hintText:`第${i+1}页内容不完整,请重新编辑!`}
+          return {result:false,hintText: this.$t('Slides.is_incomplete_please_edit',{num:i+1}) }
         }
         //无内容
         if(this.pageList[i].elements.length===0){
-          return {result:false,hintText:`第${i+1}页内容不完整,请重新编辑!`}
+          return {result:false,hintText:  this.$t('Slides.is_incomplete_please_edit',{num:i+1}) }
         }
         //有文本框,但是文本框无内容
       }

+ 1 - 1
src/views/ppt_manage/pptdtl.vue

@@ -189,7 +189,7 @@
 			transHandle() {
 				this.loading = this.$loading({
 					lock: true,
-					text: '发布中...',
+					text:  this.$t('Slides.publishing_loading'),
 					spinner: 'el-icon-loading',
 					background: 'rgba(255, 255, 255, 0.8)'
 				});