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
709b49c2
Commit
709b49c2
authored
Feb 13, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改动态
parent
0ea13fc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
index.vue
src/views/operationsManagement/article/index.vue
+9
-9
No files found.
src/views/operationsManagement/article/index.vue
View file @
709b49c2
...
@@ -153,35 +153,35 @@
...
@@ -153,35 +153,35 @@
</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:
20px;padding-bottom: 20px;padding-top: 10px
"
class=
"content"
>
{{ form.content }}
</div>
<div
style=
"font-size: 15px;padding-left:
45px;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=
"text-align: center;"
>
<div
v-else-if=
"form.url.length === 1"
style=
"text-align: center;"
>
<img
:src=
"form.url[0]"
alt=
"Avatar"
class=
"avatar1"
>
<img
:src=
"form.url[0]"
alt=
"Avatar"
class=
"avatar1"
>
</div>
</div>
<!-- 当图片数量为4或6时,上下两排展示 -->
<!-- 当图片数量为4或6时,上下两排展示 -->
<div
v-else-if=
"form.url.length === 4 || form.url.length === 2"
>
<div
v-else-if=
"form.url.length === 4 || form.url.length === 2"
>
<el-row
v-for=
"(row, rowIndex) in Math.ceil(form.url.length / 2)"
:key=
"rowIndex"
:gutter=
"20"
>
<el-row
v-for=
"(row, rowIndex) in Math.ceil(form.url.length / 2)"
:key=
"rowIndex"
>
<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
: 1
0px;"
>
<div
style=
"padding
-left: 2
0px;"
>
<img
:src=
"imagePath"
alt=
"Avatar"
class=
"avatar3"
>
<img
:src=
"imagePath"
alt=
"Avatar"
class=
"avatar3"
>
</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=
"20"
>
<el-row
v-else
>
<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
: 10px;
"
>
<div
style=
"padding
-left: 20px
"
>
<img
:src=
"imagePath"
alt=
"Avatar"
class=
"avatar2"
>
<img
:src=
"imagePath"
alt=
"Avatar"
class=
"avatar2"
>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
<div
style=
"font-size: 12px;color: #8c8c93"
>
<div
style=
"font-size: 12px;color: #8c8c93
;padding-left: 60px;padding-top: 10px
"
>
<span>
{{ form.createDate }}
</span>
<span>
{{ form.createDate }}
</span>
</div>
</div>
<div
class=
"commentTitle"
>
<div
class=
"commentTitle"
>
...
@@ -198,6 +198,7 @@
...
@@ -198,6 +198,7 @@
<div
class=
"commentsSection"
>
<div
class=
"commentsSection"
>
<ul
v-if=
"form.articleCommentVOList"
class=
"commentTree"
>
<ul
v-if=
"form.articleCommentVOList"
class=
"commentTree"
>
<li
v-for=
"(comment, index) in form.articleCommentVOList"
:key=
"index"
class=
"commentItem"
>
<li
v-for=
"(comment, index) in form.articleCommentVOList"
:key=
"index"
class=
"commentItem"
>
<div
v-if=
"index !== null"
style=
"border-top: 1px solid #dadada; margin: 5px 0 5px;"
/>
<div
style=
"display: flex; justify-content: space-between; align-items: center;"
class=
"commentHeader"
>
<div
style=
"display: flex; justify-content: space-between; align-items: center;"
class=
"commentHeader"
>
<div
style=
"display: flex; align-items: center;padding-bottom: 10px"
>
<div
style=
"display: flex; align-items: center;padding-bottom: 10px"
>
<img
style=
"margin-top: -40px"
:src=
"comment.avatarUrl"
alt=
"Avatar"
class=
"avatarSize"
>
<img
style=
"margin-top: -40px"
:src=
"comment.avatarUrl"
alt=
"Avatar"
class=
"avatarSize"
>
...
@@ -217,6 +218,7 @@
...
@@ -217,6 +218,7 @@
</div>
</div>
<ul
v-if=
"comment.childrenCommentList && comment.childrenCommentList.length > 0"
class=
"replies"
>
<ul
v-if=
"comment.childrenCommentList && comment.childrenCommentList.length > 0"
class=
"replies"
>
<li
v-for=
"(reply, replyIndex) in comment.childrenCommentList"
:key=
"replyIndex"
class=
"replyItem"
>
<li
v-for=
"(reply, replyIndex) in comment.childrenCommentList"
:key=
"replyIndex"
class=
"replyItem"
>
<div
v-if=
"replyIndex !== null"
style=
"border-top: 1px solid #dadada; margin: 5px 0 ;"
/>
<div
style=
"display: flex; justify-content: space-between; align-items: center;"
class=
"commentHeader"
>
<div
style=
"display: flex; justify-content: space-between; align-items: center;"
class=
"commentHeader"
>
<div
style=
"display: flex; align-items: center;"
>
<div
style=
"display: flex; align-items: center;"
>
<img
style=
"margin-top: -40px"
:src=
"reply.avatarUrl"
alt=
"Avatar"
class=
"avatarSize"
>
<img
style=
"margin-top: -40px"
:src=
"reply.avatarUrl"
alt=
"Avatar"
class=
"avatarSize"
>
...
@@ -634,7 +636,6 @@ export default {
...
@@ -634,7 +636,6 @@ export default {
.commentItem
{
.commentItem
{
padding
:
10px
;
padding
:
10px
;
border
:
1px
solid
#ddd
;
.avatar
{
.avatar
{
width
:
32px
;
width
:
32px
;
...
@@ -652,7 +653,6 @@ export default {
...
@@ -652,7 +653,6 @@ export default {
.replyItem
{
.replyItem
{
padding
:
5px
;
padding
:
5px
;
border
:
1px
solid
#eee
;
}
}
.avatar
{
.avatar
{
...
...
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