|
@@ -111,7 +111,7 @@
|
|
|
<el-button type="text" @click="handleChangeEditModal"><i class="el-icon-sort" style="transform: rotate(90deg);margin-right:5px;"></i>{{isEditLayer?'ppt编辑':'图层编辑'}}</el-button>
|
|
|
</div>
|
|
|
<div class="richtext-tool"></div>
|
|
|
- <div class="addppt-right-box" v-if="!isEditLayer">
|
|
|
+ <div class="addppt-right-box" v-show="!isEditLayer">
|
|
|
|
|
|
<el-tabs v-model="tabsactive">
|
|
|
<el-tab-pane :label="tab" :name="tab" v-for="tab in panelTabs" :key="tab"></el-tab-pane>
|
|
@@ -185,7 +185,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 图层编辑 -->
|
|
|
- <div class="layer-edit-box" v-else>
|
|
|
+ <div class="layer-edit-box" v-show="isEditLayer">
|
|
|
<el-collapse v-model="activeNames" class="tool-list">
|
|
|
<el-collapse-item title="图层元素" name="el">
|
|
|
<div class="el-wrap">
|
|
@@ -224,12 +224,21 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 选择封面弹窗 -->
|
|
|
- <choose-cover v-if="isShowChooseCover"
|
|
|
+ <!-- <choose-cover v-if="isShowChooseCover"
|
|
|
:firstPage="firstPage"
|
|
|
:pptCoverList="pptCoverList"
|
|
|
:PptId="pptId"
|
|
|
@close="closeChooseCover"
|
|
|
@save="saveCover"
|
|
|
+ /> -->
|
|
|
+ <ChooseCoverNew
|
|
|
+ :isShowChooseCover="isShowChooseCover"
|
|
|
+ :firstPage="firstPage"
|
|
|
+ :pptCoverList="pptCoverList"
|
|
|
+ :PptId="pptId"
|
|
|
+ :CoverContent="CoverContent"
|
|
|
+ @saveCover="saveCover2"
|
|
|
+ @close="isShowChooseCover=false"
|
|
|
/>
|
|
|
<!-- 批量删除弹窗 -->
|
|
|
<delete-page-dialog
|
|
@@ -305,6 +314,7 @@ import InsertCharts from './components/editor/InsertCharts.vue';
|
|
|
import setEnNameDia from '@/views/dataEntry_manage/components/setEnNameDia.vue';
|
|
|
import ContextMenu from './components/ContextMenu.vue';
|
|
|
import InsertSemantics from './components/editor/InsertSemantics.vue';
|
|
|
+import ChooseCoverNew from './components/editor/ChooseCoverNew.vue';
|
|
|
export default {
|
|
|
mixins:[pptmixin,//ppt页面共同逻辑
|
|
|
mixins,//图表加载逻辑
|
|
@@ -324,7 +334,8 @@ export default {
|
|
|
addMyClassifyDia,
|
|
|
InsertCharts,
|
|
|
ContextMenu,
|
|
|
- InsertSemantics
|
|
|
+ InsertSemantics,
|
|
|
+ ChooseCoverNew
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -973,7 +984,8 @@ export default {
|
|
|
pptEnInterface.addppt({
|
|
|
FirstPage:FirstPage,
|
|
|
Content:Content,
|
|
|
- GroupId:this.catalogId
|
|
|
+ GroupId:this.catalogId,
|
|
|
+ CoverContent:this.CoverContent
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
this.$message.success('新增成功')
|
|
@@ -990,7 +1002,8 @@ export default {
|
|
|
pptEnInterface.editppt({
|
|
|
PptId:parseInt(ppt_id),
|
|
|
FirstPage:FirstPage,
|
|
|
- Content:Content
|
|
|
+ Content:Content,
|
|
|
+ CoverContent:this.CoverContent
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
if(type==='save'){
|
|
@@ -1021,7 +1034,8 @@ export default {
|
|
|
pptEnInterface.saveLog({
|
|
|
PptId:parseInt(ppt_id),
|
|
|
FirstPage:FirstPage,
|
|
|
- Content:Content
|
|
|
+ Content:Content,
|
|
|
+ CoverContent:this.CoverContent
|
|
|
}).then((res)=>{})
|
|
|
},10000)
|
|
|
},
|
|
@@ -1029,9 +1043,9 @@ export default {
|
|
|
save_checkPPT(){
|
|
|
if(!this.firstPage.Title){
|
|
|
return {result:false,hintText:'请输入封面标题!'}
|
|
|
- }else if(!this.firstPage.ReportType){
|
|
|
+ }/* else if(!this.firstPage.ReportType){
|
|
|
return {result:false,hintText:'请输入ppt类型!'}
|
|
|
- }
|
|
|
+ } */
|
|
|
if(this.pageList.length===0){
|
|
|
return {result:false,hintText:'请至少添加一张PPT!'}
|
|
|
}
|
|
@@ -1042,9 +1056,9 @@ export default {
|
|
|
//检验首页
|
|
|
if(!this.firstPage.Title){
|
|
|
return {result:false,hintText:'请输入封面标题!'}
|
|
|
- }else if(!this.firstPage.ReportType){
|
|
|
+ }/* else if(!this.firstPage.ReportType){
|
|
|
return {result:false,hintText:'请输入ppt类型!'}
|
|
|
- }
|
|
|
+ } */
|
|
|
if(this.pageList.length===0){
|
|
|
return {result:false,hintText:'请至少添加一张PPT!'}
|
|
|
}
|