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
9a799160
Commit
9a799160
authored
Mar 07, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改审核样式问题
parent
32772d71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
index.vue
src/views/operationsManagement/article/index.vue
+8
-8
No files found.
src/views/operationsManagement/article/index.vue
View file @
9a799160
...
@@ -155,20 +155,20 @@
...
@@ -155,20 +155,20 @@
</div>
</div>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<div
style=
"font-size: 15px;padding-left:
45
px;padding-bottom: 20px;"
class=
"content"
>
{{ form.content }}
</div>
<div
style=
"font-size: 15px;padding-left:
20
px;padding-bottom: 20px;"
class=
"content"
>
{{ form.content }}
</div>
</el-col>
</el-col>
<div>
<div>
<!-- 当没有图片时 -->
<!-- 当没有图片时 -->
<div
v-if=
"!form.url || form.url.length === 0"
style=
"text-align: center; color: #999;"
/>
<div
v-if=
"!form.url || form.url.length === 0"
style=
"text-align: center; color: #999;"
/>
<!-- 当图片数量为1时 -->
<!-- 当图片数量为1时 -->
<div
v-else-if=
"form.url.length === 1"
style=
"margin-left:
6
0px"
>
<div
v-else-if=
"form.url.length === 1"
style=
"margin-left:
15
0px"
>
<img
:src=
"form.url[0]"
alt=
""
class=
"avatar1"
>
<img
:src=
"form.url[0]"
alt=
""
class=
"avatar1"
>
</div>
</div>
<!-- 当图片数量为4或6时,上下两排展示 -->
<!-- 当图片数量为4或6时,上下两排展示 -->
<div
v-else-if=
" 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-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"
>
<el-col
v-for=
"(imagePath, index) in form.url.slice(rowIndex * 2, rowIndex * 2 + 2)"
:key=
"index"
:span=
"12"
>
<div
style=
"
padding-left: 10px;
"
>
<div
style=
"
margin-left: -15px
"
>
<img
:src=
"imagePath"
alt=
""
class=
"avatar3"
>
<img
:src=
"imagePath"
alt=
""
class=
"avatar3"
>
</div>
</div>
</el-col>
</el-col>
...
@@ -178,22 +178,22 @@
...
@@ -178,22 +178,22 @@
<div
v-else-if=
"form.url.length === 4 "
style=
"padding-left: 40px"
>
<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-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"
>
<el-col
v-for=
"(imagePath, index) in form.url.slice(rowIndex * 2, rowIndex * 2 + 2)"
:key=
"index"
:span=
"12"
>
<div
style=
"
padding-left: 10px;
"
>
<div
style=
"
margin-left: -10px
"
>
<img
:src=
"imagePath"
alt=
""
class=
"avatar5"
>
<img
:src=
"imagePath"
alt=
""
class=
"avatar5"
>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
<!-- 当图片数量为5, 7, 8或9时,按九宫格显示 -->
<!-- 当图片数量为5, 7, 8或9时,按九宫格显示 -->
<el-row
v-else
:gutter=
"2"
style=
"padding-left:
4
0px"
>
<el-row
v-else
:gutter=
"2"
style=
"padding-left:
5
0px"
>
<el-col
v-for=
"(imagePath, index) in form.url"
:key=
"index"
:span=
"8"
>
<el-col
v-for=
"(imagePath, index) in form.url"
:key=
"index"
:span=
"8"
>
<div
style=
"
padding-left: 1
0px"
>
<div
style=
"
margin-left: -2
0px"
>
<img
:src=
"imagePath"
alt=
""
class=
"avatar2"
>
<img
:src=
"imagePath"
alt=
""
class=
"avatar2"
>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
<div
style=
"font-size: 12px;color: #8c8c93;padding-left:
6
0px;padding-top: 10px"
>
<div
style=
"font-size: 12px;color: #8c8c93;padding-left:
3
0px;padding-top: 10px"
>
<span>
{{ form.createDate }}
</span>
<span>
{{ form.createDate }}
</span>
</div>
</div>
<div
class=
"commentTitle"
>
<div
class=
"commentTitle"
>
...
@@ -700,7 +700,7 @@ export default {
...
@@ -700,7 +700,7 @@ export default {
display
:
block
;
display
:
block
;
}
}
.avatar2
{
.avatar2
{
width
:
17
5
px
;
width
:
17
0
px
;
height
:
130px
;
height
:
130px
;
display
:
block
;
display
:
block
;
}
}
...
...
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