From 619d7232bb601224ed4a442f01ef9768f9e96f40 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 17 六月 2024 15:36:09 +0800
Subject: [PATCH] #
---
src/pages/right/components/inout-charts.jsx | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/pages/right/components/inout-charts.jsx b/src/pages/right/components/inout-charts.jsx
index 0342784..2c5e2be 100644
--- a/src/pages/right/components/inout-charts.jsx
+++ b/src/pages/right/components/inout-charts.jsx
@@ -1,6 +1,6 @@
import { useEffect, useState } from 'react';
import { ScrollBoard } from '@jiaminghi/data-view-react';
-import { getAgvCharts } from '@/api/report';
+import { getAgvCharts, getInout } from '@/api/report';
const InOutCharts = () => {
@@ -20,12 +20,12 @@
useEffect(() => {
const timer = setInterval(() => {
- getAgvCharts().then(res => {
+ getInout().then(res => {
setApiData(res.reverse().map(item => {
- return ["AGV" + item.agvNo, item.loaderTheta + "掳", item.forkLength, item.inOutFlag]
+ return ["AGV" + item.agvNo, item.name]
}))
})
- }, 1000);
+ }, 3000);
return () => {
clearInterval(timer);
@@ -35,14 +35,14 @@
return (
<ScrollBoard
config={{
- header: ['缂栧彿', '杞借揣鍙�', '璐у弶', '浣滀笟'],
+ header: ['缂栧彿', '浣滀笟'],
data: apiData,
headerBGC: '#00fff138',
oddRowBGC: '#00000017',
evenRowBGC: '#ededed13',
headerHeight: 28,
rowNum: 10,
- columnWidth: [80, 120, 100, 130],
+ columnWidth: [80, 200],
}}
style={{ width: '100%', height: '400px', fontSize: '12px', marginBottom: '8px' }}
/>
--
Gitblit v1.9.1