소스 검색

处理ppt

bding 1 년 전
부모
커밋
1b08244641

+ 4 - 0
src/lang/commonLang.js

@@ -266,6 +266,10 @@ export default {
     confirm_logout_msg: {
       en: 'Are you sure you want to log out?',
       zh: '确认退出吗?'
+    },
+    un_share_msg: {
+      en: 'Unshare successful',
+      zh: '取消成功'
     }
   },
   Common: {

+ 1 - 11
src/lang/modules/ReportManagement/CloudPage.js

@@ -72,14 +72,4 @@ export const CloudPageZh = {
   delete_success_msg: "删除成功",
   table_no_file: "暂无文件",
   everything:'全部'
-};
- 
-
-/**
- * 已选中X个文件/文件夹
- * 所在目录
- * 保留两者
- * 上传中,请稍后
- * 下载失败
- * 请至少选择一个文件/文件夹
- */
+};

+ 2 - 2
src/lang/modules/ReportManagement/SmartReport.js

@@ -88,7 +88,7 @@ export const SmartReportEn = {
     upload_format: "The upload file format is incorrect",
     report_recording: "Report not uploaded recording",
     published_success: "Successfully published and pushed",
-    submit_approval: "Are you sure to submit this report for approval?",
+    submit_approval: "Do you confirm to submit the report for the approval process?",
     revoke_approval: "Are you sure you want to revoke the approval?",
     revoke_success: "Revoke successful",
     submit_success: "Submitted successfully",
@@ -96,7 +96,7 @@ export const SmartReportEn = {
     push_success: "Push successful",
     release_prompt: "Release prompt",
     publish_it: "Are you sure to publish it?",
-    delete_it: "Are you sure to delete it?",
+    delete_it: "Confimm deletion?",
     select_dl_report: "Please select the report that needs to be downloaded",
     is_publish_immediately: "This report has been scheduled for publication. Would you like to change it to publish immediately?",
     report_publish_immediately: "Are you sure you want to publish now?",

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

@@ -277,7 +277,7 @@ export default{
       //渲染图表
       await this.initCharts(chartElements, page);
       page.isUpdating = false
-      this.$message.success('刷新成功')
+      this.$message.success(this.$t('MsgPrompt.refresh_success_msg'))
       this.pageList.splice(index,1,page)
       //开启自动保存
       this.autoSave()

+ 34 - 34
src/views/ppt_manage/newVersion/components/ContextMenu.vue

@@ -2,7 +2,7 @@
   <div class="menu-wrap" :id="'menu'+menuId">
       <ul>
           <li v-for="item in menu" :key="item.id" @mousedown.stop="handleClick(item)" @mouseup.stop>
-            <span :style="`color:${item.text===$t('Slides.paste_element_btn')&&!item.canClick?'#999':'#333'}`"><i class="el-icon-check" v-if="item.id===5&&modelName==='paint'"></i>{{item.text}}</span>
+            <span :style="`color:${item.text==='粘贴元素'&&!item.canClick?'#999':'#333'}`"><i class="el-icon-check" v-if="item.id===5&&modelName==='paint'"></i>{{getContentMenuOptText(item.text)}}</span>
             </li>
       </ul>
   </div>
@@ -15,7 +15,31 @@ export default {
             type:Array,
             default:()=>{
                 return [
-                   
+                    {
+                        id:1,
+                        text:'上一张',
+                        eventName:'prev'
+                    },
+                    {
+                        id:2,
+                        text:'下一张',
+                        eventName:'next'
+                    },
+                    /* {
+                      id:5,
+                      text:'画笔模式',
+                      eventName:'paint'
+                    }, */
+                    {
+                        id:3,
+                        text:'退出全屏',
+                        eventName:'exit'
+                    },
+                    {
+                        id:4,
+                        text:'取消',
+                        eventName:'cancel'
+                    }
                 ]
             }
         },
@@ -33,38 +57,14 @@ export default {
 
     };
   },
-  component:{
-    propsDefault(){
-      return [
-              {
-                   id:1,
-                   text:this.$t('Slides.previous_sheet_default'),
-                   eventName:'prev'
-               },
-               {
-                   id:2,
-                   text:this.$t('Slides.next_sheet_default'),
-                   eventName:'next'
-               },
-               /* {
-                 id:5,
-                 text:'画笔模式',
-                 eventName:'paint'
-               }, */
-               {
-                   id:3,
-                   text:this.$t('Slides.exit_full_screen_default'),
-                   eventName:'exit'
-               },
-               {
-                   id:4,
-                   text:this.$t('Slides.operations_cancel'),
-                   eventName:'cancel'
-               }
-      ]
-    }
-  },
   methods: {
+      getContentMenuOptText(e){
+        if(e==='上一张') return this.$t('Slides.previous_sheet_default')
+        if(e==='下一张') return this.$t('Slides.next_sheet_default')
+        if(e==='退出全屏') return this.$t('Slides.exit_full_screen_default')
+        if(e==='取消') return this.$t('Slides.operations_cancel')
+        return e
+      },
       cancel(){
           //console.log('cancel')
           this.$emit('cancel')
@@ -85,7 +85,7 @@ export default {
         this.$emit('paste')
       },
       handleClick(item){
-          if((!item.canClick&&item.text===this.$t('Slides.paste_element_btn'))) return
+          if((!item.canClick&&item.text==='粘贴元素')) return
           this[`${item.eventName}`]()
       }
   },

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

@@ -1246,7 +1246,7 @@ export default {
           }).then(res => {
             if(res.Ret !== 200) return
 
-            this.$message.success(this.$t('MsgPrompt.delete_msg'));
+            this.$message.success(this.$t('MsgPrompt.un_share_msg'));
             this.getCatalogsList()
           })
         })

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

@@ -1166,7 +1166,7 @@ export default {
           }).then(res => {
             if(res.Ret !== 200) return
 
-            this.$message.success(this.$t('MsgPrompt.delete_msg'));
+            this.$message.success(this.$t('MsgPrompt.un_share_msg'));
             this.getCatalogsList()
           })
         })

+ 1 - 2
src/views/report_manage/cloudDisk.vue

@@ -346,8 +346,7 @@ import 'streamsaver/examples/zip-stream'
                 // 有重复
                 this.$confirm(haveRepeatFiles.map(it => it.OriginName).join(',')+this.$t('ReportManage.CloudPage.upload_please_error_msg'), this.$t('Confirm.prompt'),{
                   type:'warning',
-                  confirmButtonText: '保留两者',
-                  cancelButtonText: '取消'
+                  confirmButtonText: this.$t('ReportManage.CloudPage.upload_confirm_btn'),
                 }).then(res=>{
                   this.uploadFiles(fileList,result)
                 }).catch(() => { 

+ 1 - 1
src/views/report_manage/emailList.vue

@@ -154,7 +154,7 @@ export default {
                         Email:this.popData.email
                     }).then(res=>{
                         if(res.Ret===200){
-                            this.$message.success('操作成功')
+                            this.$message.success(this.$t('MsgPrompt.operate_success_msg'))
                             this.popData.show=false
                             this.page=1
                             this.searchVal=''

+ 1 - 0
src/views/report_manage/reportEn/reportlist.vue

@@ -736,6 +736,7 @@ export default {
     /* 删除报告 */
     delReport({Id}) {
       this.$confirm(this.$t('ReportManage.smart_msg.delete_it'),this.$t('Confirm.prompt'),{
+        confirmButtonText:  this.$t('Dialog.confirm_btn'),
 				type:'warning'
 			}).then(() => {
 				reportEnInterface.reportDel({ReportIds: Id}).then(res =>{

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

@@ -917,7 +917,7 @@ export default {
       //取消发布
       reportpublishcancle({ ReportIds: item.Id }).then((res) => {
         if (res.Ret === 200) {
-          this.$message.success(res.Msg);
+          this.$message.success(this.$t('MsgPrompt.operate_success_msg'));
           this.getlist();
         }
       });
@@ -925,6 +925,7 @@ export default {
     deleteitem(item) {
       //删除
       this.$confirm(this.$t('ReportManage.smart_msg.delete_it'), this.$t('Confirm.prompt'), {
+        confirmButtonText:  this.$t('Dialog.confirm_btn'),
         type: "warning",
       })
         .then(() => {

+ 1 - 1
src/views/report_manage/tagLib.vue

@@ -240,7 +240,7 @@ export default {
         //this.$message.error(res.ErrMsg)
         return 
       }else{
-        this.$message.success('操作成功')
+        this.$message.success(this.$t('MsgPrompt.operate_success_msg'))
       }
       //then
       this.getTableList()

+ 1 - 0
src/views/smartReport/reportList.vue

@@ -537,6 +537,7 @@ export default {
         handleDelReport(item){
             //删除
             this.$confirm(this.$t('ReportManage.smart_msg.delete_it'),this.$t('Confirm.prompt'), {
+                confirmButtonText:  this.$t('Dialog.confirm_btn'),
                 type: "warning",
             }).then(() => {
                 apiSmartReport.delReport({ SmartReportId: item.SmartReportId }).then((res) => {