|
@@ -1,4 +1,18 @@
|
|
|
<script setup>
|
|
|
+import {useRoute} from 'vue-router'
|
|
|
+import apiChart from '@/api/modules/chart'
|
|
|
+
|
|
|
+const route=useRoute()
|
|
|
+
|
|
|
+const chartInfo=ref(null)
|
|
|
+function getChartDetail(){
|
|
|
+ apiChart.getChartDetail({}).then(res=>{
|
|
|
+ if(res.Ret===200){
|
|
|
+ chartInfo.value=res.Data
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
+// getChartDetail()
|
|
|
|
|
|
function handleCollect(){
|
|
|
|
|
@@ -11,7 +25,9 @@ const isShowMZSM=ref(false)
|
|
|
<div class="chart-title">图表标题</div>
|
|
|
<div class="mz-tips" @click="isShowMZSM = true">免责声明</div>
|
|
|
<!-- 图表渲染盒子 -->
|
|
|
- <div class="chart-render-wrap"></div>
|
|
|
+ <div class="chart-render-wrap">
|
|
|
+ <iframe src="http://192.168.77.25:3000/chart/preview?code=a4ef161347660d1b23c1b045f3562a66&source=etamini&token=6ea9ab1baa0efb9e19094440c317e21bdefc086f9498d024a0ca6fe32328c68b"></iframe>
|
|
|
+ </div>
|
|
|
<div><span>来源:</span></div>
|
|
|
|
|
|
<div class="change-btns-box">
|
|
@@ -41,6 +57,11 @@ const isShowMZSM=ref(false)
|
|
|
.chart-render-wrap{
|
|
|
margin-top: 50px;
|
|
|
height: 800px;
|
|
|
+ iframe{
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
}
|
|
|
.change-btns-box{
|
|
|
position: fixed;
|
|
@@ -63,7 +84,7 @@ const isShowMZSM=ref(false)
|
|
|
position: fixed;
|
|
|
z-index: 99;
|
|
|
right: 34px;
|
|
|
- bottom: 130px;
|
|
|
+ bottom: 150px;
|
|
|
width: 100px;
|
|
|
height: 100px;
|
|
|
}
|