|
@@ -448,7 +448,7 @@ function handleOpenInsertCompPop(e,{element,index}) {
|
|
|
currentState.activePindex=''
|
|
|
currentState.activeCindex=''
|
|
|
|
|
|
- insertState.activeId = element.id;
|
|
|
+ insertState.activeId = element.child?.length ? element.child.map(_ =>_.id).join('/') : element.id;
|
|
|
insertState.activePindex = index;
|
|
|
|
|
|
showInsertCompType.value = e.compId;
|
|
@@ -553,8 +553,6 @@ function handleChartInsert({list,type,chartType}){
|
|
|
//插入文本
|
|
|
const temTextVal = ref('')
|
|
|
function handleInsertText(content) {
|
|
|
- console.log(content)
|
|
|
- console.log(currentState)
|
|
|
if(currentState.activeId) { //编辑
|
|
|
currentState.activeContent=content
|
|
|
if(currentState.activeCindex>=0&¤tState.activeCindex!==''){
|
|
@@ -707,13 +705,12 @@ async function handlePreviewReport() {
|
|
|
const saveRes=await autoSaveReportContent("auto")
|
|
|
if(!saveRes) return
|
|
|
}
|
|
|
- const routerEl=router.resolve({
|
|
|
+ router.push({
|
|
|
path:'/report/preview',
|
|
|
query:{
|
|
|
id: reportInfo.value.Id
|
|
|
}
|
|
|
})
|
|
|
- window.open(routerEl.href,'_blank')
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -780,13 +777,12 @@ async function handlePreviewChapter() {
|
|
|
const saveRes = await autoSaveReportChapter('auto');
|
|
|
if(!saveRes) return
|
|
|
|
|
|
- const routerEl=router.resolve({
|
|
|
+ router.push({
|
|
|
path:'/report/chapter/preview',
|
|
|
query:{
|
|
|
id:reportInfo.value.ReportChapterId
|
|
|
}
|
|
|
})
|
|
|
- window.open(routerEl.href,'_blank')
|
|
|
}
|
|
|
|
|
|
// 自动保存章节报告
|