更新
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user