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
6bf879ab
Commit
6bf879ab
authored
Sep 18, 2023
by
左玲玲
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1725
parent
f32ca732
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
index.jsx
src/components/AutoTable/index.jsx
+1
-1
columns.js
src/pages/lease/contract/columns.js
+2
-1
index.jsx
src/pages/lease/costanalysis/index.jsx
+5
-3
No files found.
src/components/AutoTable/index.jsx
View file @
6bf879ab
...
...
@@ -118,7 +118,7 @@ export default (props) => {
items=
{
items
}
onChange=
{
props
.
onTabChange
}
destroyInactiveTabPane
active
Tab
Key=
{
props
.
activeTabKey
}
activeKey=
{
props
.
activeTabKey
}
/>
</
div
>
)
}
...
...
src/pages/lease/contract/columns.js
View file @
6bf879ab
...
...
@@ -143,7 +143,8 @@ function getcolumns(setdrawer, valtype, itemId) {
hideInSearch
:
true
,
valueType
:
'digit'
,
hideInTable
:
true
,
precision
:
0
precision
:
0
,
min
:
1
},
{
title
:
'租赁设备'
,
...
...
src/pages/lease/costanalysis/index.jsx
View file @
6bf879ab
...
...
@@ -16,7 +16,7 @@ const Costanalysis = () => {
open
:
false
,
}),
[
extraparams
,
setextraparams
]
=
useState
({}),
[
activeKey
,
catk
]
=
useState
(
'
item-1
'
),
[
activeKey
,
catk
]
=
useState
(
''
),
[
searchParams
,
csearch
]
=
useState
({});
const
{
run
,
loading
,
runAsync
}
=
useRequest
(
doFetch
,
{
manual
:
true
,
...
...
@@ -42,7 +42,7 @@ const Costanalysis = () => {
},
[
activeKey
]);
const
tabList
=
useMemo
(()
=>
{
return
getcolumns
();
},
[
activeKey
,
extraparams
]);
},
[
activeKey
]);
const
rightExtra
=
(
text
,
row
,
_
,
action
)
=>
{
return
[
activeKey
==
'item-1'
&&
<
PremButton
...
...
@@ -193,12 +193,15 @@ const Costanalysis = () => {
if
(
state
)
{
catk
(
state
.
pageStatus
==
1
?
'item-1'
:
'item-2'
);
setextraparams
(
state
.
extraparams
);
}
else
{
catk
(
'item-1'
);
}
},
[
state
]);
return
<
div
ref=
{
boxRef
}
>
<
AutoTable
pagetitle=
{
<
h3
className=
"page-title"
>
费用分析
</
h3
>
}
columns=
{
columns
}
extraparams=
{
extraparams
}
path=
{
activeKey
==
'item-1'
?
'/lease/umContractEquipment/queryNoAnalysis'
:
'/lease/umContractEquipment/queryYesAnalysis'
}
actionRef=
{
actionRef
}
resizeable=
{
false
}
...
...
@@ -224,7 +227,6 @@ const Costanalysis = () => {
}
}
}
}
extraparams=
{
extraparams
}
/>
...
...
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