|
@@ -11,10 +11,12 @@ import { useRoute, useRouter } from 'vue-router'
|
|
|
import {useInitFroalaEditor} from '@/hooks/useFroalaEditor'
|
|
|
import {useCachedViewsStore} from '@/store/modules/cachedViews'
|
|
|
import {enReportManageBtn} from '@/hooks/useAuthBtn'
|
|
|
+import {usePublicSettingStore} from '@/store/modules/publicSetting'
|
|
|
|
|
|
const cachedViewsStore=useCachedViewsStore()
|
|
|
const router=useRouter()
|
|
|
const route=useRoute()
|
|
|
+const publicSettingStore = usePublicSettingStore()
|
|
|
|
|
|
const {lastFocusPosition,frolaEditorContentChange,imgUploadFlag,initFroalaEditor}=useInitFroalaEditor()
|
|
|
|
|
@@ -159,16 +161,18 @@ function handleInsert({list,type,chartType}){
|
|
|
reportContentIns.selection.get().addRange(lastFocusPosition.value)
|
|
|
}
|
|
|
if(type==='iframe'){
|
|
|
- let link;
|
|
|
+ let link=publicSettingStore.publicSetting.ChartViewUrl;
|
|
|
if(chartType==='chart'){
|
|
|
- link=import.meta.env.MODE==='production'?'https://chartlib.hzinsights.com/chartshow':'https://charttest.hzinsights.com/chartshow'
|
|
|
+ // link=import.meta.env.MODE==='production'?'https://chartlib.hzinsights.com/chartshow':'https://charttest.hzinsights.com/chartshow'
|
|
|
+ link=link+'/chartshow'
|
|
|
list.forEach(item => {
|
|
|
reportContentIns.html.insert(`<p style='text-align:left; margin-top:10px;'>
|
|
|
<iframe src='${link}?code=${item}&fromPage=en' width='100%' height='350' style='border-width:0px; min-height:350px;'></iframe>
|
|
|
</p>`)
|
|
|
});
|
|
|
}else if(chartType==='sheet'){
|
|
|
- link=import.meta.env.MODE==='production'?'https://chartlib.hzinsights.com/sheetshow':'https://charttest.hzinsights.com/sheetshow'
|
|
|
+ // link=import.meta.env.MODE==='production'?'https://chartlib.hzinsights.com/sheetshow':'https://charttest.hzinsights.com/sheetshow'
|
|
|
+ link=link+'/sheetshow'
|
|
|
list.forEach(item => {
|
|
|
reportContentIns.html.insert(`<p style='text-align:left; margin-top:10px;'>
|
|
|
<iframe src='${link}?code=${item}' class='iframe${item}' width='100%' style='border-width:0px;'></iframe>
|