|
@@ -10,14 +10,14 @@
|
|
|
<div class="list-wrap ppt-page-wrap" id="left" v-show="!isSlideLeft">
|
|
|
<div class="add-btn">
|
|
|
<el-button type="primary" v-permission="permissionBtn.pptPermission.ppt_save"
|
|
|
- @click="handleChooseCatalog('add')">添加ppt</el-button>
|
|
|
+ @click="handleChooseCatalog('add')">{{$t('Slides.add_ppt_btn')}}</el-button>
|
|
|
<el-button v-permission="permissionBtn.pptPermission.ppt_merge"
|
|
|
- type="primary" plain @click="handleOpenMergeDialog">合并ppt</el-button>
|
|
|
+ type="primary" plain @click="handleOpenMergeDialog">{{$t('Slides.ppt_merge_btn')}}</el-button>
|
|
|
</div>
|
|
|
<div class="select-wrap">
|
|
|
<el-select
|
|
|
filterable remote
|
|
|
- placeholder="请输入PPT标题"
|
|
|
+ :placeholder="$t('Slides.input_ppt_title')"
|
|
|
v-model="searchTitle"
|
|
|
:remote-method="searchHandle"
|
|
|
clearable
|
|
@@ -111,7 +111,7 @@
|
|
|
>
|
|
|
<img src="~@/assets/img/chart_m/Group.png"
|
|
|
style="width: 14px; height: 14px; margin-right: 8px"
|
|
|
- />仅自己可见
|
|
|
+ />{{$t('Slides.visible_to_self_only')}}
|
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item :command="{key:'share',item:data}"
|
|
|
class="treenode-dropdown-item"
|
|
@@ -119,7 +119,7 @@
|
|
|
>
|
|
|
<img src="~@/assets/img/chart_m/User.png"
|
|
|
style="width: 14px; height: 14px; margin-right: 8px"
|
|
|
- />所有人可见
|
|
|
+ />{{$t('Slides.visible_to_everyone')}}
|
|
|
</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
@@ -129,15 +129,15 @@
|
|
|
</span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item v-permission="permissionBtn.pptPermission.ppt_copy"
|
|
|
- :command="{key:'copy',item:data}" v-if="(data.PptVersion&&data.PptVersion===2)||(data.GroupId&&!data.OnlyOld)">复制</el-dropdown-item>
|
|
|
+ :command="{key:'copy',item:data}" v-if="(data.PptVersion&&data.PptVersion===2)||(data.GroupId&&!data.OnlyOld)">{{$t('Slides.operations_copy')}}</el-dropdown-item>
|
|
|
<el-dropdown-item v-permission="permissionBtn.pptPermission.ppt_save"
|
|
|
- :command="{key:'edit',item:data}" v-if="data.GroupId">重命名</el-dropdown-item>
|
|
|
+ :command="{key:'edit',item:data}" v-if="data.GroupId">{{$t('Slides.operations_rename')}}</el-dropdown-item>
|
|
|
<el-dropdown-item v-permission="permissionBtn.pptPermission.ppt_del"
|
|
|
- :command="{key:'del',item:data}">删除</el-dropdown-item>
|
|
|
- <el-dropdown-item :command="{key:'openShare',item:data}" v-if="data.PptVersion && !data.IsGrant && permissionBtn.isShowBtn('pptPermission','ppt_setShare')">设置共享</el-dropdown-item>
|
|
|
- <el-dropdown-item :command="{key:'cancelShare',item:data}" v-if="data.PptVersion && data.IsGrant && permissionBtn.isShowBtn('pptPermission','ppt_setShare')">取消共享</el-dropdown-item>
|
|
|
+ :command="{key:'del',item:data}">{{$t('Slides.operations_delete')}}</el-dropdown-item>
|
|
|
+ <el-dropdown-item :command="{key:'openShare',item:data}" v-if="data.PptVersion && !data.IsGrant && permissionBtn.isShowBtn('pptPermission','ppt_setShare')">{{$t('Slides.operations_share')}}</el-dropdown-item>
|
|
|
+ <el-dropdown-item :command="{key:'cancelShare',item:data}" v-if="data.PptVersion && data.IsGrant && permissionBtn.isShowBtn('pptPermission','ppt_setShare')">{{$t('Slides.operations_unshare')}}</el-dropdown-item>
|
|
|
<el-dropdown-item v-permission="permissionBtn.pptPermission.ppt_toEn"
|
|
|
- :command="{key:'transform',item:data}">转英文PPT</el-dropdown-item>
|
|
|
+ :command="{key:'transform',item:data}">{{$t('Slides.operations_english')}}</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</span>
|
|
@@ -168,8 +168,8 @@
|
|
|
<i class="el-icon-more" style="font-size: 16px;transform: rotate(90deg);cursor: pointer"/>
|
|
|
</span>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item :command="{key:'cancelShare',item:data}">取消共享</el-dropdown-item>
|
|
|
- <el-dropdown-item :command="{key:'set',item:data}">选择用户</el-dropdown-item>
|
|
|
+ <el-dropdown-item :command="{key:'cancelShare',item:data}">{{$t('Slides.unshare_btn')}}</el-dropdown-item>
|
|
|
+ <el-dropdown-item :command="{key:'set',item:data}">{{$t('Slides.select_user_btn')}}</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</span>
|
|
@@ -183,7 +183,7 @@
|
|
|
alt=""
|
|
|
style="width: 16px; height: 16px; margin-right: 10px"
|
|
|
/>
|
|
|
- <span>添加我的目录</span>
|
|
|
+ <span>{{$t('Slides.add_my_directory')}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<span class="slide-icon slide-left" @click="slideHandle">
|
|
@@ -225,11 +225,11 @@
|
|
|
:style="item.BackgroundImg?{background: `no-repeat top/cover url('${item.BackgroundImg}')`}:{}">
|
|
|
<span>{{item.Title}}</span>
|
|
|
</div>
|
|
|
- <span style="font-size:14px;">创建时间:{{$moment(item.PptCreateTime).format('YYYY-MM-DD')}}</span>
|
|
|
+ <span style="font-size:14px;">{{$t('Slides.creation_time')}}:{{$moment(item.PptCreateTime).format('YYYY-MM-DD')}}</span>
|
|
|
</div>
|
|
|
</draggable>
|
|
|
<div class="empty" v-if="catalogPPTList.length===0">
|
|
|
- <tableNoData text="暂无数据" size="mini"/>
|
|
|
+ <tableNoData :text="$t('Table.prompt_slogan')" size="mini"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -249,14 +249,14 @@
|
|
|
</div>
|
|
|
<div class="tool-side ppt-page-wrap">
|
|
|
<div class="ppt-info">
|
|
|
- <div>作者:{{pptItem.AdminRealName}}</div>
|
|
|
+ <div> {{$t('Slides.author_info')}}:{{pptItem.AdminRealName}}</div>
|
|
|
<div>
|
|
|
- {{pptItem.PptxUrl?'发布':'保存'}}
|
|
|
- 时间:{{$moment(pptItem.PptxUrl?pptItem.PublishTime || undefined:pptItem.PptModifyTime || undefined).format('YYYY-MM-DD')}}
|
|
|
+ {{pptItem.PptxUrl? $t('Slides.publish_info'):$t('Slides.save_info')}}
|
|
|
+ {{$t('Slides.time_info')}}:{{$moment(pptItem.PptxUrl?pptItem.PublishTime || undefined:pptItem.PptModifyTime || undefined).format('YYYY-MM-DD')}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="tool-list-operation">
|
|
|
- <span>操作</span>
|
|
|
+ <span>{{$t('Slides.operation_info')}}</span>
|
|
|
<div class="tool-list">
|
|
|
<span v-for="item in pptToolList" :key="item.key"
|
|
|
:class="{'delete':item.key==='delete'}"
|
|
@@ -377,9 +377,9 @@ export default {
|
|
|
|
|
|
default_tab: '1',
|
|
|
panelTabs: [
|
|
|
- { label: '我的PPT', key: '1' },
|
|
|
- { label: '共享PPT', key: '2' },
|
|
|
- { label: '公共PPT', key: '3' },
|
|
|
+ { label: this.$t('Slides.my_ppt_tabs'), key: '1' },
|
|
|
+ { label: this.$t('Slides.share_ppt_tabs'), key: '2' },
|
|
|
+ { label: this.$t('Slides.public_ppt_tabs'), key: '3' },
|
|
|
],
|
|
|
|
|
|
sharedList: [],//共享目录
|
|
@@ -447,7 +447,7 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
if(res.Ret===200){
|
|
|
- this.$message.success(item.GroupId?'重命名成功':'新增成功')
|
|
|
+ this.$message.success(item.GroupId? this.$t('Slides.rename_successful') : this.$t('MsgPrompt.add_msg') )
|
|
|
this.getCatalogsList()
|
|
|
this.modifyCatalogShow = false
|
|
|
}
|
|
@@ -473,7 +473,7 @@ export default {
|
|
|
PptId:this.pptItem.PptId
|
|
|
}).then(async (res)=>{
|
|
|
if(res.Ret===200){
|
|
|
- this.$message.success('复制成功')
|
|
|
+ this.$message.success(this.$t('Slides.copy_successfully'))
|
|
|
//更新目录列表
|
|
|
await this.getCatalogsList()
|
|
|
//切换到"我的PPT",展开选择的目录,选中复制的PPT
|
|
@@ -566,7 +566,7 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
//ppt3.0 除旧版的ppt以外,增加 转报告/查看报告按钮
|
|
|
- const labelName = this.pptItem.isTrans?'查看报告':'转报告'
|
|
|
+ const labelName = this.pptItem.isTrans?'查看报告': this.$t('Slides.convert_to_report')
|
|
|
this.pptToolList.map(i=>{
|
|
|
if(i.key==='transform'){
|
|
|
i.label = labelName
|
|
@@ -596,7 +596,7 @@ export default {
|
|
|
//若有人在编辑,则显示编辑中
|
|
|
if(this.pptToolList.find(i=>i.key==='edit')){
|
|
|
const {Editor={}} = pptDetail
|
|
|
- let labelName = '编辑'
|
|
|
+ let labelName = this.$t('Slides.edit_lable_name')
|
|
|
if(Editor.IsEditing&&Editor.AdminId!==Number(localStorage.getItem('AdminId'))){
|
|
|
labelName = `${Editor.Editor}编辑中...`
|
|
|
}
|
|
@@ -661,7 +661,7 @@ export default {
|
|
|
GroupId:data.GroupId
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
- this.$message.success('复制成功')
|
|
|
+ this.$message.success(this.$t('Slides.copy_successfully'))
|
|
|
this.getCatalogsList()
|
|
|
}
|
|
|
})
|
|
@@ -677,11 +677,11 @@ export default {
|
|
|
//删除PPT
|
|
|
deletePPT(data){
|
|
|
this.$confirm(
|
|
|
- '删除操作不可恢复,若该PPT被共享,则同步删除共享PPT,确认删除吗?',
|
|
|
- '提示',
|
|
|
+ this.$t('Slides.delete_confirm_info'),
|
|
|
+ this.$t('Confirm.prompt'),
|
|
|
{
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
+ confirmButtonText: this.$t('Dialog.confirm_btn'),
|
|
|
+ cancelButtonText: this.$t('Dialog.cancel_btn'),
|
|
|
type: 'warning',
|
|
|
}
|
|
|
).then(()=>{
|
|
@@ -689,7 +689,7 @@ export default {
|
|
|
PptId:data.PptId
|
|
|
}).then((res)=>{
|
|
|
if(res.Ret===200){
|
|
|
- this.$message.success('删除成功');
|
|
|
+ this.$message.success(this.$t('MsgPrompt.delete_msg'));
|
|
|
this.getCatalogsList()
|
|
|
const catalog = this[`${this.treeName}List`].find(i=>i.GroupId===data.catalogId)
|
|
|
this.$refs[`${this.treeName}Tree`].setCurrentKey(data.catalogId)
|
|
@@ -710,15 +710,15 @@ export default {
|
|
|
//删除目录
|
|
|
deleteCatalog(data){
|
|
|
if(data.PptList&&data.PptList.length!==0){
|
|
|
- this.$message.error('该目录下有关联PPT,不允许删除')
|
|
|
+ this.$message.error(this.$t('Slides.delete_directory_ppt_info'))
|
|
|
return
|
|
|
}
|
|
|
this.$confirm(
|
|
|
- '删除操作不可恢复,确认删除吗?',
|
|
|
- '提示',
|
|
|
+ this.$t('Slides.delete_directory_info'),
|
|
|
+ this.$t('Confirm.prompt'),
|
|
|
{
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
+ confirmButtonText: this.$t('Dialog.confirm_btn'),
|
|
|
+ cancelButtonText: this.$t('Dialog.cancel_btn'),
|
|
|
type: 'warning',
|
|
|
}
|
|
|
).then(()=>{
|
|
@@ -726,7 +726,7 @@ export default {
|
|
|
GroupId:data.GroupId
|
|
|
}).then((res)=>{
|
|
|
if(res.Ret===200){
|
|
|
- this.$message.success('删除成功');
|
|
|
+ this.$message.success(this.$t('MsgPrompt.delete_msg'));
|
|
|
if(data.GroupId===this.selectNode.GroupId){
|
|
|
this.selectNode=null
|
|
|
}
|
|
@@ -825,7 +825,7 @@ export default {
|
|
|
x.send()
|
|
|
}
|
|
|
}else{
|
|
|
- this.$message.warning('请先预览发布')
|
|
|
+ this.$message.warning(this.$t('Slides.please_preview_info'))
|
|
|
}
|
|
|
},
|
|
|
//共享/取消共享
|
|
@@ -852,7 +852,7 @@ export default {
|
|
|
PptId:item.PptId
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
- this.$message.success('设置成功')
|
|
|
+ this.$message.success(this.$t('Slides.settings_successfully'))
|
|
|
this.getCatalogsList()
|
|
|
}
|
|
|
})
|
|
@@ -1121,7 +1121,7 @@ export default {
|
|
|
//打开报告设置弹窗
|
|
|
this.transReportShow = true
|
|
|
}else{
|
|
|
- this.$message.warning('请先预览发布!')
|
|
|
+ this.$message.warning(this.$t('Slides.please_preview_info'))
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -1133,7 +1133,7 @@ export default {
|
|
|
Title:data.title
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
- this.$message.success('转换成功')
|
|
|
+ this.$message.success(this.$t('Slides.conversion_successfully'))
|
|
|
this.transReportShow = false
|
|
|
this.getCatalogsList()
|
|
|
//更新item
|
|
@@ -1213,12 +1213,12 @@ export default {
|
|
|
|
|
|
}else {
|
|
|
this.$confirm(
|
|
|
- '确定要取消共享吗',
|
|
|
- '提示',
|
|
|
+ this.$t('Slides.cancel_sharing_info'),
|
|
|
+ this.$t('Confirm.prompt'),
|
|
|
{
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning',
|
|
|
+ confirmButtonText: this.$t('Dialog.confirm_btn'),
|
|
|
+ cancelButtonText: this.$t('Dialog.cancel_btn'),
|
|
|
+ type: 'warning',
|
|
|
}
|
|
|
).then(()=>{
|
|
|
pptInterface.cancelShareAuth({
|
|
@@ -1226,7 +1226,7 @@ export default {
|
|
|
}).then(res => {
|
|
|
if(res.Ret !== 200) return
|
|
|
|
|
|
- this.$message.success('取消成功');
|
|
|
+ this.$message.success(this.$t('MsgPrompt.delete_msg'));
|
|
|
this.getCatalogsList()
|
|
|
})
|
|
|
})
|
|
@@ -1265,7 +1265,7 @@ export default {
|
|
|
GroupId:selectedCatalog
|
|
|
})
|
|
|
if(res.Ret!==200) return
|
|
|
- this.$message.success('转英文PPT成功')
|
|
|
+ this.$message.success(this.$t('Slides.successfully_converted_PPT'))
|
|
|
},
|
|
|
async transformCatalogtoEn(selectedCatalog){
|
|
|
let PptIds = []
|
|
@@ -1277,7 +1277,7 @@ export default {
|
|
|
GroupId:selectedCatalog
|
|
|
})
|
|
|
if(res.Ret!==200) return
|
|
|
- this.$message.success('批量转英文PPT成功')
|
|
|
+ this.$message.success(this.$t('Slides.batch_converted_ppt'))
|
|
|
},
|
|
|
//如果下拉框一个选项都没有,就不显示下拉框按钮
|
|
|
checkDropDownShow(type){
|