Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd_school
Commits
23eddfea
Commit
23eddfea
authored
Nov 03, 2023
by
Cat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zd 社团
parent
cfe9ff3e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
ruoyi-ui/src/views/smartSchool/massOrganization/communityStyle/index.vue
+12
-5
No files found.
ruoyi-ui/src/views/smartSchool/massOrganization/communityStyle/index.vue
View file @
23eddfea
...
...
@@ -153,13 +153,16 @@
:on-success=
"handleAvatarSuccess"
:before-upload=
"beforeAvatarUpload"
>
<div
v-if=
"form.file"
>
<div
v-if=
"form.file
.length > 0
"
>
<img
v-for=
"(item, index) in form.file"
:key=
"index"
:src=
"pev +
item
"
:src=
"pev +
form.file
"
class=
"avatar"
/>
{{ form.file }}
<br
/>
{{ pev + form.file }}
</div>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
...
...
@@ -206,7 +209,7 @@ export default {
data
()
{
return
{
//图片上传列表
uploadList
:
{}
,
uploadList
:
[]
,
uploadFileUrl
:
process
.
env
.
VUE_APP_BASE_API
+
"/common/upload"
,
// 上传的图片服务器地址
pev
:
process
.
env
.
VUE_APP_BASE_API
,
// 输入框字数限制
...
...
@@ -260,7 +263,7 @@ export default {
form
:
{
id
:
""
,
theme
:
""
,
file
:
""
,
file
:
[]
,
},
// 表单校验
rules
:
{
...
...
@@ -361,6 +364,7 @@ export default {
picUrl
:
null
,
seqencing
:
null
,
isShow
:
0
,
file
:
[],
};
this
.
imageUrl
=
""
;
this
.
resetForm
(
"form"
);
...
...
@@ -401,6 +405,8 @@ export default {
this
.
form
=
response
.
data
;
this
.
form
.
file
=
response
.
data
.
file
.
split
(
","
);
this
.
imageUrl
=
this
.
pev
+
this
.
form
.
picUrl
;
console
.
log
(
this
.
form
.
file
,
"this.form.file222222222"
);
// console.log(this.imageUrl, "this.imageUrl");
this
.
open
=
true
;
this
.
title
=
"修改园区照片"
;
});
...
...
@@ -424,8 +430,9 @@ export default {
console
.
log
(
"response上传成功回调"
,
res
);
console
.
log
(
"file上传成功回调"
,
file
);
if
(
res
.
code
==
200
)
{
this
.
uploadList
.
push
(
this
.
pev
+
res
.
fileName
);
this
.
uploadList
.
push
(
res
.
fileName
);
this
.
form
.
file
=
this
.
uploadList
;
console
.
log
(
"this.form.file"
,
this
.
form
.
file
);
}
console
.
log
(
this
.
uploadList
,
"this.uploadList"
);
console
.
log
(
this
.
form
.
file
,
"this.form.file"
);
...
...
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