|
@@ -1,6 +1,6 @@
|
|
|
<!-- -->
|
|
|
<template>
|
|
|
- <div class="chart-show">
|
|
|
+ <div class="chart-show" @click="outWrapClick">
|
|
|
<header class="chart-header" @click="openNew">
|
|
|
<span
|
|
|
class="chart-title"
|
|
@@ -130,6 +130,7 @@ export default defineComponent({
|
|
|
const haveData = ref(false);
|
|
|
const code = ref(route.query.code);
|
|
|
const isShare = ref(route.query.fromType === 'share');
|
|
|
+ const clickId = route.query.clickId || '';
|
|
|
// 语言 中英文 ch en 默认中文
|
|
|
const language = ref(route.query.fromPage || route.query.lang || 'zh');
|
|
|
const IsCollect=ref(false)//图表是否收藏
|
|
@@ -240,6 +241,14 @@ export default defineComponent({
|
|
|
|
|
|
}
|
|
|
|
|
|
+ const outWrapClick = () => {
|
|
|
+ if(!clickId) return;
|
|
|
+ window.parent.postMessage({
|
|
|
+ type: 'freeReportIframeClick',
|
|
|
+ clickId: clickId,
|
|
|
+ },'*')
|
|
|
+ }
|
|
|
+
|
|
|
return {
|
|
|
...toRefs(state),
|
|
|
loading,
|
|
@@ -253,7 +262,8 @@ export default defineComponent({
|
|
|
copyText,
|
|
|
handleChangeChartCollect,
|
|
|
IsCollect,
|
|
|
- haveAuth
|
|
|
+ haveAuth,
|
|
|
+ outWrapClick
|
|
|
};
|
|
|
},
|
|
|
});
|