Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_web
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
张伯涛
cust_web
Commits
2813f8ea
Commit
2813f8ea
authored
Mar 24, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
9dbabdf4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
10 deletions
+20
-10
ossInfo.js
src/api/system/ossInfo.js
+7
-0
options.js
src/utils/options.js
+2
-2
index.vue
src/views/contentManagement/activity/info/index.vue
+8
-5
index.vue
src/views/operationsManagement/member/info/index.vue
+3
-3
No files found.
src/api/system/ossInfo.js
View file @
2813f8ea
...
@@ -81,3 +81,10 @@ export function ossinfoDetail(id) {
...
@@ -81,3 +81,10 @@ export function ossinfoDetail(id) {
method
:
'get'
method
:
'get'
})
})
}
}
export
function
uploadLocal
(
data
)
{
return
request
({
url
:
'/common/fileUploadLocal'
,
method
:
'post'
,
data
})
}
src/utils/options.js
View file @
2813f8ea
export
const
options
=
{
export
const
options
=
{
sex
:
[
sex
:
[
{
label
:
'男'
,
value
:
1
},
{
label
:
'男'
,
value
:
0
},
{
label
:
'女'
,
value
:
0
}
{
label
:
'女'
,
value
:
1
}
],
],
education
:
[
education
:
[
{
label
:
'大专以下'
,
value
:
1
},
{
label
:
'大专以下'
,
value
:
1
},
...
...
src/views/contentManagement/activity/info/index.vue
View file @
2813f8ea
...
@@ -365,8 +365,9 @@ import {
...
@@ -365,8 +365,9 @@ import {
}
from
'@/api/contentManagement/activity'
}
from
'@/api/contentManagement/activity'
import
{
VueEditor
}
from
'vue2-editor'
import
{
VueEditor
}
from
'vue2-editor'
import
{
yesOrNo
,
enableOrDisable
}
from
'@/utils/allPageData'
import
{
yesOrNo
,
enableOrDisable
}
from
'@/utils/allPageData'
import
{
uploadPublic
}
from
'@/api/system/ossInfo'
import
{
uploadLocal
,
uploadPublic
}
from
'@/api/system/ossInfo'
import
'quill/dist/quill.core.css'
import
'quill/dist/quill.core.css'
import
{
getOssUrl
}
from
'@/api/contentManagement/opmArticle'
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -539,9 +540,7 @@ export default {
...
@@ -539,9 +540,7 @@ export default {
const
formData
=
new
FormData
()
const
formData
=
new
FormData
()
formData
.
append
(
'file'
,
file
)
formData
.
append
(
'file'
,
file
)
formData
.
append
(
'temp'
,
'newInformation'
)
formData
.
append
(
'temp'
,
'newInformation'
)
formData
.
append
(
'bucket'
,
'cust-91isoft'
)
uploadLocal
(
formData
).
then
(
res
=>
{
uploadPublic
(
formData
).
then
(
res
=>
{
console
.
log
(
'handleImageAdded'
,
res
)
const
url
=
res
.
data
.
url
const
url
=
res
.
data
.
url
Editor
.
insertEmbed
(
cursorLocation
,
'image'
,
url
)
Editor
.
insertEmbed
(
cursorLocation
,
'image'
,
url
)
})
})
...
@@ -553,7 +552,11 @@ export default {
...
@@ -553,7 +552,11 @@ export default {
getCmsActivity
(
this
.
$route
.
query
.
bussinessId
).
then
(
response
=>
{
getCmsActivity
(
this
.
$route
.
query
.
bussinessId
).
then
(
response
=>
{
if
(
response
.
code
===
200
)
{
if
(
response
.
code
===
200
)
{
this
.
form
=
response
.
data
this
.
form
=
response
.
data
this
.
imageUrl
=
response
.
data
.
url
if
(
response
.
data
.
pictureId
!==
''
&&
response
.
data
.
pictureId
!==
null
)
{
getOssUrl
(
response
.
data
.
pictureId
).
then
(
imgRes
=>
{
this
.
imageUrl
=
imgRes
.
data
})
}
}
}
})
})
}
}
...
...
src/views/operationsManagement/member/info/index.vue
View file @
2813f8ea
...
@@ -27,10 +27,10 @@
...
@@ -27,10 +27,10 @@
</el-upload>
</el-upload>
<div
style=
"margin-left: 20px"
>
<div
style=
"margin-left: 20px"
>
<img
v-if=
"form.pictureUrls != null && form.pictureUrls.length > 0"
:src=
"form.pictureUrls[0]"
style=
"width: 80px;height: 80px"
alt=
""
>
<img
v-if=
"form.pictureUrls != null && form.pictureUrls.length > 0"
:src=
"form.pictureUrls[0]"
style=
"width: 80px;height: 80px"
alt=
""
>
<img
v-if=
"form.pictureUrls != null && form.pictureUrls.length > 2"
:src=
"form.pictureUrls[2]"
style=
"width: 80px;height: 80px"
alt=
""
>
</div>
<div>
<img
v-if=
"form.pictureUrls != null && form.pictureUrls.length > 1"
:src=
"form.pictureUrls[1]"
style=
"width: 80px;height: 80px"
alt=
""
>
<img
v-if=
"form.pictureUrls != null && form.pictureUrls.length > 1"
:src=
"form.pictureUrls[1]"
style=
"width: 80px;height: 80px"
alt=
""
>
</div>
<div
style=
"margin-left: -30px"
>
<img
v-if=
"form.pictureUrls != null && form.pictureUrls.length > 2"
:src=
"form.pictureUrls[2]"
style=
"width: 80px;height: 80px"
alt=
""
>
<img
v-if=
"form.pictureUrls != null && form.pictureUrls.length > 3"
:src=
"form.pictureUrls[3]"
style=
"width: 80px;height: 80px"
alt=
""
>
<img
v-if=
"form.pictureUrls != null && form.pictureUrls.length > 3"
:src=
"form.pictureUrls[3]"
style=
"width: 80px;height: 80px"
alt=
""
>
</div>
</div>
</div>
</div>
...
...
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