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
603454e9
Commit
603454e9
authored
Aug 26, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '修复图片库显示不出来问题'
parent
59826b3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
AddModal.jsx
src/pages/bsmanager/workOrder/incident/AddModal.jsx
+2
-2
PreviewModal.jsx
src/pages/bsmanager/workOrder/incident/PreviewModal.jsx
+1
-1
No files found.
src/pages/bsmanager/workOrder/incident/AddModal.jsx
View file @
603454e9
...
...
@@ -626,7 +626,7 @@ const AddModal = props => {
setOrder
(
res
.
data
.
root
.
Order
);
form
.
setFieldsValue
({
...
res
.
data
.
root
});
if
(
res
.
data
.
root
.
ImageExpression
)
{
setImageUrl
(
window
.
location
.
origin
+
`/
${
res
.
data
.
root
.
ImageExpression
}
`
);
setImageUrl
(
window
.
location
.
origin
+
`/
civweb4/
${
res
.
data
.
root
.
ImageExpression
}
`
);
setIm
(
res
.
data
.
root
.
ImageExpression
);
}
else
{
form
.
setFieldsValue
({
...
...
@@ -1303,7 +1303,7 @@ const AddModal = props => {
const
onOk
=
props
=>
{
console
.
log
(
props
);
if
(
props
)
{
setImageUrl
(
window
.
location
.
origin
+
`/
${
props
}
`
);
setImageUrl
(
window
.
location
.
origin
+
`/
civweb4/
${
props
}
`
);
setIm
(
props
);
setKeepImgeUrl
(
props
);
form
.
setFieldsValue
({
ImageExpression
:
`
${
props
}
`
});
...
...
src/pages/bsmanager/workOrder/incident/PreviewModal.jsx
View file @
603454e9
...
...
@@ -191,7 +191,7 @@ const PreviewModal = props => {
return
(
<
div
className=
{
styles
.
divItem
}
key=
{
index
}
>
<
img
src=
{
window
.
location
.
origin
+
`/${k.value}`
}
src=
{
window
.
location
.
origin
+
`/
civweb4/
${k.value}`
}
className=
{
classnames
({
[
styles
.
imgHidden
]:
k
.
value
!==
chooseItem
,
[
styles
.
imgItem
]:
k
.
value
==
chooseItem
,
...
...
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