This commit is contained in:
2024-03-14 15:19:53 +08:00
parent f2e8952030
commit 23a733e178
27 changed files with 1590 additions and 99 deletions

View File

@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-22 15:01:54
* @LastEditors: zwq
* @LastEditTime: 2023-10-31 11:20:46
* @LastEditTime: 2024-02-23 16:41:15
* @Description:
-->
<template>
@@ -58,10 +58,10 @@ export default {
// 获取数据列表
getDataList() {
this.urlOptions.occupancyURL(this.aId).then((response) => {
this.occupancyData = response.data.toFixed(2);
this.occupancyData = response.data[0].toFixed(2);
const num = mul(this.occupancyData, 100);
this.$nextTick(() => {
this.$refs.gaugeChart.initChart(num);
this.$refs.gaugeChart.initChart(num,response.data[1]);
});
});
this.urlOptions.allURL(this.aId).then((response) => {

View File

@@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2023-08-22 15:01:54
* @LastEditors: zwq
* @LastEditTime: 2023-10-31 11:22:35
* @LastEditTime: 2024-02-23 16:41:40
* @Description:
-->
<template>
@@ -60,10 +60,10 @@ export default {
// 获取数据列表
getDataList() {
this.urlOptions.occupancyURL(this.bId).then((response) => {
this.occupancyData = response.data.toFixed(2);
this.occupancyData = response.data[0].toFixed(2);
const num = mul(this.occupancyData, 100);
this.$nextTick(() => {
this.$refs.gaugeChart.initChart(num);
this.$refs.gaugeChart.initChart(num,response.data[1]);
});
});
this.urlOptions.allURL(this.bId).then((response) => {