diff --git a/src/views/Home/homePanelsLayoutPage/item_gongshui.js b/src/views/Home/homePanelsLayoutPage/item_gongshui.js
index bc9e8b871..335a2ace3 100644
--- a/src/views/Home/homePanelsLayoutPage/item_gongshui.js
+++ b/src/views/Home/homePanelsLayoutPage/item_gongshui.js
@@ -51,8 +51,8 @@ const Page = () => {
diff --git a/src/views/gxsl/gstjfx/index.js b/src/views/gxsl/gstjfx/index.js
index 1fedb5d0b..643148aa5 100644
--- a/src/views/gxsl/gstjfx/index.js
+++ b/src/views/gxsl/gstjfx/index.js
@@ -18,7 +18,7 @@ const Page = () => {
{ title: '序号', key: 'inx', dataIndex: 'inx', width: 60, align:"center" },
{ title: '时间', key: 'tm', dataIndex: 'tm', width: 200, ellipsis: true, align:"center" },
{
- title: '生态供水',
+ title: '发电灌溉',
align: "center",
children: [
{
@@ -36,7 +36,7 @@ const Page = () => {
]
},
{
- title: '生活供水',
+ title: '水厂取水',
align: "center",
children: [
{
@@ -62,7 +62,7 @@ const Page = () => {
{ title: '序号', key: 'inx', dataIndex: 'inx', width: 60, align:"center" },
{ title: '时间', key: 'tm', dataIndex: 'tm', width: 100, ellipsis: true, align:"center" },
{
- title: '生态供水',
+ title: '发电灌溉',
align: "center",
children: [
{
@@ -104,7 +104,7 @@ const Page = () => {
]
},
{
- title: '生活供水',
+ title: '水厂取水',
align: "center",
children: [
{
diff --git a/src/views/rcgl/zmjk/index.js b/src/views/rcgl/zmjk/index.js
index 4a351d00c..b61dbb66f 100644
--- a/src/views/rcgl/zmjk/index.js
+++ b/src/views/rcgl/zmjk/index.js
@@ -14,7 +14,7 @@ import apiurl from '../../../service/apiurl';
const url = "http://223.75.53.141:9102/test.by-lyf.tmp"
const CanvasW = 1080
const CanvasH = 640
-const waterRatio = 0
+// const waterRatio = 0
const zmobj ={
"hpCode": "HP0074208040002120",
"stcd": "4265630075",
@@ -177,6 +177,7 @@ const myType = {
const Page = () => {
const [itemIndex,setItemIndex] = useState(null)
+ const [waterRatio,setWaterRatio] = useState(0)
const [data,setData] = useState({})
const [list, setList ] = useState([])
const [damList, setDamList ] = useState([])
@@ -211,6 +212,11 @@ const Page = () => {
if(code!==200){
return
}
+ data.map((item)=>{
+ if(item.type===2){
+ setWaterRatio(item.value/5||0)
+ }
+ })
setList(data)
}
@@ -223,7 +229,6 @@ const Page = () => {
data.map((item)=>{
list.push({
...item
- // ,realAperture:item.realAperture*1000
})
})
setDamList(list)
@@ -246,6 +251,12 @@ const Page = () => {
}
}
+ const getNum = (a,b)=>{
+ const aa = Number(a||0)
+ const bb = Number(b||0)
+ const num = Number(aa-bb).toFixed(3)
+ return num
+ }
return (
<>
@@ -330,13 +341,31 @@ const Page = () => {
{
list?.map((item)=>{
- return (
-
-
{myType[item.type]}
-
112.079 / 1.279
-
07-10 12:09:00
-
- )
+ if(item.type===1){
+ return (
+
+
{myType[item.type]}
+
{item.value||'-'} / {getNum(item.value,data.inEle)}
+
{item.tm?.slice(5,19)}
+
+ )
+ }else if(item.type===2){
+ return (
+
+
{myType[item.type]}
+
{item.value||'-'} / {getNum(item.value,data.inEle)}
+
{item.tm?.slice(5,19)}
+
+ )
+ }else{
+ return (
+
+
{myType[item.type]}
+
{item.value}
+
{item.tm?.slice(5,19)}
+
+ )
+ }
})
}