更新
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2023-08-22 15:01:54
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2023-09-05 13:50:38
|
||||
* @LastEditTime: 2023-09-27 10:44:49
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -12,8 +12,7 @@
|
||||
<gaugeChart
|
||||
ref="gaugeChart"
|
||||
title="仓库占用率"
|
||||
height="500px"
|
||||
:occupancy-data="occupancyData" />
|
||||
height="500px"/>
|
||||
</el-col>
|
||||
<el-col :span="14">
|
||||
<barChart
|
||||
@@ -28,6 +27,7 @@
|
||||
|
||||
<script>
|
||||
import basicPage from '../mixins/basic-page';
|
||||
import { mul } from '../mixins/code-filter';
|
||||
import barChart from '../chart/BarChart.vue';
|
||||
import gaugeChart from '../chart/GaugeChart.vue';
|
||||
import { getOccupancy } from '@/api/asrs/warehouseStorehouse';
|
||||
@@ -54,9 +54,10 @@ export default {
|
||||
// 获取数据列表
|
||||
getDataList() {
|
||||
this.urlOptions.occupancyURL(this.aId).then((response) => {
|
||||
this.occupancyData = response.data;
|
||||
this.occupancyData = response.data.toFixed(2);
|
||||
const num = mul(this.occupancyData,100)
|
||||
this.$nextTick(() => {
|
||||
this.$refs.gaugeChart.initChart();
|
||||
this.$refs.gaugeChart.initChart(num);
|
||||
});
|
||||
});
|
||||
this.urlOptions.allURL(this.aId).then((response) => {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @Author: zwq
|
||||
* @Date: 2023-08-22 15:01:54
|
||||
* @LastEditors: zwq
|
||||
* @LastEditTime: 2023-09-05 14:51:54
|
||||
* @LastEditTime: 2023-10-08 15:49:40
|
||||
* @Description:
|
||||
-->
|
||||
<template>
|
||||
@@ -12,8 +12,7 @@
|
||||
<gaugeChart
|
||||
ref="gaugeChart"
|
||||
title="仓库占用率"
|
||||
height="500px"
|
||||
:occupancy-data="occupancyData" />
|
||||
height="500px"/>
|
||||
</el-col>
|
||||
<el-col :span="14">
|
||||
<barChart
|
||||
@@ -28,6 +27,7 @@
|
||||
|
||||
<script>
|
||||
import basicPage from '../mixins/basic-page';
|
||||
import { mul } from '../mixins/code-filter';
|
||||
import barChart from '../chart/BarChart.vue';
|
||||
import gaugeChart from '../chart/GaugeChart.vue';
|
||||
import { getOccupancy } from '@/api/asrs/warehouseStorehouse';
|
||||
@@ -56,9 +56,10 @@ export default {
|
||||
// 获取数据列表
|
||||
getDataList() {
|
||||
this.urlOptions.occupancyURL(this.bId).then((response) => {
|
||||
this.occupancyData = response.data;
|
||||
this.occupancyData = response.data.toFixed(2);
|
||||
const num = mul(this.occupancyData,100)
|
||||
this.$nextTick(() => {
|
||||
this.$refs.gaugeChart.initChart();
|
||||
this.$refs.gaugeChart.initChart(num);
|
||||
});
|
||||
});
|
||||
this.urlOptions.allURL(this.bId).then((response) => {
|
||||
|
||||
Reference in New Issue
Block a user