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
02db7815
Commit
02db7815
authored
Sep 19, 2023
by
左玲玲
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1010
parent
79d6f580
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
13 deletions
+40
-13
index.jsx
src/components/AutoTable/index.jsx
+1
-1
index.jsx
src/components/TagView/index.jsx
+19
-1
global.less
src/global.less
+3
-2
index.jsx
src/pages/lease/contract/index.jsx
+5
-1
index.jsx
src/pages/lease/costanalysis/index.jsx
+12
-8
No files found.
src/components/AutoTable/index.jsx
View file @
02db7815
...
@@ -67,7 +67,7 @@ export default (props) => {
...
@@ -67,7 +67,7 @@ export default (props) => {
};
};
});
});
}
}
},
[
props
.
tabList
]);
},
[
props
.
tabList
,
props
.
extraparams
]);
return
(
return
(
<
div
className=
"diycard"
>
<
div
className=
"diycard"
>
{
props
.
withCard
===
false
?
(
{
props
.
withCard
===
false
?
(
...
...
src/components/TagView/index.jsx
View file @
02db7815
...
@@ -162,10 +162,28 @@ const TagView = ({ children, home }) => {
...
@@ -162,10 +162,28 @@ const TagView = ({ children, home }) => {
/>
/>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
{
styles
.
child
}
>
{
/*
<div className={styles.child}>
<div className={styles.contianbox}>
<div className={styles.contianbox}>
<div style={{ width: '100%', height: '100%' }}> {refresh && children}</div>
<div style={{ width: '100%', height: '100%' }}> {refresh && children}</div>
</div>
</div>
</div> */
}
<
div
className=
{
styles
.
child
}
>
<
div
className=
{
`${styles.contianbox} boxcontianbox`
}
>
{
tagList
.
map
((
item
)
=>
{
return
(
<
div
key=
{
item
.
path
}
style=
{
{
display
:
item
.
active
?
'block'
:
'none'
,
width
:
'100%'
,
height
:
'100%'
,
}
}
>
{
item
.
children
}
</
div
>
);
})
}
</
div
>
</
div
>
</
div
>
</>
</>
);
);
...
...
src/global.less
View file @
02db7815
...
@@ -424,7 +424,8 @@ ol {
...
@@ -424,7 +424,8 @@ ol {
.runtime-keep-alive-layout,
.runtime-keep-alive-layout,
.ant-table-content,
.ant-table-content,
.ant-drawer-body {
.ant-drawer-body,
.boxcontianbox {
&::-webkit-scrollbar {
&::-webkit-scrollbar {
/*滚动条整体样式*/
/*滚动条整体样式*/
...
@@ -585,7 +586,7 @@ ol {
...
@@ -585,7 +586,7 @@ ol {
}
}
}
}
.
contianbox___W4bW5
{
.
boxcontianbox
{
.ant-descriptions {
.ant-descriptions {
margin-bottom: 24px;
margin-bottom: 24px;
}
}
...
...
src/pages/lease/contract/index.jsx
View file @
02db7815
...
@@ -506,6 +506,10 @@ function Contract(props) {
...
@@ -506,6 +506,10 @@ function Contract(props) {
}
}
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
state
)
{
if
(
state
)
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
false
,
}));
if
(
state
.
isFinish
==
1
)
{
if
(
state
.
isFinish
==
1
)
{
setactiveTabKey
(
'1'
)
setactiveTabKey
(
'1'
)
}
else
{
}
else
{
...
@@ -532,7 +536,7 @@ function Contract(props) {
...
@@ -532,7 +536,7 @@ function Contract(props) {
const
tabList
=
useMemo
(()
=>
{
const
tabList
=
useMemo
(()
=>
{
return
getcolumns
();
return
getcolumns
();
},
[
activeTabKey
,
extraparams
]);
},
[
activeTabKey
]);
const
pathconfig
=
useMemo
(()
=>
{
const
pathconfig
=
useMemo
(()
=>
{
let
defpath
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
pathconfig
??
{};
let
defpath
=
getcolumns
(
setdrawer
).
filter
((
it
)
=>
it
.
key
==
activeTabKey
)[
0
]?.
pathconfig
??
{};
return
defpath
;
return
defpath
;
...
...
src/pages/lease/costanalysis/index.jsx
View file @
02db7815
...
@@ -208,17 +208,16 @@ const Costanalysis = () => {
...
@@ -208,17 +208,16 @@ const Costanalysis = () => {
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
state
)
{
if
(
state
)
{
setdrawer
((
s
)
=>
({
...
s
,
open
:
false
,
}));
catk
(
state
.
pageStatus
==
1
?
'item-1'
:
'item-2'
);
catk
(
state
.
pageStatus
==
1
?
'item-1'
:
'item-2'
);
setextraparams
(
state
.
extraparams
);
setextraparams
(
state
.
extraparams
);
}
else
{
}
else
{
catk
(
'item-1'
);
catk
(
'item-1'
);
}
}
},
[
state
]);
},
[
state
]);
console
.
log
(
'===================================='
);
console
.
log
(
extraparams
);
console
.
log
(
'===================================='
);
return
(
return
(
<
div
ref=
{
boxRef
}
>
<
div
ref=
{
boxRef
}
>
<
AutoTable
<
AutoTable
...
@@ -260,6 +259,11 @@ const Costanalysis = () => {
...
@@ -260,6 +259,11 @@ const Costanalysis = () => {
},
},
},
},
}
}
}
}
options=
{
{
reload
:
()
=>
{
setextraparams
({});
}
}
}
/>
/>
<
DrawerPro
<
DrawerPro
...
@@ -274,7 +278,7 @@ const Costanalysis = () => {
...
@@ -274,7 +278,7 @@ const Costanalysis = () => {
open
:
false
,
open
:
false
,
}));
}));
}
}
}
}
onValuesChange=
{
(
changedValues
,
allValues
)
=>
{}
}
onValuesChange=
{
(
changedValues
,
allValues
)
=>
{
}
}
onFinish=
{
async
(
vals
)
=>
{
onFinish=
{
async
(
vals
)
=>
{
let
newVals
=
JSON
.
parse
(
JSON
.
stringify
(
vals
));
let
newVals
=
JSON
.
parse
(
JSON
.
stringify
(
vals
));
if
(
drawer
?.
val
==
'confirm'
)
{
if
(
drawer
?.
val
==
'confirm'
)
{
...
...
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