diff --git a/src/utils/request.js b/src/utils/request.js index 3b4f6e5..da330fe 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -2,7 +2,7 @@ import axios from "axios"; import { ElMessage } from "element-plus"; import tools from "@/utils/tools"; import router from "../router"; -axios.defaults.baseURL = 'https://jzzf.longyou.gov.cn:998/' +// axios.defaults.baseURL = 'https://jzzf.longyou.gov.cn:998/' axios.defaults.timeout = 120000; // HTTP request 拦截器 diff --git a/src/view/echarts_jz/eP1.vue b/src/view/echarts_jz/eP1.vue index f092f5e..a9d7752 100644 --- a/src/view/echarts_jz/eP1.vue +++ b/src/view/echarts_jz/eP1.vue @@ -1,296 +1,297 @@ +
+ - +}; +var time; +const setChart = () => { + var myChart = echarts.init(chart.value); + myChart.setOption(data.option); + time = setInterval(() => { + angle = angle + 2; + myChart.setOption(data.option, true); + }, 100); +}; +onBeforeUnmount(() => { + if (time) { + clearInterval(time); + } +}); +// 使用生命钩子 +onBeforeMount(() => { + setTimeout(() => { + data.dataValue=props.list; + getOption(); + setChart(); + }, 600); +}); + \ No newline at end of file diff --git a/src/view/echarts_jz/eP2.vue b/src/view/echarts_jz/eP2.vue index e10fda0..5829085 100644 --- a/src/view/echarts_jz/eP2.vue +++ b/src/view/echarts_jz/eP2.vue @@ -3,7 +3,14 @@