|
@@ -2,7 +2,6 @@
|
|
import {defineProps, nextTick} from "vue";
|
|
import {defineProps, nextTick} from "vue";
|
|
import {QueryDieReturn} from "@/api/emr-control/query-die";
|
|
import {QueryDieReturn} from "@/api/emr-control/query-die";
|
|
import * as echarts from 'echarts';
|
|
import * as echarts from 'echarts';
|
|
-import sleep from "@/utils/sleep";
|
|
|
|
import {windowSizeStore} from "@/utils/store-public";
|
|
import {windowSizeStore} from "@/utils/store-public";
|
|
|
|
|
|
|
|
|
|
@@ -13,7 +12,6 @@ const {resData} = defineProps<{
|
|
|
|
|
|
const establishDiv = async (el, value, name) => {
|
|
const establishDiv = async (el, value, name) => {
|
|
await nextTick();
|
|
await nextTick();
|
|
- await sleep(1000);
|
|
|
|
//有的话就获取已有echarts实例的DOM节点。
|
|
//有的话就获取已有echarts实例的DOM节点。
|
|
let myChart = echarts.getInstanceByDom(el);
|
|
let myChart = echarts.getInstanceByDom(el);
|
|
// 如果不存在,就进行初始化。
|
|
// 如果不存在,就进行初始化。
|
|
@@ -67,7 +65,8 @@ const establishDiv = async (el, value, name) => {
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12" v-for="(value, key) in resData.analysis"
|
|
<el-col :span="12" v-for="(value, key) in resData.analysis"
|
|
style="height: 200px;">
|
|
style="height: 200px;">
|
|
- <div :ref="(el) => establishDiv(el , value, key)" style="height: 200px; width: 100%"/>
|
|
|
|
|
|
+ <div :ref="(el) => establishDiv(el , value, key)"
|
|
|
|
+ style="height: 200px; width: 500px"/>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-main>
|
|
</el-main>
|