diff --git a/src/components/公共组件/时间火向数据/1 b/src/components/公共组件/时间火向数据/1 deleted file mode 100644 index 56a6051..0000000 --- a/src/components/公共组件/时间火向数据/1 +++ /dev/null @@ -1 +0,0 @@ -1 \ No newline at end of file diff --git a/src/components/模块组件/总览/CenterTop/LeftBoxes/index.jsx b/src/components/公共组件/时间火向数据/index.jsx similarity index 97% rename from src/components/模块组件/总览/CenterTop/LeftBoxes/index.jsx rename to src/components/公共组件/时间火向数据/index.jsx index be59860..6416531 100644 --- a/src/components/模块组件/总览/CenterTop/LeftBoxes/index.jsx +++ b/src/components/公共组件/时间火向数据/index.jsx @@ -1,5 +1,5 @@ import React, { useState, useContext, useEffect } from 'react'; -import SocketContext from '../../../../../store/socket-data-provider'; +import SocketContext from '../../../store/socket-data-provider'; import icon1 from '@/assets/CenterChart2icon1.svg'; import icon2 from '@/assets/CenterChart2icon2.svg'; import icon3 from '@/assets/CenterChart2icon3.svg'; diff --git a/src/components/模块组件/总览/CenterTop/LeftBoxes/leftbox.module.less b/src/components/公共组件/时间火向数据/leftbox.module.less similarity index 88% rename from src/components/模块组件/总览/CenterTop/LeftBoxes/leftbox.module.less rename to src/components/公共组件/时间火向数据/leftbox.module.less index 2109735..6e8cfcc 100644 --- a/src/components/模块组件/总览/CenterTop/LeftBoxes/leftbox.module.less +++ b/src/components/公共组件/时间火向数据/leftbox.module.less @@ -6,7 +6,7 @@ margin-right: 16px; width: 200px; padding: 8px; - background: url(../../../../../assets/CenterChart2ItemBg.png); + background: url(../../../assets/CenterChart2ItemBg.png); background-repeat: no-repeat; background-size: 100% 100%; display: flex; diff --git a/src/components/模块组件/总览/CenterTop/index.jsx b/src/components/模块组件/总览/CenterTop/index.jsx index 6803f2a..ddc652e 100644 --- a/src/components/模块组件/总览/CenterTop/index.jsx +++ b/src/components/模块组件/总览/CenterTop/index.jsx @@ -1,6 +1,6 @@ import React from 'react'; import Item2 from './RightTable'; -import Item1 from './LeftBoxes'; +import Item1 from '../../../公共组件/时间火向数据'; import cls from './index.module.less'; diff --git a/src/components/模块组件/窑炉内部/Center/index.jsx b/src/components/模块组件/窑炉内部/Center/index.jsx index b063a3b..14255ab 100644 --- a/src/components/模块组件/窑炉内部/Center/index.jsx +++ b/src/components/模块组件/窑炉内部/Center/index.jsx @@ -1,5 +1,6 @@ import { useRef, useState } from 'react'; import cls from './index.module.css'; +import Chart2 from '../../../公共组件/时间火向数据'; function KilnCenter() { const videoRef = useRef(null); @@ -20,6 +21,19 @@ function KilnCenter() { } } + const data = [ + { name: 'TE271', value: 163.3 }, + { name: 'TE271', value: 163.3 }, + { name: 'TE271', value: 163.3 }, + { name: 'TE271', value: 163.3 }, + { name: 'TE271', value: 163.3 }, + { name: 'TE271', value: 163.3 }, + { name: 'TE271', value: 163.3 }, + { name: 'TE271', value: 163.3 }, + { name: 'TE271', value: 163.3 }, + { name: 'TE271', value: 163.3 }, + ]; + return (