Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
73bf70cc
Commit
73bf70cc
authored
Mar 31, 2023
by
张子雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 合同样式修改
parent
aab1b6eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
17 deletions
+28
-17
index.jsx
src/pages/contractView/index.jsx
+25
-17
style.less
src/pages/contractView/style.less
+3
-0
No files found.
src/pages/contractView/index.jsx
View file @
73bf70cc
...
@@ -3,6 +3,7 @@ import ProTable from '@ant-design/pro-table';
...
@@ -3,6 +3,7 @@ import ProTable from '@ant-design/pro-table';
import
{
PageHeaderWrapper
}
from
'
@ant-design/pro-layout
'
;
import
{
PageHeaderWrapper
}
from
'
@ant-design/pro-layout
'
;
import
{
notification
,
Button
,
Modal
,
Image
,
message
}
from
'
antd
'
;
import
{
notification
,
Button
,
Modal
,
Image
,
message
}
from
'
antd
'
;
import
{
query
}
from
'
./services
'
;
import
{
query
}
from
'
./services
'
;
import
style
from
'
./style.less
'
;
const
ContractView
=
()
=>
{
const
ContractView
=
()
=>
{
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
visible
,
setVisible
]
=
useState
(
false
);
...
@@ -74,23 +75,30 @@ const ContractView = () => {
...
@@ -74,23 +75,30 @@ const ContractView = () => {
];
];
return
(
return
(
<
PageHeaderWrapper
>
<
PageHeaderWrapper
>
<
ProTable
{
!
visible
&&
(
search=
{
{
<
ProTable
collapsed
:
false
,
search=
{
{
collapseRender
:
()
=>
null
,
collapsed
:
false
,
}
}
collapseRender
:
()
=>
null
,
columns=
{
columns
}
}
}
request=
{
params
=>
query
({
...
params
})
}
columns=
{
columns
}
rowKey=
{
r
=>
r
.
appealNo
}
request=
{
params
=>
query
({
...
params
})
}
expandIconColumnIndex=
{
10
}
rowKey=
{
r
=>
r
.
appealNo
}
bordered
expandIconColumnIndex=
{
10
}
toolBarRender=
{
false
}
bordered
scroll=
{
{
x
:
'
100%
'
,
y
:
400
}
}
toolBarRender=
{
false
}
pagination=
{
false
}
scroll=
{
{
x
:
'
100%
'
,
y
:
400
}
}
/>
pagination=
{
false
}
<
Modal
visible=
{
visible
}
width=
"1000px"
onCancel=
{
()
=>
setVisible
(
false
)
}
>
/>
<
iframe
src=
{
url
}
height=
"500"
width=
"95%"
title=
"合同"
></
iframe
>
)
}
</
Modal
>
{
visible
&&
(
<
div
className=
{
style
.
contract
}
>
<
iframe
src=
{
url
}
height=
"500"
width=
"95%"
title=
"合同"
></
iframe
>
<
Button
type=
"primary"
onClick=
{
()
=>
setVisible
(
false
)
}
>
取消
</
Button
>
</
div
>
)
}
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
);
);
};
};
...
...
src/pages/contractView/style.less
0 → 100644
View file @
73bf70cc
.contract {
text-align: center;
}
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