Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
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
ReactWeb5
CivManage
Commits
8c18cd40
Commit
8c18cd40
authored
2 years ago
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '维保卡片预览优化'
parent
37aa7570
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
OptionEditModal.jsx
...manager/patrolMaintenance/maintenance/OptionEditModal.jsx
+11
-1
maintenance.jsx
...s/bsmanager/patrolMaintenance/maintenance/maintenance.jsx
+1
-1
No files found.
src/pages/bsmanager/patrolMaintenance/maintenance/OptionEditModal.jsx
View file @
8c18cd40
...
...
@@ -73,7 +73,8 @@ const OptionEditModal = props => {
const
[
previewVisible
,
setPreviewVisible
]
=
useState
(
false
);
// 预览文件弹窗
const
[
fileType
,
setFileType
]
=
useState
(
'pdf'
);
// 预览文件类型
const
[
fileUrl
,
setFileUrl
]
=
useState
(
'http://192.168.10.167:8088/PandaWorkFlow/WorkFlow/AccountManage/DownloadFiles?filePath=520d9de3-b69b-42c0-bb65-f198a30d0cd4
\\
%E5%B7%A5%E5%8D%95%E6%97%B6%E9%99%90%E9%85%8D%E7%BD%AE.pdf'
,
''
,
// 'http://192.168.10.167:8088/PandaWorkFlow/WorkFlow/AccountManage/DownloadFiles?filePath=520d9de3-b69b-42c0-bb65-f198a30d0cd4\\%E5%B7%A5%E5%8D%95%E6%97%B6%E9%99%90%E9%85%8D%E7%BD%AE.pdf',
);
// 预览文件路径
const
[
form
]
=
Form
.
useForm
();
...
...
@@ -298,6 +299,7 @@ const OptionEditModal = props => {
const
uprops
=
{
// action: `${window.location.origin}/PandaWorkFlow/WorkFlow/AccountManage/UploaderFiles`,
action
:
`
${
window
.
origin
}
/PandaWorkFlow/WorkFlow/AccountManage/UploaderFiles`
,
// action: `http://192.168.10.167:8088/PandaWorkFlow/WorkFlow/AccountManage/UploaderFiles`,
multiple
:
true
,
};
...
...
@@ -316,10 +318,18 @@ const OptionEditModal = props => {
const
preview
=
item
=>
{
setFileType
(
item
.
type
);
// setFileUrl(
// `${`${window.origin}/PandaWorkFlow/WorkFlow/AccountManage/DownloadFiles?filePath=`}${
// item.pdfUrl
// }`,
// );
setFileUrl
(
`
${
`
${
window
.
origin
}
/PandaWorkFlow/WorkFlow/AccountManage/DownloadFiles?filePath=`
}${
item
.
pdfUrl
}
`
,
// `http://192.168.10.167:8088/PandaWorkFlow/WorkFlow/AccountManage/DownloadFiles?filePath=${
// item.pdfUrl
// }`,
);
setPreviewVisible
(
true
);
};
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/patrolMaintenance/maintenance/maintenance.jsx
View file @
8c18cd40
...
...
@@ -248,6 +248,7 @@ const maintenance = () => {
useEffect
(()
=>
{
setTreeLoading
(
true
);
console
.
log
(
activeName
,
'activeNameactiveNameactiveName'
);
if
(
activeName
===
'template'
)
{
CM_XWBPlan_DataList
().
then
(
res
=>
{
setTreeLoading
(
false
);
...
...
@@ -686,7 +687,6 @@ const maintenance = () => {
};
const
sort
=
()
=>
{
console
.
log
(
'触发咯6666'
);
setSortVisible
(
true
);
};
...
...
This diff is collapsed.
Click to expand it.
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