Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
ems3.3
Commits
b5337574
Commit
b5337574
authored
Nov 24, 2023
by
左玲玲
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1323
parent
76e1ec43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
index.jsx
src/pages/lease/leasedevice/index.jsx
+12
-7
No files found.
src/pages/lease/leasedevice/index.jsx
View file @
b5337574
...
@@ -79,7 +79,8 @@ const columnsa = [
...
@@ -79,7 +79,8 @@ const columnsa = [
value
:
4
,
value
:
4
,
label
:
'报警'
label
:
'报警'
},
},
]
],
width
:
60
},
},
{
{
title
:
'工作'
,
title
:
'工作'
,
...
@@ -88,7 +89,8 @@ const columnsa = [
...
@@ -88,7 +89,8 @@ const columnsa = [
search
:
false
,
search
:
false
,
render
:
(
_
,
row
)
=>
{
render
:
(
_
,
row
)
=>
{
return
<
span
style=
{
{
color
:
"#7ac143"
}
}
>
{
row
.
runRate
}
%
</
span
>
return
<
span
style=
{
{
color
:
"#7ac143"
}
}
>
{
row
.
runRate
}
%
</
span
>
}
},
width
:
60
},
},
{
{
title
:
'待机'
,
title
:
'待机'
,
...
@@ -97,7 +99,8 @@ const columnsa = [
...
@@ -97,7 +99,8 @@ const columnsa = [
search
:
false
,
search
:
false
,
render
:
(
_
,
row
)
=>
{
render
:
(
_
,
row
)
=>
{
return
<
span
style=
{
{
color
:
"orange"
}
}
>
{
row
.
standbyRate
}
%
</
span
>
return
<
span
style=
{
{
color
:
"orange"
}
}
>
{
row
.
standbyRate
}
%
</
span
>
}
},
width
:
60
},
},
{
{
title
:
'报警'
,
title
:
'报警'
,
...
@@ -106,7 +109,8 @@ const columnsa = [
...
@@ -106,7 +109,8 @@ const columnsa = [
search
:
false
,
search
:
false
,
render
:
(
_
,
row
)
=>
{
render
:
(
_
,
row
)
=>
{
return
<
span
style=
{
{
color
:
"#fa4659"
}
}
>
{
row
.
alarmRate
}
%
</
span
>
return
<
span
style=
{
{
color
:
"#fa4659"
}
}
>
{
row
.
alarmRate
}
%
</
span
>
}
},
width
:
60
},
},
{
{
title
:
'关机'
,
title
:
'关机'
,
...
@@ -115,7 +119,8 @@ const columnsa = [
...
@@ -115,7 +119,8 @@ const columnsa = [
search
:
false
,
search
:
false
,
render
:
(
_
,
row
)
=>
{
render
:
(
_
,
row
)
=>
{
return
<
span
style=
{
{
color
:
"#6a737b"
}
}
>
{
row
.
offRate
}
%
</
span
>
return
<
span
style=
{
{
color
:
"#6a737b"
}
}
>
{
row
.
offRate
}
%
</
span
>
}
},
width
:
60
},
},
];
];
...
@@ -133,7 +138,7 @@ const LeftTable = ({ onChange }) => {
...
@@ -133,7 +138,7 @@ const LeftTable = ({ onChange }) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
onChange
(
clickrow
?.
ledgerCustomerId
)
onChange
(
clickrow
?.
ledgerCustomerId
)
},
[
clickrow
?.
ledgerCustomerId
])
},
[
clickrow
?.
ledgerCustomerId
])
return
<
div
style=
{
{
flex
:
flag
?
1
:
0
}
}
>
return
<
div
style=
{
{
width
:
flag
?
350
:
0
}
}
>
<
div
style=
{
{
cursor
:
'pointer'
}
}
onClick=
{
()
=>
{
<
div
style=
{
{
cursor
:
'pointer'
}
}
onClick=
{
()
=>
{
setFlag
(
!
flag
);
setFlag
(
!
flag
);
}
}
>
}
}
>
...
@@ -191,7 +196,7 @@ const Leasedevice = () => {
...
@@ -191,7 +196,7 @@ const Leasedevice = () => {
<
LeftTable
onChange=
{
(
val
)
=>
{
<
LeftTable
onChange=
{
(
val
)
=>
{
setExtraparamsId
(
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
<
AutoTable
columns=
{
columnsb
}
columns=
{
columnsb
}
path=
'/lease/umLeaseLedger/ledgerCustomerEquipmentUseDetail'
path=
'/lease/umLeaseLedger/ledgerCustomerEquipmentUseDetail'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment