|
@@ -8,15 +8,15 @@
|
|
:modal-append-to-body="false"
|
|
:modal-append-to-body="false"
|
|
@close="cancelHandle" v-dialogDrag center width="40%" top="8vh">
|
|
@close="cancelHandle" v-dialogDrag center width="40%" top="8vh">
|
|
<div slot="title" style="display: flex; alignitems: center">
|
|
<div slot="title" style="display: flex; alignitems: center">
|
|
- <span style="fontsize: 16px">合并PPT</span>
|
|
|
|
|
|
+ <span style="fontsize: 16px">{{$t('Slides.ppt_merge_btn')}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="dialog-container">
|
|
<div class="dialog-container">
|
|
<div class="ppt-form">
|
|
<div class="ppt-form">
|
|
<div class="input-item" style="position:relative;">
|
|
<div class="input-item" style="position:relative;">
|
|
- <h3>请选择PPT</h3>
|
|
|
|
|
|
+ <h3>{{$t('Slides.please_select_ppt_title')}}</h3>
|
|
<div class="select-ppt-wrap select-wrap">
|
|
<div class="select-ppt-wrap select-wrap">
|
|
<el-tabs value="public">
|
|
<el-tabs value="public">
|
|
- <el-tab-pane label="公共PPT" name="public">
|
|
|
|
|
|
+ <el-tab-pane :label="$t('Slides.public_ppt_tabs')" name="public">
|
|
<div class="tree-container">
|
|
<div class="tree-container">
|
|
<div class="tree-list" :key="treeKey">
|
|
<div class="tree-list" :key="treeKey">
|
|
<div class="list-item" v-for="(item,index) in publicList" :key="item.nodeKeyId" @click.stop="expandList(index,'public')">
|
|
<div class="list-item" v-for="(item,index) in publicList" :key="item.nodeKeyId" @click.stop="expandList(index,'public')">
|
|
@@ -34,7 +34,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
- <el-tab-pane label="我的PPT" name="private">
|
|
|
|
|
|
+ <el-tab-pane :label="$t('Slides.my_ppt_tabs')" name="private">
|
|
<div class="tree-container">
|
|
<div class="tree-container">
|
|
<div class="tree-list" :key="treeKey">
|
|
<div class="tree-list" :key="treeKey">
|
|
<div class="list-item" v-for="(item,index) in privateList" :key="item.nodeKeyId" @click.stop="expandList(index,'private')">
|
|
<div class="list-item" v-for="(item,index) in privateList" :key="item.nodeKeyId" @click.stop="expandList(index,'private')">
|
|
@@ -55,17 +55,17 @@
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</div>
|
|
</div>
|
|
<div class="selected-ppt-wrap ">
|
|
<div class="selected-ppt-wrap ">
|
|
- <span>已选择:</span>
|
|
|
|
|
|
+ <span>{{$t('Slides.selected_pages')}}:</span>
|
|
<div class="selected-ppt">
|
|
<div class="selected-ppt">
|
|
<div class="select-node" v-for="item in choosedItemArr" :key="item.PptId">
|
|
<div class="select-node" v-for="item in choosedItemArr" :key="item.PptId">
|
|
- <span>{{ item.Title }}({{item.PptPage}}页)</span>
|
|
|
|
|
|
+ <span>{{ item.Title }} {{translatePageNumber(item.PptPage)}}</span>
|
|
<i class="el-icon-error" @click.stop="changeCheck(false,item,'unknow')"></i>
|
|
<i class="el-icon-error" @click.stop="changeCheck(false,item,'unknow')"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="input-item">
|
|
<div class="input-item">
|
|
- <h3>请选择合并到目录</h3>
|
|
|
|
|
|
+ <h3>{{$t('Slides.please_selecdirectory_into')}}</h3>
|
|
<div class="select-catalog-wrap select-wrap">
|
|
<div class="select-catalog-wrap select-wrap">
|
|
<el-radio-group v-model="selectedCatalogId">
|
|
<el-radio-group v-model="selectedCatalogId">
|
|
<el-radio v-for="item in MyPrivateList" :key="item.GroupId"
|
|
<el-radio v-for="item in MyPrivateList" :key="item.GroupId"
|
|
@@ -74,14 +74,14 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="input-item">
|
|
<div class="input-item">
|
|
- <h3>PPT标题</h3>
|
|
|
|
- <el-input placeholder="请输入PPT标题" v-model="pptInfo.Title" required ></el-input>
|
|
|
|
|
|
+ <h3>{{$t('Slides.ppt_title_input')}}</h3>
|
|
|
|
+ <el-input :placeholder="$t('Slides.input_ppt_title')" v-model="pptInfo.Title" required ></el-input>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div slot="footer" class="foot-container">
|
|
<div slot="footer" class="foot-container">
|
|
- <el-button type="primary" @click="saveChange">确 定</el-button>
|
|
|
|
- <el-button @click="cancelHandle">取 消</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="saveChange">{{$t('Slides.confirm_btn')}}</el-button>
|
|
|
|
+ <el-button @click="cancelHandle">{{$t('Slides.cancel_btn')}}</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</div>
|
|
</div>
|
|
@@ -143,6 +143,10 @@ export default {
|
|
cancelHandle(){
|
|
cancelHandle(){
|
|
this.$emit('cancel')
|
|
this.$emit('cancel')
|
|
},
|
|
},
|
|
|
|
+ translatePageNumber(num){
|
|
|
|
+ let srt = this.$i18n.locale == 'zh' ?`({${num}}页)`:`(Slide{${num}})`
|
|
|
|
+ return str
|
|
|
|
+ },
|
|
async saveChange(){
|
|
async saveChange(){
|
|
const {result,msg} = this.checkForm()
|
|
const {result,msg} = this.checkForm()
|
|
if(!result){
|
|
if(!result){
|
|
@@ -152,7 +156,7 @@ export default {
|
|
this.saveLoading = this.$loading({
|
|
this.saveLoading = this.$loading({
|
|
fullscreen:true,
|
|
fullscreen:true,
|
|
lock: true,
|
|
lock: true,
|
|
- text: '合并中...',
|
|
|
|
|
|
+ text: this.$t('Slides.loading_merging'),
|
|
spinner: 'el-icon-loading',
|
|
spinner: 'el-icon-loading',
|
|
customClass:'loading',
|
|
customClass:'loading',
|
|
background: 'rgba(255, 255, 255, 0.8)'
|
|
background: 'rgba(255, 255, 255, 0.8)'
|
|
@@ -179,10 +183,10 @@ export default {
|
|
checkForm(){
|
|
checkForm(){
|
|
//选中的PPT数量是否为两个(在选择时已剔除会有两个一样ID的情况)
|
|
//选中的PPT数量是否为两个(在选择时已剔除会有两个一样ID的情况)
|
|
if(this.choosedIdArr.length!==2){
|
|
if(this.choosedIdArr.length!==2){
|
|
- return {result:false,msg:'请选择两个PPT'}
|
|
|
|
|
|
+ return {result:false,msg: this.$t('Slides.please_select_two_msg')}
|
|
}
|
|
}
|
|
if(!this.pptInfo.Title.length){
|
|
if(!this.pptInfo.Title.length){
|
|
- return {result:false,msg:'请填写PPT标题'}
|
|
|
|
|
|
+ return {result:false,msg:this.$t('Slides.please_fill_title_msg')}
|
|
}
|
|
}
|
|
/* if(!this.pptInfo.ReportType){
|
|
/* if(!this.pptInfo.ReportType){
|
|
return {result:false,msg:'请填写PPT类型'}
|
|
return {result:false,msg:'请填写PPT类型'}
|
|
@@ -240,7 +244,7 @@ export default {
|
|
GroupId:this.selectedCatalogId
|
|
GroupId:this.selectedCatalogId
|
|
})
|
|
})
|
|
if(res.Ret===200){
|
|
if(res.Ret===200){
|
|
- this.$message.success('合并成功')
|
|
|
|
|
|
+ this.$message.success(this.$t('Slides.merging_successful_msg'))
|
|
this.PptId = res.Data.PptId
|
|
this.PptId = res.Data.PptId
|
|
}else{
|
|
}else{
|
|
//添加失败时关闭loading
|
|
//添加失败时关闭loading
|