|
@@ -9,6 +9,10 @@
|
|
import mpvueEcharts from 'mpvue-echarts'
|
|
import mpvueEcharts from 'mpvue-echarts'
|
|
import echarts from '../../../static/echarts.min';
|
|
import echarts from '../../../static/echarts.min';
|
|
|
|
|
|
|
|
+var att_charts,
|
|
|
|
+ med_charts,
|
|
|
|
+ $this
|
|
|
|
+
|
|
// 大脑图表初始化
|
|
// 大脑图表初始化
|
|
function initAttChart(canvas, width, height) {
|
|
function initAttChart(canvas, width, height) {
|
|
att_charts = echarts.init(canvas, null, {
|
|
att_charts = echarts.init(canvas, null, {
|
|
@@ -20,7 +24,6 @@ function initAttChart(canvas, width, height) {
|
|
let option = {}; // ECharts 配置项
|
|
let option = {}; // ECharts 配置项
|
|
|
|
|
|
att_charts.setOption(option);
|
|
att_charts.setOption(option);
|
|
- console.log('att_charts', option)
|
|
|
|
return att_charts; // 返回 chart 后可以自动绑定触摸操作
|
|
return att_charts; // 返回 chart 后可以自动绑定触摸操作
|
|
}
|
|
}
|
|
|
|
|
|
@@ -35,13 +38,9 @@ function initMedChart(canvas, width, height) {
|
|
let option = {}; // ECharts 配置项
|
|
let option = {}; // ECharts 配置项
|
|
|
|
|
|
med_charts.setOption(option);
|
|
med_charts.setOption(option);
|
|
- console.log('med_charts', option)
|
|
|
|
return med_charts; // 返回 chart 后可以自动绑定触摸操作
|
|
return med_charts; // 返回 chart 后可以自动绑定触摸操作
|
|
}
|
|
}
|
|
|
|
|
|
-var att_charts,
|
|
|
|
- med_charts,
|
|
|
|
- $this
|
|
|
|
export default {
|
|
export default {
|
|
name: "mycharts",
|
|
name: "mycharts",
|
|
props:['canvasId','category'],
|
|
props:['canvasId','category'],
|