Commit b5337574 authored by 左玲玲's avatar 左玲玲 😬

1323

parent 76e1ec43
......@@ -79,7 +79,8 @@ const columnsa = [
value: 4,
label: '报警'
},
]
],
width: 60
},
{
title: '工作',
......@@ -88,7 +89,8 @@ const columnsa = [
search: false,
render: (_, row) => {
return <span style={{ color: "#7ac143" }}>{row.runRate}%</span>
}
},
width: 60
},
{
title: '待机',
......@@ -97,7 +99,8 @@ const columnsa = [
search: false,
render: (_, row) => {
return <span style={{ color: "orange" }}>{row.standbyRate}%</span>
}
},
width: 60
},
{
title: '报警',
......@@ -106,7 +109,8 @@ const columnsa = [
search: false,
render: (_, row) => {
return <span style={{ color: "#fa4659" }}>{row.alarmRate}%</span>
}
},
width: 60
},
{
title: '关机',
......@@ -115,7 +119,8 @@ const columnsa = [
search: false,
render: (_, row) => {
return <span style={{ color: "#6a737b" }}>{row.offRate}%</span>
}
},
width: 60
},
];
......@@ -133,7 +138,7 @@ const LeftTable = ({ onChange }) => {
useEffect(() => {
onChange(clickrow?.ledgerCustomerId)
}, [clickrow?.ledgerCustomerId])
return <div style={{ flex: flag ? 1 : 0 }}>
return <div style={{ width: flag ? 350 : 0 }}>
<div style={{ cursor: 'pointer' }} onClick={() => {
setFlag(!flag);
}}>
......@@ -191,7 +196,7 @@ const Leasedevice = () => {
<LeftTable onChange={(val) => {
setExtraparamsId(val);
}} />
<div style={{ flex: 2, marginTop: 26, borderLeft: '1px solid #f0f0f0', paddingLeft: 15 }}>
<div style={{ flex: 1, marginTop: 26, borderLeft: '1px solid #f0f0f0', paddingLeft: 15 }}>
<AutoTable
columns={columnsb}
path='/lease/umLeaseLedger/ledgerCustomerEquipmentUseDetail'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment