|
|
|
@ -7,7 +7,11 @@ |
|
|
|
import { analyzeChartData } from "@/api/chart/index"; |
|
|
|
import { echatsViews } from "@/api/DesignForm/types"; |
|
|
|
import * as echarts from "echarts"; |
|
|
|
|
|
|
|
import { useDesignEchartsStore } from "@/store/DesignForm/designForm"; |
|
|
|
const store = useDesignEchartsStore() as any; //自定义表单存储器 |
|
|
|
const controlData = computed(() => { |
|
|
|
return store.controlAttr; |
|
|
|
}); |
|
|
|
const props = withDefaults( |
|
|
|
defineProps<{ |
|
|
|
uuid: string; |
|
|
|
@ -24,6 +28,7 @@ const props = withDefaults( |
|
|
|
} |
|
|
|
); |
|
|
|
var myChartPie = ref<any>(); |
|
|
|
|
|
|
|
/** |
|
|
|
@ 作者: 秦东 |
|
|
|
@ 时间: 2025-06-26 11:34:21 |
|
|
|
@ -40,7 +45,7 @@ const drawPie = () => { |
|
|
|
etConfig: controlData.value, |
|
|
|
}).then((data) => { |
|
|
|
console.log("火兔", data); |
|
|
|
if (data.code == 0) { |
|
|
|
if (data.code == 0 && data.data != null) { |
|
|
|
let optVal = data.data; |
|
|
|
optVal.grid = { |
|
|
|
left: "2%", |
|
|
|
|