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
9aca9ef9
Commit
9aca9ef9
authored
Mar 05, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改图片
parent
090d48dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
index.vue
src/views/operationsManagement/article/index.vue
+18
-3
No files found.
src/views/operationsManagement/article/index.vue
View file @
9aca9ef9
...
...
@@ -165,7 +165,7 @@
<img
:src=
"form.url[0]"
alt=
""
class=
"avatar1"
>
</div>
<!-- 当图片数量为4或6时,上下两排展示 -->
<div
v-else-if=
"
form.url.length === 4 ||
form.url.length === 2"
style=
"padding-left: 40px"
>
<div
v-else-if=
" form.url.length === 2"
style=
"padding-left: 40px"
>
<el-row
v-for=
"(row, rowIndex) in Math.ceil(form.url.length / 2)"
:key=
"rowIndex"
:gutter=
"1"
>
<el-col
v-for=
"(imagePath, index) in form.url.slice(rowIndex * 2, rowIndex * 2 + 2)"
:key=
"index"
:span=
"12"
>
<div
style=
"padding-left: 10px;"
>
...
...
@@ -174,6 +174,16 @@
</el-col>
</el-row>
</div>
<!-- 当图片数量为4或6时,上下两排展示 -->
<div
v-else-if=
"form.url.length === 4 "
style=
"padding-left: 40px"
>
<el-row
v-for=
"(row, rowIndex) in Math.ceil(form.url.length / 2)"
:key=
"rowIndex"
:gutter=
"1"
>
<el-col
v-for=
"(imagePath, index) in form.url.slice(rowIndex * 2, rowIndex * 2 + 2)"
:key=
"index"
:span=
"12"
>
<div
style=
"padding-left: 10px;"
>
<img
:src=
"imagePath"
alt=
""
class=
"avatar5"
>
</div>
</el-col>
</el-row>
</div>
<!-- 当图片数量为5, 7, 8或9时,按九宫格显示 -->
<el-row
v-else
:gutter=
"2"
style=
"padding-left: 40px"
>
<el-col
v-for=
"(imagePath, index) in form.url"
:key=
"index"
:span=
"8"
>
...
...
@@ -693,9 +703,8 @@ export default {
display
:
block
;
}
.avatar3
{
width
:
26
0
px
;
width
:
26
3
px
;
height
:
200px
;
padding-top
:
4px
;
display
:
block
;
}
.avatar4
{
...
...
@@ -703,6 +712,12 @@ export default {
height
:
178px
;
display
:
block
;
}
.avatar5
{
width
:
255px
;
height
:
200px
;
padding-top
:
4px
;
display
:
block
;
}
.commentTitle
{
display
:
flex
;
justify-content
:
space-between
;
...
...
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